RE: How to validate a checkboxlist?

2008-05-09 Thread mojoRising
r > it, so have a look: > http://www.google.com/search?q=javascript+checkbox+group&btnG=z34r%3C%7C > -%7C Hopefully that ought to point you in the right direction. > > ~DVA > > > > -Original Message- > From: mojoRising [mailto:[EMAIL PROTECTED] > S

RE: How to validate a checkboxlist?

2008-05-09 Thread mojoRising
validation does is on the server. > > (I would say have a validator in the action bean too, though, in case > the use has JS disabled and manages to submit without passing that > check.) > > -Original Message- > From: mojoRising [mailto:[EMAIL PROTECTED] > Sent

How to validate a checkboxlist?

2008-05-08 Thread mojoRising
I am trying to perform client side validation on a struts checkboxlist tag but nothing I try seems to work. ANy ideas? I do not want to submit the form and do a validation method in the action bean because obviously it would be ridiculous to post back to the server just to check that there is at

Does Execute and Wait Interceptor work with ServletRequestAware interface?

2008-05-06 Thread mojoRising
I am using the Execute and Wait Interceptor on my login action. This action needs to access the HTTPRequest object so that it can get the HTTPSessionId, and the request headers and store all of this in the database as well as putting the userObject in the session itself. Documentation says that w

StrutsRequestWrapper causing NotSerializableException?

2008-05-01 Thread mojoRising
I have this exception from Weblogic that tells me something in my session (org.apache.struts2.dispatcher.StrutsRequestWrapper) is not serializable. Does anyone understand what is going on here? I am not sure whether the org.apache.struts2.dispatcher.StrutsRequestWrapper should be in the session

Re: Best way to access Session with regards to cluster

2008-04-30 Thread mojoRising
Let me try to narrow the scope a little then: Which of the following is the better way to get the session in an Interceptor: 1. ActionContext.getContext().getSession(); 2. ActionContext.getSession(); 3. invocation.getInvocationContext().getSession(); 4. ServletActionContext.getRequest().getSes

Best way to access Session with regards to cluster

2008-04-30 Thread mojoRising
I have read much about how to access the session from actions and interceptors, but I still have some confusion about the proper way to do this so that my session values will be available and replicated properly in a cluster environment. Specifically, if a user is logged in and making requests, an

Re: execAndWait losing form parameters

2008-04-25 Thread mojoRising
One thing that I see happening is, when I submit the form, the prepare method of my action is called and my parameter (userId) is not null. Then the wait page appears, and then the prepare method of my action is called a 2nd time and now the userId parameter is null. Why is the prepare method of

Re: execAndWait losing form parameters

2008-04-25 Thread mojoRising
27;t seem to work at all, that is, the parameters that are being passed in to the action are getting lost, so I have not been using the latter example; which also does not work; when i submit a user profile form the request parameters get lost. Does anyone know what could be the issue here? moj

execAndWait losing form parameters

2008-04-24 Thread mojoRising
I have a form that updates a user profile. When I add the 'execAndWait' Interceptor it appears to work correctly - that is, the wait.jsp page displays and then goes back to the results page. But, the request parameters (those from the user profile form that are being submitted) are getting lost. A

execAndWait and session access

2008-04-24 Thread mojoRising
I am trying to implement the execAndWait interceptor along with a custom authentication interceptor in an interceptor stack that most of my actions will call. I understand that the action being called needs to implement sessionAware if it wants to access the session. My question is: what about oth

Re: Does Struts 2 support clustering?

2008-04-11 Thread mojoRising
Thank you very much. I found the source code and looked at it and now I understand perfectly. I can't believe I missed all that info the SessionMap object. So then once you have a sessionMap I assume that that the sessionMap is the only thing you need for accessing the request, clearing the sess

Re: Does Struts 2 support clustering?

2008-04-11 Thread mojoRising
Thank you all for your help. I think we have it resolved and it was indeed the WLCookieName parameter (JSESSIONID) in the weblogic plugin that was set incorrectly. This has led to heavy discussion however with regards to this question: Is it really a good idea to implement the SessionAware interfa

Re: Does Struts 2 support clustering?

2008-04-10 Thread mojoRising
Thanks. That is what I suspect also but I am trying to weed out other possibilities... can I then take your response to mean : "Yes, Struts 2 DOES support clustering"? newton.dave wrote: > > > This is almost certainly a server configuration issue; in general nothing > on > the framework / app

Does Struts 2 support clustering?

2008-04-10 Thread mojoRising
We have struts running great on a single server but when we test in our clustered environment there are problems: The user is not staying on the same server the initial request came in on, so their session is getting lost. Does struts 2 support a clustered enterprise environment? If so, is there

Best way to get request information

2008-03-25 Thread mojoRising
Struts 2 - Java - JSP For storing user login information in the database, when a user logs in I need to get the following types of information: Hostname, IP address, User-Agent, sessionId, etc. Before using Struts2, I would access the HTTPSession and request object and use methods such as: reques

Execute method is not called

2008-03-21 Thread mojoRising
/{1}.jsp /WEB-INF/pages/logout.jsp mojoRising wrote: > > I have moved all JSP's under WEB-INF directory (e.g. > /WEB-INF/pages/login.jsp), and this solution seems to work perfectly on my > local environment with e

Re: authentication question

2008-03-21 Thread mojoRising
ed is when (bad) scriptets within the JSP > manipulate the request object directly, which is assumed to use the > /xxx.jsp URI but is actually /WEB-INF/results/xxx.jsp. > > Many would argue that best practice is to not use JSPs at all. Another > group would argue that Acegi should be

Re: authentication question

2008-03-18 Thread mojoRising
. Another > group would argue that Acegi should be used rather than rolling your own > filter. > > Hope that helps. > > mojoRising wrote: >> Is this considered the Best Practice: Keeping all JSP's under the WEB-INF >> directory? We have not done that on

Re: authentication question

2008-03-18 Thread mojoRising
Is this considered the Best Practice: Keeping all JSP's under the WEB-INF directory? We have not done that on my project, I am curious if there are plus' and minus' to this? Thanks, John The easiest way is to always have the user call an action to get a JSP, even if it is a simple page. You

authentication question

2008-03-12 Thread mojoRising
struts 2 - java - jsp Hi. I am trying to configure an authentication/login interceptor. The idea being of course being to prevent someone from accessing a page unless they are logged in. We can assume that means they have a user object stored in the session. Now I understand how to plug in an inte

Re: STRUTS 2: Possible to have two actions called from one JSP?

2008-03-06 Thread mojoRising
No specific issue at hand, I was just concerned that if: Form 1 (action class A) had 20 parameters, and form 2(action class B) had 4, then after submitting form B the page would reload with 16 null parameters right? When form A referenced those parameters using OGNL they would not be on the value

STRUTS 2: Possible to have two actions called from one JSP?

2008-03-06 Thread mojoRising
I am wondering whether it is possible, and or a good idea, to have two (or more) struts forms - each calling a DIFFERENT action - on the same JSP? Would each action have to have the same parameters? Would there be conflicts? Is this a bad idea? I could stick to one action, but then I would have

how to access a session variable in an action class?

2008-03-03 Thread mojoRising
Hi, I want to set a parameter in the session from my JSP, and then access it from my action class. I am not sure what the correct syntax is for this. Could someone please explain? Thanks! -- View this message in context: http://www.nabble.com/how-to-access-a-session-variable-in-an-action-class--

Re: expression validator

2008-02-29 Thread mojoRising
Thanks. But I still don't understand...According to the link you mentioned it is not possible to do what I was trying to. So, what is the point of this validator if it doesn't do client side validation? And, are you saying that it is not possible to do a simple 'equals' test in client side validat

Re: expression validator

2008-02-28 Thread mojoRising
Thanks, I confirmed my syntax, and now it does not do any client side validation. Do I have this validator in the right place? Here is the relevant code from my xml file: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>

expression validator

2008-02-28 Thread mojoRising
(java - struts 2 - JSP - using xml based validation) I am trying to figure out how to do a simple client side validation expression, checking that two fields are equal. Could someone help me figure this out, I am sure it is very simple but I can't find out what I am missing. I keep getting this er