RE: Add paramaters to a forward dynamically

2003-01-11 Thread John Menke
Jacob, Not sure about the issue you describe but this definitely works for me. it forwards to my global forward and appends a parameter to the request so if I have the forward configured as I can use the class in the attached link to change the forward into /do/Module?ID=111 or something lik

RE: Add paramaters to a forward dynamically

2003-01-11 Thread Jacob Hookom
I'm surprised that works, I usually add everything to the request as an Attribute, and since I'm usually using JSTL for page renders, it's all the same as far is the page is concerned for variables. Forwarding occurs as normal then without parameter declaration. I thought there was an issue with

RE: Add paramaters to a forward dynamically

2003-01-11 Thread John Menke
Robert, thanks for your suggestion. I could not get it to work properly. Something with urls not being processed correctly, I'm using tiles...(not sure if that is explanation though) What I did get to work was what is suggested in this: http://www.mail-archive.com/struts-user@jakarta.apache.org

RE: Add paramaters to a forward dynamically

2003-01-11 Thread Robert Taylor
int id = // get user id String path = forward.getPath(); path = path + "?ID=" + id; return new ActionForward(path); hth, robert > -Original Message- > From: John Menke [mailto:[EMAIL PROTECTED]] > Sent: Saturday, January 11, 2003 2:57 PM > To: struts-user > Subject: Add paramaters to a f

Re: Location of jsp files

2003-01-11 Thread David Graham
Putting them under WEB-INF isn't portable because all containers don't necessarily support it. You can set up a security constraint in web.xml to accomplish the same thing portably. SecureAllJSPs *.jsp No roles should be able to access a JSP directly. Everyone must

Add paramaters to a forward dynamically

2003-01-11 Thread John Menke
I have a global forward: I really want the user to forward to "do/myModule?ID=115" the actual value of ID in this case would be determined in the Action class that calls the findForward("DynamicForward") method. is there any way of returning a forward with parameters from an Action? -jm

Location of jsp files

2003-01-11 Thread Jonathan Hodges
Hello, I was wondering what the best practice is for the location of my jsp files in my web application. I was thinking about placing them in the WEB-INF directory so they couldn't be reached without going through the ActionServlet. I guess I could accomplish the same thing with the right mappi

RE: Logic Equals and Interface Constants

2003-01-11 Thread Cohan, Sean
There are multiple classes that build a collection which is presented on only one jsp. For simplicity, I'll refer to constants in the classes and literals on the one jsp. Then if the constants change, I only have to change them in the interface and jsp. Thanks. -Original Message- From:

Re: Security Filter and ActionForm

2003-01-11 Thread Max Cooper
The latest release of SecurityFilter (securityfilter-1.0-b5) has been fixed to allow requests to the login and error pages even if they match a security constraint. This matches the behavior of the containers I tested. It also has some security fixes, so I recommend all users upgrade to the latest

SV: Security Filter and ActionForm

2003-01-11 Thread Arnesen, Geir
We use this consept. The loginform is unsecured (not filtered). When trying to access a secured page with no session (this is checked by the filter), - the request is forwarded to the loginpage. After successfull logon, - you are sent to the originally selected page. If the logon fails,- you gets t

RE: Declarative Exception Handling

2003-01-11 Thread Manomohan K Kalathil
Hi Suresh, The default exception handler within struts stores a reference to the exception object within the request under the key Action.EXCEPTION_KEY. You should be able to get the object reference using Exception cause = (Exception) request.getAttribute(Action.EXCEPTION_KEY) within you