More Convention Confusion.

2009-10-08 Thread RogerV
This is a continuation of the problem I posted about last week. <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="s" uri="/struts-tags" %> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

Re: Struts 2 tag

2009-10-08 Thread Gregor Marinšek
Yes. Typo . Thank you. Gregor Dale Newfield wrote: Gregor Marinšek wrote: > I assume you meant: "%{parameter.index.type=='ENUM'}" -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional comma

Re: Struts 2 tag

2009-10-08 Thread dcabasson
Hi Roger, I usually use Denis. RogerV wrote: > > > > Gregor Marinšek wrote: >> >> You don't have to use "value", because s:iterator puts the value on the >> top of ValueStack. What about: >> >> >> I assume you are iterating over objects, with defined get/setType >> Gregor >> > > Tha

RE: 2.1.6, Convention Plugin + Spring + Glassfish 2 ur2

2009-10-08 Thread James Cook
Excellent. Thank you musachy and thanks Brian. :) -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: 08 October 2009 19:44 To: Struts Users Mailing List Subject: Re: 2.1.6, Convention Plugin + Spring + Glassfish 2 ur2 different applications have different classpat

Re: 2.1.6, Convention Plugin + Spring + Glassfish 2 ur2

2009-10-08 Thread Musachy Barroso
different applications have different classpaths, so they are isolated, unless you put the classes in a shared dir, like tomcat shared lib dir, in that case there would be some mixing, unless you create package locators for them. Btw i just merged a patch into trunk that should take care of those e

RE: 2.1.6, Convention Plugin + Spring + Glassfish 2 ur2

2009-10-08 Thread James Cook
Hi, thank you very much for your response... The exceptions don't really bother me, it is just we deployed an app onto a domain with 5 other apps and it just trawled through all their packages. This does however beg the question. What would have happened if I had another S2 app on the domain a

Re: 2.1.6, Convention Plugin + Spring + Glassfish 2 ur2

2009-10-08 Thread Musachy Barroso
Those exceptions are annoying, but they can be ignored. There are multiple settings for scanning, like not scanning jars, which you can play with. musachy On Thu, Oct 8, 2009 at 10:19 AM, James Cook wrote: > Hi All, > > I did ask this question before but never received an answer, I do > understa

Re: Basic question on Struts 2 flow

2009-10-08 Thread Greg Lindholm
All of your links and forms etc in your applications should point to 'actions' they should never point directly to jsp files. (I.e. the user should never see a url in the address bar that end in .jsp). It's is normal to have noop actions that do nothing but return 'SUCCESS'. You would do yourself

2.1.6, Convention Plugin + Spring + Glassfish 2 ur2

2009-10-08 Thread James Cook
Hi All, I did ask this question before but never received an answer, I do understand that this is quite complex problem. However I thought I would ask again in case anyone else has come across this... When I use the Convention plugin with Spring and Glassfish, upon deploy of the resulting WAR the

Re: Struts 2 tag

2009-10-08 Thread Dale Newfield
Gregor Marinšek wrote: > I assume you meant: "%{parameter.index.type=='ENUM'}" -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Multiple select

2009-10-08 Thread Dale Newfield
wkbutler wrote: Thanks Eric for posting your solution, this helped me remember that unusual OGNL syntax on the value attribute. Once again I'll post my suggestion that the %{} notation be used EVERYWHERE you expect the framework to evaluate your expression with OGNL so that these are less con

Basic question on Struts 2 flow

2009-10-08 Thread roncville
I'm just getting into Struts 2, and have read through some tutorials and experimented a bit with some small Struts 2 applications. But, I'm still missing a fundamental point about the flow, and am looking for help. My background with JSPs and even HTML is limited, so I apologize if this is ridic

RE: Multiple select

2009-10-08 Thread wkbutler
Thanks Eric for posting your solution, this helped me remember that unusual OGNL syntax on the value attribute. Because I have not found so many working examples out there, I'll post mine too: CaseFile contains List called 'sentences'. Qualifier looks like private Long qualifierId;

