Forwarding to an "unknown" action

2005-10-12 Thread Benjamin Lerman
Hi all, I'm trying to do the following: I have a custom action that check if a user is logged in. If it is not, this action forward to a login action. Now my problem is, how can I have the login action forward back to the page the user tried to reach before being forwarded to the login for

Re: Forwarding to an "unknown" action

2005-10-12 Thread Benjamin Lerman
> But you can find couple of solutions here, I was too lazy to give a shot: > > http://forum.java.sun.com/thread.jspa?threadID=614714&messageID=3411424 Thanks a lot for the URL. A method that just keep request.getRequestURI() and do a sendRedirect to this value works very well... -- Be

Playing with the file system

2005-10-16 Thread Benjamin Lerman
Hi all, First of all, I'm not sure what I want to do is the right way to handle my problem, so all suggestion, even if they are not a response to the problem asked would be appreciate. I'd like to implement the possibility to upload files to my application. The uploading part is not really the

Re: Playing with the file system

2005-10-17 Thread Benjamin Lerman
Thanks for your answers, it helps me resolved my problem. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Recursively using bean:write

2005-11-07 Thread Benjamin Lerman
t find that really appealing. Is there a way to do it using only Struts? -- Benjamin Lerman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Dynamically altering struts configuration

2005-11-20 Thread Benjamin Lerman
Hi all, Let say I have a line like this one in my struts-config.xml: Can I change dynamically the type associated to fooForm ? Thanks Benjamin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Dynamically altering struts configuration

2005-11-21 Thread Benjamin Lerman
> I don't actually know. I found out. With a ModuleConfig object you can retrieve the ActionForm mappings and modify it. > But why would you want to? I want to be able to define an external module that plugs in an existing struts application. This module must define a .jsp file and a form to g

Re: Dynamically altering struts configuration

2005-11-23 Thread Benjamin Lerman
> can you please demonstrate how u did that? where do we use the ModuleConfig > Object... Well, you have two solutions to get an ModuleConfig object. You can get it in a struct actions, using getServletContext().getAttribute(Globals.MODULE_KEY), or in any place that can get the ServletContext,