Re: Setting up 2.2.1 in maven for testing

2010-07-28 Thread Lukasz Lenart
Thanks for your comments! Please register a ticket and I try to put some love with the docs ;-) Kind regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe,

Job opportunity in Europe

2010-07-28 Thread Tim Robertson
Hi all, Disclosure: I am not a recruiter, but looking to increase a development team that I lead. I sincerely apologize if this message is against mailing list etiquette; I have not seen any guidelines forbidding this. We are looking to expand the development team based in Copenhagen, Denmark.

Re: Display GregorianCalendar Objects

2010-07-28 Thread Reeshi Agrawal
Michal, I wanted the user to input his birth-date. Displaying the current date will be of no use for it.

Re: Display GregorianCalendar Objects

2010-07-28 Thread Michal Ciasnocha
In that case you must use own converter like this: public class DateTimeConverter extends StrutsTypeConverter { @Override public Object convertFromString(Map context, String[] values, Class toClass) { try { return DateUtil.getConvertedDate(values[0],

Re: Struts2 - JSF Plugin - Richfaces

2010-07-28 Thread Stefano Corallo
Hi, i've simply followed this: http://struts.apache.org/2.x/docs/jsf-plugin.html and in the struts.xml: package name=jsf extends=jsf-default namespace=/jsf result-types result-type name=jsf class=org.apache.struts2.jsf.FacesResult / /result-types interceptors

Advice on replacing an image with fall-back?

2010-07-28 Thread java . rgm
I'm suffering from option overload and need advice on how best to accomplish loading resources based on the User's current skin. This would be something the user could set through an Action, and would be stored on the HttpSession. I'd like to have one set of templates and page resources

Re: Display GregorianCalendar Objects

2010-07-28 Thread Ken
On Tue, 2010-07-27 at 21:45 +0200, Michal Ciasnocha wrote: Why don't use Struts tag s:date for date formatting? in Action: public GregorianCalendar getMyDate() { return new GregorianCalendar(); } in jsp: s:date name=myDate format=d. M. HH:mm / Michal Hi all, i

Reading input stream (xml)

2010-07-28 Thread Arun Kumar Boppudi
If we send XML content in the POST/PUT request to Struts action controller, how to read this content in the Action class? -- AB

getting label from property

2010-07-28 Thread Ryan Beckes
Hi All, I'm working my way through properties and I'm kind of stuck. I have a properties file (package.properties) with a message entry... Index.message= Color ... I am able to pull this message via the s:text tag, so I know it's available in the value stack, but when I try to pull the same

Re: getting label from property

2010-07-28 Thread Michal Ciasnocha
Hi Ryan, for getting translated text as label of select tag (and other tags) use key attribute. Usage is same as s:s text name=... /. Best regards, Michal Ryan Beckes wrote on 28.7.2010 20:16: Hi All, I'm working my way through properties and I'm kind of stuck. I have a properties file

Re: getting label from property

2010-07-28 Thread Ryan Beckes
Thanks! On Wed, Jul 28, 2010 at 1:40 PM, Michal Ciasnocha m...@struts.cz wrote: Hi Ryan, for getting translated text as label of select tag (and other tags) use key attribute. Usage is same as s:s text name=... /. Best regards, Michal Ryan Beckes wrote on 28.7.2010 20:16: Hi All,

Parse url parameter

2010-07-28 Thread Franz Wong
Hi group, Suppose I have an URL with parameters (e.g. http://localhost:8080/myApp/action/myAction/user/name/Peter). I would like to map those parameters in the following way. class MyAction { private String searchType; // user private String searchMethod; // name private String

Re: Parse url parameter

2010-07-28 Thread Dale Newfield
On 7/29/10 12:02 AM, Franz Wong wrote: http://localhost:8080/myApp/action/myAction/user/name/Peter). I would like to map those parameters in the following way. class MyAction { private String searchType; // user private String searchMethod; // name private String searchData //

Re: Reading input stream (xml)

2010-07-28 Thread Rahul Mohan
Doesn't this link (http://struts.apache.org/2.0.14/docs/file-upload.html) help you? From: Arun Kumar Boppudi arunkumar.bopp...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 28-07-2010 22:09 Subject: Reading input stream (xml) If we send XML content in the POST/PUT

Re: Reading input stream (xml)

2010-07-28 Thread Arun Kumar Boppudi
Actually, I am not uploading a file. I am creating XML from the data entered into the form and sending it to the action controller in the POST request body. In the action controller, I would like to parse the XML. How to do it in Struts 1.3? -- Arun Kumar Boppudi On Thu, Jul 29, 2010 at 10:24

Re: Reading input stream (xml)

2010-07-28 Thread Rahul Mohan
Arun, You can keep a string property on action form and map it to the xml field so that the xml content is available here on page submit. In the action class, then you will be able to get the string and parse it using any available xml parser. I don't think Struts provides any shortcut for

How to check if a error for a certain property exists inside action errors.

2010-07-28 Thread Vishnu Vyasan Nelliparmbil
Hi guys, I want to check if a error for a certain property is present in the Action Errors. How can I do that. BTB, I am using struts 1.3. Thanks and regards Vishnu NV