Hi
package name=front extends=struts-default
Add namespace attribute like this namespace=/front
However, when I run mvn jetty:run, Struts 2 doesn't find the action
front/home.action. I looked in the target directory as well as in the war
file packaged with the command mvn package, and I
I can implement custom validation using validate(), but I've around 30
transactional forms with this type of requirements.
Maybe it will be better if you implement your own validator for thoese
30 forms? I think it will be soft option then very compilcated
expression above ;-)
Regards
--
Hi,
As I know, use of s:action tag should be avoided, the better option is
to use Preparable interface, you can use prepareMethodName() method
also.
http://struts.apache.org/2.x/docs/prepare-interceptor.html
Regards
--
Lukasz
http://www.lenart.org.pl/
Hi Sarath,
this is content of my TestAction:
---
public ListString getMyList() {
ArrayListString result = new ArrayListString();
result.add(1.);
result.add(2..);
result.add(3...);
Hi,
Just want to know how to get all sessions.
now, I used a listener to add ActionContext.getContext().getSession()
to a list by myself, I just wondering maybe there is a struts API can
get all sessions.
Thanks.
Joey
-
To
Hi,
The best option is to build your own session listener like that [1]
and register it with web.xml
[1] http://www.java2s.com/Code/Java/Servlets/Servletsessionlistener.htm
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To
Hi Joey, i think this is not a struts issue. As far as i know, you can't
access all sessions with servlet 2.3 compliant container (i don't know
earlier versions)
You can try to use session listeners to session store info in a common
place or jmx solution.
El jue, 26-06-2008 a las 18:53 +0800,
On Thu, Jun 26, 2008 at 3:53 AM, Joey [EMAIL PROTECTED] wrote:
Just want to know how to get all sessions.
now, I used a listener to add ActionContext.getContext().getSession()
to a list by myself, I just wondering maybe there is a struts API can
get all sessions.
AFAIK there is no
Hi Matt,
For Struts 1.1, I used to do following things:
logic:iterate id=dataObjects property=dataObjects indexId=cnt
html:text name=dataObjects property=property1 indexed=true/
html:text name=dataObjects property=property2 indexed=true/
/html:iterate
Syntax may be wrong (tried 2
I want to test an action with jUnit. I have found a way to test Struts2 from
http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit
this tutorial. I set the configuration file to struts.xml file. It works as
expected if I do not include tiles.
My test
for example, in a application, a admin user maybe want to check all
sessions on this application, just for this
as I wrote in my first email, I am using a listener to add each
session when a session created, but I am lazy', so just wondering
maybe there is a better and easier way to get all
Hi Joey,
from a security point of view, this should be forbiden.
But You may have a look at manager application from tomcat distribution,
there is exactly such thing that counts and show all sessions in
application. I've no idea how it's done there though, but most likely
there are sources for it
And I think the problem I'm having is figuring out what to do in the
absence of an indexed property in the s:textfield tag - there's nothing
in the generated HTML that suggests this is going into a Collection on
the Action side.
- Matt
-Original Message-
From: Nikhil Walvekar
2008/6/26 ezgi [EMAIL PROTECTED]:
If I include the tiles part in struts.xml, it gives a NullPointerException :
Did you add the StrutsTilesListener in your web.xml?
http://cwiki.apache.org/confluence/display/WW/Tiles+Plugin
Did you configure Tiles correctly?
Antonio
2008/6/26 ezgi [EMAIL PROTECTED]:
If you look at the tutorial I refer, you can understand that I am not the
only one who have this problem. I try to set the configuration file to
tiles.defs.xml as suggested, but it gave an XML parse exception.
Can we see the Tiles definition files that you
That was, more or less, why I suggested manually creating an array index in the
name of the field.
--- On Thu, 6/26/08, Kleiderman, Matthew [EMAIL PROTECTED] wrote:
From: Kleiderman, Matthew [EMAIL PROTECTED]
Subject: RE: Multi-row tabular forms
To: Struts Users Mailing List
I have designed a web multiannual web application in UTF-8.
JSP Code:
%@ page contentType=text/html;charset=utf-8 %
%
request.setCharacterEncoding(utf-8); // this can be added in Servlet
Filter or in Action Form
%
When JSP page is rendered it is found in
IE View... Encoding
Most application servers expose some kind of monitoring and management
operations, usually through JMX. Check the documentation for your
application server for more information.
Nils-H
On 26. juni. 2008, at 13.42, Joey [EMAIL PROTECTED] wrote:
for example, in a application, a admin user
This is the tiles.defs.xml :
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE tiles-definitions PUBLIC
-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN
http://tiles.apache.org/dtds/tiles-config_2_0.dtd;
tiles-definitions
definition name=tvq.template.default
I have designed a web multiannual web application in UTF-8.
It will run for years?
Is it possible to restrict the user to change
encoding option in browser?
From the *web app*?!
Is there a way to identify in JSP or in Action File if the
encoding has been modified at client side by user
2008/6/26 Raghuveer [EMAIL PROTECTED]:
Is there a way to identify in JSP or in Action File if the encoding has been
modified at client side by user and show a message that
This application has been design to work in UTF-8 Encoding
Yes, check the Accept-Charset header field:
In generated HTML it should be like this
input type=text name=dataObjects[0].property1 value=/
If you can get output like this, then that collection can be populated.
Regards,
Nikhil
On Thu, Jun 26, 2008 at 5:23 PM, Kleiderman, Matthew
[EMAIL PROTECTED] wrote:
And I think the problem I'm
2008/6/26 ezgi [EMAIL PROTECTED]:
This is the tiles.defs.xml :
listener
listener-class
org.apache.struts2.tiles.StrutsTilesListener
/listener-class
/listener
servlet
servlet-nametiles/servlet-name
... a remember me tick box on a login page?
If the user ticks the box they're don't have to log in again if they
visit the site again, if they don't click it the login times out in the
same manner as a normal session.
Remember; I'm ideally looking for a method that stays within the
framwork
Hi Al,
use cookie?
But it's working only within one user browser at a time.
Best greetings,
Paweł Wielgus
On 26/06/2008, Al Sutton [EMAIL PROTECTED] wrote:
... a remember me tick box on a login page?
If the user ticks the box they're don't have to log in again if they visit
the site again,
Not sure what id field you're talking about, but S2's type conversion handles
collections.
Dave
--- On Thu, 6/26/08, Kleiderman, Matthew [EMAIL PROTECTED] wrote:
From: Kleiderman, Matthew [EMAIL PROTECTED]
Subject: RE: Multi-row tabular forms
To: Struts Users Mailing List
I tried three of them seperatley, but it did not work. Should I modify the
configuration variable in the BaseStrutsTestCase? I did not add there
web.xml and tiles-defs.xml.
As you suggested, I add this code into web.xml.
listener
listener-class
Hi
2008/6/26 Al Sutton [EMAIL PROTECTED]:
... a remember me tick box on a login page?
If the user ticks the box they're don't have to log in again if they visit
the site again, if they don't click it the login times out in the same
manner as a normal session.
Remember; I'm ideally looking
--- On Thu, 6/26/08, Antonio Petrelli [EMAIL PROTECTED] wrote:
The problem is that you are using StrutsTilesListener (that
loads /WEB-INF/tiles.xml by default), TilesServlet and
TilesFilter at the same time.
Two is one, one is none! Three is... three is right out.
You're just mad because of
I don't recall seeing any S2-y cookies stuff, but it'd be pretty easy to write
an interceptor that could toss your cookies if there isn't already (and, I
suppose, run cookie values through type conversion. Hrmmm.)
Dave
--- On Thu, 6/26/08, Al Sutton [EMAIL PROTECTED] wrote:
From: Al Sutton
2008/6/26 Dave Newton [EMAIL PROTECTED]:
--- On Thu, 6/26/08, Antonio Petrelli [EMAIL PROTECTED] wrote:
The problem is that you are using StrutsTilesListener (that
loads /WEB-INF/tiles.xml by default), TilesServlet and
TilesFilter at the same time.
Two is one, one is none! Three is... three
2008/6/26 ezgi [EMAIL PROTECTED]:
I tried three of them seperatley, but it did not work.
Please clarify, what do you mean with it did not work? Do you
receive an exception at startup?
Should I modify the configuration variable in the BaseStrutsTestCase? I did
not add there
web.xml and
Hi all,
Does anybody know of a way to override the default type conversion error of
Struts 2 in a way that makes it possible to localize the field name? I've
tried using ${getText(fieldName)} and {0] in the overriding message, but
they don't seem to work.
Jukka
--- On Thu, 6/26/08, Antonio Petrelli [EMAIL PROTECTED] wrote:
Eh? I know I am supposed to laugh, but since I am Italian
could you explain it a little ;-)
Or cry; Spain whupped ya' 4-2.
Dave
-
To unsubscribe, e-mail: [EMAIL
Hmm, I've used ${getText(fieldName)} in the resources without issues... I
wonder why that worked for me? Are you using the key attribute in the form
tag?
Dave
--- On Thu, 6/26/08, Jukka Välimaa [EMAIL PROTECTED] wrote:
From: Jukka Välimaa [EMAIL PROTECTED]
Subject: Overriding and
2008/6/26 Al Sutton [EMAIL PROTECTED]:
At least they made it to the tournament :(
Ah now I got it. You know, I removed the tournament from my memory
after the penalty kicks :-D
I see the positive point though, Donadoni is going away and Lippi is
coming back.
Antonio
I have loaded the Tiles listener and run the jUnit test and it gave the same
NullPointer Exception. Moreover, the trace is same as before.
Then, I tried to load tiles servlet, and it gave the same error. Lastly, I
loaded the tiles filter and it gave ther same NPE.
I have already tried three of
2008/6/26 Antonio Petrelli [EMAIL PROTECTED]:
2008/6/26 Al Sutton [EMAIL PROTECTED]:
At least they made it to the tournament :(
Ah now I got it. You know, I removed the tournament from my memory
after the penalty kicks :-D
Oh by the way, Al, I have to say one little secret.
We sent you
2008/6/26 ezgi [EMAIL PROTECTED]:
I have just replaced the code with the new one, isn't it the one you
suggested?
Yes, but you had to adapt it to your needs.
By the way, do you still receive a parsing error, at startup?
Antonio
If I add the location of web.xml or any other thing to here
private static final String CONFIG_LOCATIONS = file:src/struts.xml ;
I got a parsing error. I am not very experienced with tiles, I just test the
code in a big project. The problem is , if I do not include tiles, my unit
test works
2008/6/26 ezgi [EMAIL PROTECTED]:
If I add the location of web.xml or any other thing to here
private static final String CONFIG_LOCATIONS = file:src/struts.xml ;
I got a parsing error. I am not very experienced with tiles, I just test the
code in a big project. The problem is , if I do not
I can also use getText(fieldName) for normal validation messages, for fields
I've written validation to. But it doesn't work for overriding the default
conversion error. I get the blank screen of doom if write in this and try to
submit a field that triggers conversion error:
In my action, I have a reference to Http request and it requires to access
the HttpServletRequest object, so I can not easily test the action with just
calling the execute method and comparing the result. So, I have found out a
solution from the link that I refere before, I did not write the
Hi All,
I have 2 s:select tags.
Example:
s:select label=Class key=class list=classNames headerKey=1
headerValue=-- Please Select -- onchange=javascript:formSubmit();
/
s:select label=Teacher key=teacher list=teachers headerKey=1
headerValue=-- Please Select -- /
When I select
2008/6/26 ezgi [EMAIL PROTECTED]:
In my action, I have a reference to Http request and it requires to access
the HttpServletRequest object, so I can not easily test the action with just
calling the execute method and comparing the result. So, I have found out a
solution from the link that I
This is the action class:
public class HelloWorldTest extends BaseStrutsTestCase {
HelloWorld hello;
Map testSession;
@Before
public void setUp() throws Exception {
super.setUp();
hello = createAction( HelloWorld.class,
2008/6/26 ezgi [EMAIL PROTECTED]:
If you look at the link, you can understand the problem. Whose
initialization is the one that you can't understand?
I see, but I am sorry, without initialization Tiles won't work.
Antonio
-
How can I initialize tiles in this context?
Antonio Petrelli-3 wrote:
2008/6/26 ezgi [EMAIL PROTECTED]:
If you look at the link, you can understand the problem. Whose
initialization is the one that you can't understand?
I see, but I am sorry, without initialization Tiles won't work.
Even though if client browser has languages /different q values.
In my application Language / Locale is not identified by
request.getHeader(Accept-Charset) .
SO this will be null.
I am build local object for multiple languages based on click of button.
Setting the locale object insession for
Acegi is a bit of overkill for what I need. It's a simple app, so I'm
looking for a simple struts based solution or failing that someone to
say it can't be done :(.
Al.
Lukasz Lenart wrote:
Hi
2008/6/26 Al Sutton [EMAIL PROTECTED]:
... a remember me tick box on a login page?
If the
Hello again:
I have the following Action:
public class PrepAction extends ActionSupport {
String param_1 = null;
public String execute() {
System.err.println(In prep execute);
return SUCCESS;
}
public void setParam_1(String param_1) {
this.param_1 = param_1;
}
public String getParam_1() {
2008/6/26 ezgi [EMAIL PROTECTED]:
How can I initialize tiles in this context?
In some ways, you have to manage to put StrutsTilesListener, or at
least its code, but I don't really know how to do it.
I suggest to ask the BaseStrutsTestCase developers.
Antonio
Thank you very much, but they also seem not to find the solution.
Antonio Petrelli-3 wrote:
2008/6/26 ezgi [EMAIL PROTECTED]:
How can I initialize tiles in this context?
In some ways, you have to manage to put StrutsTilesListener, or at
least its code, but I don't really know how to do
2008/6/26 Al Sutton [EMAIL PROTECTED]:
Acegi is a bit of overkill for what I need. It's a simple app, so I'm
looking for a simple struts based solution or failing that someone to say it
can't be done :(.
But it's wide used and you can find lot of examples, and the most
important, someone who
What am I missing?
Name of the parameter, change it to param1 and getter/setter
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
... and, with dependancies, it comes to over 1MB in size, which for me
is too much bloat just for one small feature.
If needs be I'll do something with crypto a cookie which will fit into
a few K, I just wondered if there was an easier method.
Lukasz Lenart wrote:
2008/6/26 Al Sutton
Changed everything to param1. Still the same error.
What am I missing?
Name of the parameter, change it to param1 and getter/setter
From: Eric Hamacher
Sent: Thursday, June 26, 2008 8:42 AM
To: 'user@struts.apache.org'
Subject: Struts 2 -
Hi all,
As I am not sure if I can explain the whole context of my problem just a
short description of what I got and what I want:
I got an Action extending ActionSupport where I added a
getCurrentAction() method.
public String getCurrentAction() {
String sRequestURL =
2008/6/26 Eric Hamacher [EMAIL PROTECTED]:
Changed everything to param1. Still the same error.
Could you show your jsp?
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Solved it. I forgot to enter the class attribute in my configuration.
Thanks!
-Original Message-
From: Lukasz Lenart [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2008 9:07 AM
To: Struts Users Mailing List
Subject: Re: Struts 2 - Unexpected Exception
2008/6/26 Eric Hamacher [EMAIL
Something I forgot to tell
I already tried the way using the s:property value=#action / but as
I use a default action for most of my calls its not a possibility...
Hi all,
As I am not sure if I can explain the whole context of my problem just a
short description of what I got and what I
2008/6/26 Eric Hamacher [EMAIL PROTECTED]:
Solved it. I forgot to enter the class attribute in my configuration.
Thanks!
Exactly, that was in exception, the class name was ActionSupport and
not your class ;-)
Regards
--
Lukasz
http://www.lenart.org.pl/
I think there isn't any solution in Struts2, so then, implement that
with cookies and save such cookie also on the server side in db, you
can also allow such thing for selected users, etc.
Regards
--
Lukasz
http://www.lenart.org.pl/
2008/6/26 Jim Kiley [EMAIL PROTECTED]:
I believe what Lukasz is trying to get across is that when Struts sees the
underscore in the submitted data it assumes that it is working with a
collection or array of some kind. The fact that it referred to your value
as '[Ljava.lang.String' rather than
Try this:
http://struts.apache.org/2.x/docs/how-do-we-access-the-action-invocation-action-name-or-namespace-from-a-view.html
On Thu, Jun 26, 2008 at 10:15 AM, Jan Froehlich
[EMAIL PROTECTED] wrote:
Something I forgot to tell
I already tried the way using the s:property value=#action / but
I was thinking more along the lines of encrypting the userId and
password hash using AES, store the value in the cookie, then if the
cookie is available during another session decrypt, check everything
matches, and let them back in.
That way it avoids trying to maintain sync between the user
Be aware of cookie stealing.
musachy
On Thu, Jun 26, 2008 at 10:32 AM, Al Sutton [EMAIL PROTECTED] wrote:
I was thinking more along the lines of encrypting the userId and password
hash using AES, store the value in the cookie, then if the cookie is
available during another session decrypt,
Hi,
2008/6/26 Al Sutton [EMAIL PROTECTED]:
I was thinking more along the lines of encrypting the userId and password
hash using AES, store the value in the cookie, then if the cookie is
available during another session decrypt, check everything matches, and let
them back in.
But you will
Personally I kinda liked my idea of a cookie interceptor that will inject
type-converted cookie values into actions; we'll probably use something like
that for our new projects.
Dave
--- On Thu, 6/26/08, Al Sutton [EMAIL PROTECTED] wrote:
From: Al Sutton [EMAIL PROTECTED]
Subject: Re: [s2]
It's going to be a problem with whatever method is used. Even if there
is a server side IP address record for each cookie you still have the
problem of cookies stoled and used at the same location :(.
Unless you have an idea you wish to share? :).
Al.
Musachy Barroso wrote:
Be aware of
The key(s) can be a single key per day/week/month. The date of the
cookie generation can be included and the relevant key looked up.
The problem with MD5 is it's one way so I'd have to have either a search
and match algorithm, or a database of MD5ed text to user mappings. With
AES I can
Dave,
I'm completely agree it's a great idea and useful thing to do, but the
problem is what to put into the cookie and how to map it to the user.
My current favourite is encrypt the properties you want to store (using
AES for speed and JCE support), then decrypt and inject when needed.
I replaced OGNL 2.6.11 with the latest 2.7.2 Version.
I did a bit of benchmarking comparing the two and it absolutely surprised
me, that 2.7.2 in some cases is almost twice as slow as 2.6.11
The test scenario:
iterate a large java.util.List in a jsp. the List contains a pretty large
tree of
If your benchmark uses multiple threads throw in a freemarker upgrade to
2.3.13 and have another spin :).
One thing you might want to bear in mind is that if you're using a
persistance framework there maybe some back end fetching taking place
between a.b.c and a.b.c.d. Even though you write
Can you give me a quick hint, how I can access what I need? Not sure
what I should search for
Try this:
http://struts.apache.org/2.x/docs/how-do-we-access-the-action-invocation
-action-name-or-namespace-from-a-view.html
On Thu, Jun 26, 2008 at 10:15 AM, Jan Froehlich
[EMAIL PROTECTED]
That will return an object of this type:
http://struts.apache.org/2.0.11.1/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/ActionMapping.html
musachy
On Thu, Jun 26, 2008 at 11:21 AM, Jan Froehlich
[EMAIL PROTECTED] wrote:
Can you give me a quick hint, how I can access what I need?
Well, ok - found that already - but I got no Idea what method returns my
desired action.
That will return an object of this type:
http://struts.apache.org/2.0.11.1/struts2-core/apidocs/org/apache/struts
2/dispatcher/mapper/ActionMapping.html
musachy
On Thu, Jun 26, 2008 at 11:21 AM, Jan
I'm sorry - found it..
Just ignore my last message!
That will return an object of this type:
http://struts.apache.org/2.0.11.1/struts2-core/apidocs/org/apache/struts
2/dispatcher/mapper/ActionMapping.html
musachy
On Thu, Jun 26, 2008 at 11:21 AM, Jan Froehlich
[EMAIL PROTECTED] wrote:
Hello, All.
I've a problem, I usa a combobox to show options in a page, but I need
keep the id and show the description.
I use Apache Tomcat 5.5 and Struts 2.0.11
My bean has:
private String technology;
private CollectionTechnology lstTechnology;
My page has:
Use listValue?
Dave
--- On Thu, 6/26/08, Juan Pablo Pizarro [EMAIL PROTECTED] wrote:
From: Juan Pablo Pizarro [EMAIL PROTECTED]
Subject: Help with Combobox
To: Struts Users Mailing List user@struts.apache.org
Date: Thursday, June 26, 2008, 11:40 AM
Hello, All.
I've a problem, I usa a
Sorry, I use:
s:combobox label=%{getText('technology')}
name=technology readonly=true
headerValue=--- Please Select ---
headerKey=1
list=lstTechnology.{shortDesc}/
JP
2008/6/26 Dave Newton [EMAIL PROTECTED]:
Use listValue?
Dave
2008/6/26 Juan Pablo Pizarro [EMAIL PROTECTED]:
Sorry, I use:
s:combobox label=%{getText('technology')}
name=technology readonly=true
headerValue=--- Please Select ---
headerKey=1
list=lstTechnology.{shortDesc}/
It should be
No-reply? :(
However, I solved. Now all works well.
**
SERVER-SIDE
**
To avoid the deprecated method
Resources.getActionMessage(HttpServletRequest request, ValidatorAction va,
Field field)
I used
Resources.getActionMessage(Validator v, HttpServletRequest request,
ValidatorAction
Thanks!!
It works fine!
Regards.
2008/6/26 Lukasz Lenart [EMAIL PROTECTED]:
2008/6/26 Juan Pablo Pizarro [EMAIL PROTECTED]:
Sorry, I use:
s:combobox label=%{getText('technology')}
name=technology readonly=true
headerValue=---
Hello. I've a very strange problem using content disposition in stream
result:
result name=success type=stream
${contentType}
downloadStream
filename=${fileName}
1024
/result
fileName is a field of my action
Hi Folks,
I have particular requirement where I have nested elements and within that
again some elements… So the nesting is up to 3 levels.
Top most element is
ModulesList= it has N modules
Module = it has N Parts
Part= it has N Elements
Here is the class hieirarchy
Parent class that
i want to ask about error when i creating application with struts framework
the error is : ClassNotFoundException:
org.apache.struts.action.ActionServlet in my glassfish server console
i create web project and put struts framework form netbeans
i look in my library and it's already add struts
So I have been doing some testing and it seems the the same two action
objects are persisting. So when I invoke the first action class the
ActionInvocation has on the stack (for lack of a better name)
[EMAIL PROTECTED] When I submit the form to the processing action I
get some other arbitrary
Hi,
Are you using spring to instantiate your actions? If so, did you setup
to not use singletons?
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
To repeat my previous question:
How is it failing? Note that the 'simple' theme generates a lot less
markup, and doesn't generate everything the other themes do. Are I18N
resources failing to get resolved, or is the theme just not
generating the
things you were expecting to see?
With the
I am aware that, when applying request parameters to an action, Struts
cannot guess the actual type of parameters determined by a generic type
(because of erasure at compile time).
However, I am assuming that if a non-generic action class extends an
abstract generic one, it should be possible in
I cannot believe I missed that, my reports showed how obviously it was
creating singletons and never configured it not to. Thanks for the
information, resolved the problem within minutes of reading your response.
Thanks again!
--
View this message in context:
My guess is that using an action extension of .html creates a conflict
with the Dojo template resources, which are .html files. If you look at
your access logs (or use Firebug to see what XHR requests are being made
during page rendering), you'll see what I mean.
The easiest thing to do is
Hi,
I don't know why you use such generic action class? And as I know OGNL
support generics and it will try to convert to given type without
TypeConversion
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail:
Sonu S wrote:
HI,
I have to show list in my jsp page. I am using html:select
i am getting two lists from data base and it is in employee form bean: first
list is for employee no and second list is for name. i want to display
employee name in option and want to use employee no as VALUE in
Hi Lukasz
I don't know why you use such generic action class?
;)
Well, I haven't shown you the purpose of any of the objects. (In fact, the
full hierarchy is highly more complex than what is shown in my previous
post; there are 29 objects involved...)
And as I know OGNL support generics and
Nils-Helge Garli Hegvik wrote:
I believe most servlet containers prevent sharing of session objects
between applications by default. But it probably can be configured to
be allowed (consult the documentation for your server to find out
I know some containers support this, but it is
Why not just validate all fields with type=requiredstring and set
short-circuit=true on them? Wouldn't that do what you want? See the
Short-Circuiting Validator section of the validation docs [1] for more
details.
[1] http://struts.apache.org/2.1.2/docs/validation.html
L.
ManiKanta G wrote:
I realize that I may have been stingy on the exception stack trace. Here is
more of it.
Notice that, nowhere in there is my StringToIntegerConverter actually
called. (It would have logged the occurrence.)
15:22:37,762 DEBUG ParametersInterceptor:58 - Setting params propertyId = [
295 ]
Try to change order of your interceptors as below
interceptor-stack name=contribStack
interceptor-ref name=paramsPrepareParamsStack/
interceptor-ref name=autoLogin/
/interceptor-stack
Regards
--
Lukasz
http://www.lenart.org.pl/
1 - 100 of 112 matches
Mail list logo