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

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 this

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 AM

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 To: Struts Users Mailing List Date: 28-07-2010 22:09 Subject: Reading input stream (xml) If we send XML content in the POST/PUT request to Struts action controller, how to read th

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 // Pe

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 searc

Re: getting label from property

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

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 . 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 (package.propertie

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 me

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

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: > > > > Michal > > > Hi all, > > i do it like that: > > in my

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 norma

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: Il giorno mar, 27/07/2010 alle 05.55

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], DateUt

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.

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.