Problem using tag

2009-11-20 Thread shekher awasthi
Hi Friends, I am using the url tag as follows: LocalInvoice Local Invoice The problem is the parameter defined in param tag is getting appended in all others urls on the JSP page so affecting other url's implementation. Please help me / guide me in resolving this issue. Thanks, Shekhe

RE: Confused about Drop down lists (database generated)

2009-11-20 Thread Raghuveer.V
You can use org.apache.struts2.util.ListEntry , a default object to hold key value in Roles list box for JSP page dropdowns. Regards, Raghuveer Vellanki -Original Message- From: Sommers, Elizabeth [mailto:somme...@pragmatics.com] Sent: Thursday, November 12, 2009 7:32 PM To: Struts User

Struts2 Tags Example

2009-11-20 Thread Chris Cranford
I am having trouble iterating/manipulating a collection via struts2 tags. The layout of my entity object is this: public class Role { private String name; private String description; private Long id; private List roleFunctionAccess; // getter/setters and annotations } public class Func

Re: s2: Possible bug found - how to report it?

2009-11-20 Thread Greg Lindholm
Why don't you show your complete action configuration with all the result entries (better include and global results as well). Do you define a result of name="input" as required for validation failure? What version of Struts are you using? On Fri, Nov 20, 2009 at 2:08 PM, ben_979 wrote: > > > Co

s2: Possible bug found - how to report it?

2009-11-20 Thread ben_979
Continuing with my validation problems, I think I've discovered a bug in how struts2 handles the method invocation after validation. Here is the submit tag: and in the struts.xml ScheduleDetailAction_callMe If the form associated with the form tag gets validated succesfully, everythi

RE: Question about struts templates

2009-11-20 Thread Raghuveer.V
Alternatively if you want to do only in one page Regards, Raghuveer Vellanki -Original Message- From: Oscar [mailto:oscar.kalde...@gmail.com] Sent: Friday, November 20, 2009 5:06 AM To: Struts Users Mailing List Subject: Re: Question about struts templates Thanks for your answer Burton

Help needed validating a struts select box

2009-11-20 Thread Sun Jie
Hi all, I am trying to validate a select box using Struts 2.1.8. The select box is a required form element, and by default it is empty. I need to validate that values have been put into it before it is submitted. _Struts select box:_ size="8" multiple="true" required="true" theme="simple"

Re: How to check if an iterator is empty inside a s:subset?

2009-11-20 Thread Cristian Peraferrer
Finally I've found that: did the trick. The thing is that I wasn't able to figure out where to find out "var" defined objects. Now I know that are accessed trough #attr. I hope it will help those people with a similar problem. Cris On Thu, Nov 19, 2009 at 1:04 PM, Cristian Peraferrer wrote:

Re: struts.i18n.encoding

2009-11-20 Thread carl ballantyne
Hi Cristian, Thanks very much for your response. I am using GlassFish 2.1 so will have a look to see if I can implement your type of solution. What I don't get is why we need to apply a filter when already the server is configured to use UTF-8 and we have UTF-8 defined in the meta for the

Re: struts.i18n.encoding

2009-11-20 Thread Cristian Peraferrer
In my application also used the 'struts.i18.encoding=UTF-8' but I had the same problem. But I found a way to get it to work. This way you are only telling struts that has to use UTF-8. But you also need to tell to your Applications Container (Tomcat for example) that you want UTF-8. 1. Set the URI

struts.i18n.encoding

2009-11-20 Thread carl ballantyne
Hi Guys, I have an app with form fields and when submitting them to my Struts 2 actions the values are getting garbled. For example "espaƱa" becomes "espa?". I think the problem is with Struts because when I create a basic jsp page and submit back to itself and display the form field - it