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
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
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?
-
Heres a new way to find what yo
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
Thanks Antonio...
It worked.
"Antonio
Petrelli"
"Struts Use
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
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
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?
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
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
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
Thanks David it worked...
Dave Newton
<[EMAIL PROTECTED]
o.com>
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
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
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
15 matches
Mail list logo