Struts 2 validation error messages

2007-07-10 Thread Manoj . Gupta
Hi, I have written my customised java class to do the form validation within the action class. I want to render the validation error messages from a property file and not hard coding it into the code. What i understand is the struts ActionSupport class has addActionError(String msg) which takes

Struts 2 Validation

2007-07-03 Thread Manoj Gupta
Hi All, I am trying to use struts 2 validation for the first time. I have a action class called TestAction.java and two form bean attribute like Form01 f1; - with getter/setter Form 02 f2 ; with getter/setter as the form will be populated from two different pages i want to

Re: Struts 2 displaying message from resource bundle

2007-07-03 Thread Manoj Gupta
i also tried using The i18n value for test.error in ApplicationResources is in the struts.xml still it is not diplaying the message from the resource file. Any idea? - Here’s a new way to find what yo

Struts 2 displaying message from resource bundle

2007-07-03 Thread Manoj . Gupta
HI Using Struts 2 I am trying to display message from a resource bundle in the struts.xml jsp -- I have copied the ApplicationResources.properties in the classpath but it is not reading the message from the property file, it displays the key. Please let me know if iam doing somethi

Re: Configuring Tiles in S2 - solved

2007-07-03 Thread Manoj . Gupta
Thanks Antonio... It worked. "Antonio Petrelli" "Struts Use

Re: Configuring Tiles in S2

2007-07-03 Thread Manoj . Gupta
Thanks Chris. I think it moved one step further.. now my web.xml looks like http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/w

Re: Configuring Tiles in S2

2007-07-02 Thread Manoj . Gupta
i have done the following configuration struts.xml -- selectProduct web.xml tiles org.apache.tiles.servlet.TilesServlet definitions-config /WEB-INF/tiles-config.xml 1

Re: Configuring Tiles in S2

2007-07-02 Thread Manoj . Gupta
We've done as the tiles plugin page describes but are getting a null pointer 16:46:16,796 INFO [ActionValidatorManagerFactory] Detected AnnotationActionVali datorManager, initializing it... 16:46:17,171 ERROR [BasicTilesContainer] Error rendering tile can anyone advise of what we're doing wrong?

Configuring Tiles in S2

2007-07-02 Thread Manoj . Gupta
Hi, Has anyone tried plugging in tiles in Struts 2 application. Sample configuration code can be of great help. Thanks. Manoj. This e-mail is intended to be confidential to the recipient. If you receive a copy in error, please inform the sender and then delete this message. Virgin Money do no

Struts 2 - redirect to secure page

2007-07-02 Thread Manoj . Gupta
Hi, In struts 2 how can we redirect to a secure page. Unlike struts 1.x there is no secure property in the action tag of struts.xml file. On the form submission I want to go to a secured jsp page. Thanks, Manoj Gupta. This e-mail is intended to be confidential to the recipient. If you receive

Struts 2 EventDispatcherAction ?

2007-07-02 Thread Manoj . Gupta
HI, Is there is any interface similar to EventDispatcherAction(in struts 1.2.9) in struts 2 by which I could invoke different action methods based on the parameters Manoj. This e-mail is intended to be confidential to the recipient. If you receive a copy in error, please inform the sender and

Re: Struts 2.0 form bean

2007-06-29 Thread Manoj . Gupta
Thanks David it worked... Dave Newton <[EMAIL PROTECTED] o.com>

Re: Struts 2.0 form bean

2007-06-29 Thread Manoj . Gupta
Hi Dave, Thanks for your reply. I tried defining a java bean as below public class PersonalDetailForm implements Serializable { String name; String dob; String city; public PersonalDetailForm() {} // also defined all the getter setter methods } In the action class i defi

Struts 2.0 form bean

2007-06-29 Thread Manoj . Gupta
Hi All, As there is no concept of Action form beans in struts 2.0 we have to define the field attributes in the Action class. I am using the same action class for two form submission, is there any way of configuring form beans to this actions. For example if my first form has fields name, addr

Struts 2.0 validation

2007-06-29 Thread Manoj . Gupta
Hi All, I am using struts 2.0 for the first time. what i undersatnd is we have -validation.xml file where in we define the validation rules. In my current project i am having one action class called ApplicantAction.java where i have defines two action methods for two separate form submission. It