2009/5/19 Qunhuan Mei q...@qm18.wanadoo.co.uk:
When Struts validation is in place, the java action code appears to run
fully twice by default.
What you mean by that? The method execute() is called twice?
Is there a flag or variable as such available?
As I know nope, it's simply not needed.
Yes. s:fielderror renders also ul and li tag, and I don't need them.
I'm in need of a way to showing only the errors for a specific field without
having any HTML tag (I need only the plain text).
newton.dave wrote:
manub wrote:
I used the iterator trick described before and it works,
2009/5/19 manub e.bla...@reply.it:
I'm trying to write a custom field validator which needs other fields to
validate the field I need to validate. How can I pass field values (and not
static params) to a field validator in the validation xml? I'm using Struts
2.1.6.
Did you try
Yes, I did. But in the action the string takes the value ${field} and not
the field value.
Lukasz Lenart wrote:
2009/5/19 manub e.bla...@reply.it:
I'm trying to write a custom field validator which needs other fields to
validate the field I need to validate. How can I pass field values
2009/5/20 manub e.bla...@reply.it:
Yes, I did. But in the action the string takes the value ${field} and not
the field value.
Frankly, I don't understand, are you trying to pass data from
validator xml configuration to action?
Regards
--
Lukasz
http://www.lenart.org.pl/
Thanks. It worked.
Regards,
Sreekanth
On Wed, May 20, 2009 at 11:22 AM, Wes Wannemacher w...@wantii.com wrote:
It might be easier to grab the most recent snapshot builds from here -
http://people.apache.org/builds/struts/nightlies/2.x/
Give them a try, they should include all of the
Lukasz Lenart wrote:
Frankly, I don't understand, are you trying to pass data from
validator xml configuration to action?
I've written a custom field validator, which needs other field values to
validate his field. I need a way to pass that values to that field
validator.
--
View this
2009/5/20 manub e.bla...@reply.it:
I've written a custom field validator, which needs other field values to
validate his field. I need a way to pass that values to that field
validator.
Did you try to use param tag as below?
field name=employee.employeeType
field-validator type=expression
Lukasz, Thanks for your reply. I left some code in action code constructor by
mistake. Sorry for causing the confusion. Have a nice day! Qunhuan
-Original Message-
From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com]
Sent: 2009年5月20日 7:55
To: Struts Users Mailing List
Subject: Re:
hi,
i've tried with db but is complex, i've do in this way:
using the inteceptior of struts and the tag s:file in jsp
private String saveFile(File file, String savePath, String fileName) {
fileName = fileName.replace(' ', '_');
File dirPath = new File(savePath);
if
Hi all.
i need to block the path /admin/ for all the pepole. only the people
logged in as root can access it.
i've done a filter, but struts seems to dosen't works with its
filter
filter-namestruts2/filter-name
manub wrote:
Yes. s:fielderror renders also ul and li tag, and I don't need them.
I'm in need of a way to showing only the errors for a specific field without
having any HTML tag (I need only the plain text).
You'd either need to create/extend/modify the theme, use CSS, or just do
it
Hi Dave!
I'm using Struts2.1.6 and struts2-rest-plugin-2.1.6.
first ,I need a global error page when exception happen like this:
Stacktraces
java.lang.NoSuchMethodException: com.xunan.sitexa.rest.MainController.a()
java.lang.Class.getMethod(Unknown Source)
Put the mapping for the admin filter above the struts2 filter. Filters
are invoked in the order in web.xml, first to last.
The struts filter is catching the request first and dispatching it
before it ever reaches the admin filter.
On 20 May 2009, at 09:37, Stefano Tranquillini wrote:
Hi
he must be passing in JSONResult in one of the params to Action
can we see web.xml struts.xml and struts-default.xml
and struts-config.xml
please display ALL xml files for your project
thanks,
Martin Gainty
__
Jogi és Bizalmassági
now is taked. but i've some problem with the dispacer.
i've an action mapped in this way:
action name=denied
result type=tilesdenied/result
/action
namespace is /
if i manually put in this url:
http://localhost:8080//WAP-Shop-war/denied.action its WORKS.
the filter,
of virus signature
database 4090 (20090520) __
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h
let the StrutsDispatcher handle the navigation details
you'll have to fill in any necessary java classes as well as input/output jsps
but the basic structure is outlined in struts.xml illustrated below
Martin Gainty
__
Verzicht und
You need to include dispatcher elements in your filter mappings for
the Struts filter.
eg.
filter-mapping
filter-namestruts2/filter-name
url-pattern/*/url-pattern
dispatcherREQUEST/dispatcher
dispatcherFORWARD/dispatcher
/filter-mapping
With no dispatcher
result type=tiles tiles.InsPianificPM/result
/action
/package
/struts
Thanks,
daniele
__ Information from ESET NOD32 Antivirus, version of virus signature
database 4090 (20090520) __
The message was checked by ESET NOD32
,
daniele
__ Information from ESET NOD32 Antivirus, version of virus signature
database 4090 (20090520) __
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
-
To unsubscribe, e-mail: user
Hi,
I found this
s:set name=templateSuffix value='ftk' /
or
s:set name=templateDir value='template' scope=page /
Is it posible do the same but with java code in a filter or controller?
Thanks
Germán
On Fri, May 15, 2009 at 5:15 PM, Germán Castro german.cas...@nuwit.comwrote:
Hi,
Thanks to Stuart, Lukasz and Wes for your advice.
I decided to stick with a home-grown solution because I'm only interested in
GET's right now and I don't want the complexity of adding Spring into the
mix with EJB3, Struts and JPA already working well together. This is because
I haven't used
are you using the REST plugin? I can't think of anything else that
would add that .xhtml extension.
musachy
On Wed, May 20, 2009 at 11:48 AM, akoo ogen...@yahoo.com wrote:
Hi guys,
I am having some strange issues trying to upgrade from struts 2.0 to 2.1.
I have this simple login form
Hi Steve,
Glad to hear you got it working - just as an observation (and I really haven't
tested this to check, so it is a question), but would
HttpServletRequest.getQueryString() not have provided you with the original
parameters? So a combination of both getRequestURL and getQueryString could
result type=tiles tiles.InsPianificPM/result
/action
/package
/struts
Thanks,
daniele
__ Information from ESET NOD32 Antivirus, version of
virus signature database 4090 (20090520) __
The message
tiles.InsPianificPM/result
/action
/package
/struts
Thanks,
daniele
__ Information from ESET NOD32 Antivirus, version of
virus signature database 4090 (20090520) __
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
Hi guys,
I am having some strange issues trying to upgrade from struts 2.0 to 2.1.
I have this simple login form
html
headtitleSimple jsp page/title/head
body
s:form action=Login theme=simple method=post
table
tr
tdUsername/td
tds:textfield
(20090520) __
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h
Hi Martin,
don't know howto do it. can you please give me some detailed materials?
在2009-05-20,Martin Gainty mgai...@hotmail.com 写道:
let the StrutsDispatcher handle the navigation details
you'll have to fill in any necessary java classes as well as input/output jsps
but the basic
Thanks in advance for any help on this...
I understand we get this exception when the JSP attempts to write to the
print stream after the response has been committed but I don't see how this is
occurring in my situation since my JSP just contains a simple forward.
Index.jsp
%@ taglib
The JSP compiler simple turns those % % tags inside out and
everything outside of those tags is a string with an out.print... In
your case, the first two things in the file generate returns...
Whitespace is significant... Let me see if I can make it visually more
understandable
Index.jsp
%@
Sorry to hijack this thread, but it looks like Wes has already given you
a pretty complete answer.
At first I thought you were going to be asking about this:
http://wiki.glassfish.java.net/Wiki.jsp?page=FaqWebAppUnableToSetRequestCharEncoding
I get a warning in my glassfish logs for pretty
hi
I have a form that will have varying number of fields inside it. The number
of fields is generated dynamically and is not always the same. When I am
submitting this form to my action class, is there a way to get all the
fields back in a systematic manner? Does struts2 provide any mechanism
On Wednesday 20 May 2009 11:25:50 pm Bhaarat Sharma wrote:
hi
I have a form that will have varying number of fields inside it. The
number of fields is generated dynamically and is not always the same. When
I am submitting this form to my action class, is there a way to get all the
fields
35 matches
Mail list logo