Re: Servlet filter as front controller

2009-10-08 Thread Struts Two
Dummy servlet should do it (as mentioned by WES), I know this in case of WAS where you are going to create plugin-xml file for your HTTP server. Without a dummy servlet mapped to *.action or *.do, Http server would fail to route any request that is mapped to *.action or *.do in the filter. ---

Re: Servlet filter as front controller

2009-10-08 Thread Wes Wannemacher
I was thinking about this issue recently and wondered if simply mapping a do-nothing servlet to * would workaround this... I thought about trying it, but I only have tomcat and jetty handy for testing, and this doesn't seem to be an issue on either one. Although, a do-nothing servlet would probably

Re: Servlet filter as front controller

2009-10-08 Thread Struts Two
I have mentioned this before in another thread that Struts2 is breaking Servlet specification 2.4 in this regard, but have heard no comment on it which means two things either I have a point or I am way off. In Servlet specification 2.4 filters are not supposed to be accessed directly as a reso

Re: Struts 2 tag

2009-10-08 Thread RogerV
Gregor Marinšek wrote: > > You don't have to use "value", because s:iterator puts the value on the > top of ValueStack. What about: > > > I assume you are iterating over objects, with defined get/setType > Gregor > Thanks Gregor, that works - in conjunction with another older nabble post

Re: Struts 2 tag

2009-10-08 Thread Gregor Marinšek
You don't have to use "value", because s:iterator puts the value on the top of ValueStack. What about: I assume you are iterating over objects, with defined get/setType Gregor RogerV wrote: Try something like this. Gregor That stops the exception but it's not evaluating correctly.

Re: Struts 2 tag

2009-10-08 Thread RogerV
Try something like this. Gregor That stops the exception but it's not evaluating correctly. If I add to my jsp immediately prior to the tag then when it is ENUM, it prints ENUM and then fails to do anything with the content of the tag. I should have mentioned that the reason I'm using va

Re: Struts 2, annotated actions an weblogic

2009-10-08 Thread Gregor Marinšek
Hi! The last thing, which log prints out is "WebLogic server detected. Enabling Struts parameter access work-around." On Tomcat server, the app starts loading actions. I found this in s2 src - org.apache.struts2.dispatcher.Dispatcher.java on 375 method "init_CheckWebLogicWorkaround". Actually t

Re: Struts 2 tag

2009-10-08 Thread Gregor Marinšek
Try something like this. Gregor RogerV wrote: Could someone correct my syntax please - I can't get this to work at all. =='ENUM'"> I keep getting a JasperException; equal symbol expected Regards -- Gregor Marinšek TIS d.o.o. Ljubljanska 9, Maribor e-mail: gmarin...@tis.si htt

Struts 2 tag

2009-10-08 Thread RogerV
Could someone correct my syntax please - I can't get this to work at all. =='ENUM'"> I keep getting a JasperException; equal symbol expected Regards -- View this message in context: http://www.nabble.com/Struts-2-%3Cs%3Aif%3E-tag-tp25801138p25801138.html Sent from the Struts - User mail

Unit Testing Actions with Annotation based validation in Struts 2.1.6

2009-10-08 Thread bloodredsun
I'm looking for a way of unit testing an action that uses annotations for validation with 2.1.6. There is a nice example in the Struts 2.x docs on how to unit test validation logic in an Action (see here http://struts.apache.org/2.x/docs/how-do-i-unit-test-my-actions-validation-logic.html) Unfo

Re: Problem testing my action when I’ve g ot a springbean inside the validators.xml

2009-10-08 Thread cmartin81
Is there somebody who can help me with this question? Please :) -- View this message in context: http://www.nabble.com/Problem-testing-my-action-when-I%E2%80%99ve-got-a-springbean-inside-the-validators.xml-tp24862185p25799631.html Sent from the Struts - User mailing list archive at Nabble.com.