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
Thanks Chris.
I think it moved one step further..
now my web.xml looks like
?xml version=1.0 encoding=UTF-8?
web-app id=WebApp_9 version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
Thanks Antonio...
It worked.
Antonio
Petrelli
antonio.petrelli
HI
Using Struts 2 I am trying to display message from a resource bundle
in the struts.xml
constant name=struts.custom.i18n.resources
value=ApplicationResources.properties/
jsp
--
s:actionmessage key=test.error /
I have copied the ApplicationResources.properties in the classpath
but
i also tried using
s:i18n name=ApplicationResources
The i18n value for test.error in ApplicationResources is s:property
value=text('test.error') /
/s:i18n
in the struts.xml
constant name=struts.custom.i18n.resources
value=ApplicationResources/
still it is not diplaying
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
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
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,
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
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
i have done the following configuration
struts.xml
--
result-types
result-type name=tiles
class=org.apache.struts2.views.tiles.TilesResult/
/result-types
action name=selectProduct
result type=tilesselectProduct/result
/action
web.xml
Hi All,
I am using struts 2.0 for the first time. what i undersatnd is we have
actionname-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
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,
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
Thanks David it worked...
Dave Newton
[EMAIL PROTECTED]
o.com
15 matches
Mail list logo