Hi All,
I have written classname-validation.xml as per tutorial given at Apache site
but it's not working for result name input.
Questions :
1. Do I need to write something in struts.xml for default validator to work ?
Below is my validation xml file :
?xml version=1.0 encoding=UTF-8?
Hi,
I am trying to use struts 2 xml validation framework. But I come across
errors. I am using Struts 2.1.8.1.
Here is my action :
public class RegistrationAction extends ActionSupport{
private String fName;
private String lName;
private String selGender;
private
Change dtd to:
http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd
Regards
--
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/
2012/7/27 Singh, Rajdeep rajdeep.si...@hp.com:
Hi All,
I have written classname-validation.xml
The exception regards the template, what does the jsp look like?
Dave
(pardon brevity, typos, and top-quoting; on cell)
On Jul 27, 2012 8:12 AM, prasad.th16 dattaprasad_tha...@syntelinc.com
wrote:
Hi,
I am trying to use struts 2 xml validation framework. But I come across
errors. I am using
Thanks for help, I changed it but still getting below error :
Jul 27, 2012 6:36:10 PM
com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
SEVERE: Caught exception while loading file
struts2/application/action/Register-validation.xml
Connection timed out: connect - [unknown
Why are you defining an explicit interceptor ref for the action? The
validation interceptor is already in the default stack, and by explicitly
defining an action-specific interceptor you're actually *removing* the
default stack, meaning no parameters will be set on the action, no workflow
takes
I removed interceptor line from struts.xml but still getting same issue. It
does not call input result and moving to next JSP.
Question: Do we write any validation.xml file apart from
actionclassname-validation.xml ?
Thanks,
Rajdeep Singh
-Original Message-
From: Dave Newton
Hello.
This is a Struts 2 example to show the use of custom result type to
download file.
I have in jsp :
- 1 password textfield
- 1 submit button
If I push submit button without insert a password I correctly obtain a
field error Field required!.
Then If I set XYZ password (correct password),
My take on your problem - Your page isn't getting refreshed so the field
errors remain.
Regards
Puneet Babbar
-Original Message-
From: luca.zoff...@maggioli.it [mailto:luca.zoff...@maggioli.it]
Sent: Friday, July 27, 2012 7:18 PM
To: Struts Users Mailing List
Subject: Clear field
Yes. I think this is the problem.
Struts2 Stream result type doesn't refresh page.
Some suggestions?
Thanks
Puneet Babbar 2
pbabbar2@sapient
Are you defining your actions in the Spring config file (which isn't
necessary)?
If so, make sure they're scoped prototype.
Dave
On Fri, Jul 27, 2012 at 10:03 AM, luca.zoff...@maggioli.it wrote:
Yes. I think this is the problem.
Struts2 Stream result type doesn't refresh page.
Some
Hi Dave,
no I'm not using Spring.
Dave Newton
davelnewton@gmai
l.com
I suppose b/c your browser doesn't change the page and b/c the content type.
You should try to break your workflow in the following way:
* authentication
* link to download
* download
Twitter :http://www.twitter.com/m_cucchiara
G+ :https://plus.google.com/107903711540963855921
I noticed some OGNL warnings in my log that I show below [1].
User scenario:
1) go to form. no warnings
2) submit form - page is reloaded. warnings appear.
The warning is for property which is being used on a key: s:submit
key=geral.save /. The key is defined in globalmessages.properties.
It
Answering my own question: apparently you need to define a name property
for the submit tag.
Thanks to http://www.coderanch.com/t/487063/Struts/Internationalization
Miguel
On Fri, 2012-07-27 at 18:33 +0100, Miguel Almeida wrote:
I noticed some OGNL warnings in my log that I show below [1].
15 matches
Mail list logo