Re: tile definition as an action forward path gives error

2008-01-18 Thread Amulya Yadavilli
Hi, Thanks, corrected the path and tiles-def.xml syntax. Regards, Amulya On Jan 18, 2008 3:57 PM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2008/1/18, Amulya Yadavilli <[EMAIL PROTECTED]>: > > < tile definition = "page.main" path = "pages/welcome.jsp" > > > Uh??? Congratulations! You i

Re: tile definition as an action forward path gives error

2008-01-18 Thread Antonio Petrelli
2008/1/18, Amulya Yadavilli <[EMAIL PROTECTED]>: > < tile definition = "page.main" path = "pages/welcome.jsp" > Uh??? Congratulations! You invented a new Tiles definition syntax :-) Your Tiles definition file is completely wrong, add the DTD on top of your XML and validate it. And, again, che

Re: tile definition as an action forward path gives error

2008-01-18 Thread Amulya Yadavilli
Hi, The tile definition exists. And still it gives me the same error. The application is starting up properly. Regards, Amulya On Jan 18, 2008 3:40 PM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2008/1/18, Amulya Yadavilli <[EMAIL PROTECTED]>: > > > > *description * *The server encountered a

Re: tile definition as an action forward path gives error

2008-01-18 Thread Antonio Petrelli
2008/1/18, Amulya Yadavilli <[EMAIL PROTECTED]>: > > *description * *The server encountered an internal error () that prevented > it from fulfilling this request.* > *exception * > java.lang.IllegalArgumentException : Path page.welcome does not start > with a "/" character >org.apache.strut

tile definition as an action forward path gives error

2008-01-18 Thread Amulya Yadavilli
Hi, I am getting the error "java.lang.IllegalArgumentException: Path page.welcome does not start with a "/" character " when trying to display a jsp. The tile definition is given as an Action forward path. This is the first page after login. And I am not sure if the ti

Re: Action forward path

2005-12-12 Thread Paul Benedict
For developers, I suggest looking into this proposed enhancement. Instead of duplicating the path again in the forward, you can forward to actions. Please vote for this if you think it is valuable; perhaps it will make it into future versions of 1.3 or 1.4. http://issues.apache.org/bugzilla/show

Re: Action forward path

2005-12-12 Thread Laurie Harper
Andrzej Bengner wrote: [EMAIL PROTECTED] napisał(a): In that case, when action mapping looks like this (as you wrote in your mail before): then you have to do the following at the end of your action (after all work has been done): return mapping.findForward( "ok" ); I do this, but

Re: AW: Action forward path

2005-12-12 Thread Gary Feidt
If I understand this correctly Struts is doing the correct thing. It should go to http://localhost/context/MyAction.do and not http://localhost/context/path/MyAction.do If you really must have path in your URL, then maybe you should put that in your action path: I use this for thing

Re: AW: Action forward path

2005-12-12 Thread Andrzej Bengner
Could you post your complete action mapping and your corresponding Action (or only the important parts?) FormBean: type="com.edirect.pl.app.cmsold.struts.form.SendLinkForm"/> Action: parameter="/popup/sendlink.jsp" type="com.edirect.pl.app.cmsold.struts.control.SendLink" name="SendLinkForm">

AW: Action forward path

2005-12-12 Thread Peter . Zoche
Could you post your complete action mapping and your corresponding Action (or only the important parts?) Peter - [EMAIL PROTECTED] napisał(a): > In that case, when action mapping looks like this > (as you wrote

Re: Action forward path

2005-12-12 Thread Andrzej Bengner
[EMAIL PROTECTED] napisał(a): In that case, when action mapping looks like this (as you wrote in your mail before): then you have to do the following at the end of your action (after all work has been done): return mapping.findForward( "ok" ); I do this, but struts still forwarding

RE: Action forward path

2005-12-12 Thread Peter . Zoche
rsprüngliche Nachricht- Von: Andrzej Bengner [mailto:[EMAIL PROTECTED] Gesendet: Montag, 12. Dezember 2005 10:37 An: Struts Users Mailing List Betreff: Re: Action forward path > The parameter attribute defines the target of your > forward action, that is your jsp. Thanks. And what if I want t

Re: Action forward path

2005-12-12 Thread Andrzej Bengner
The parameter attribute defines the target of your forward action, that is your jsp. Thanks. And what if I want to execute my action (do something) and forward to this path (/path/file.jsp or /path/MyAction.do)? Regards -- Andy --

RE: Action forward path

2005-12-12 Thread Peter . Zoche
Hi! If you only want your Action to forward to the jsp, and do nothing else, use a ForwardAction like this: The parameter attribute defines the target of your forward action, that is your jsp. Greetings Peter - Hello, I ha

Action forward path

2005-12-12 Thread Andrzej Bengner
Hello, I have one problem with forwarding my action. In my action mapping is: and when I execute my action, then forwarding me to localhost:8080/context/MyAction.do - not localhost:8080/context/path/file.jsp (or localhost:8080/context/path/MyAction.do) How can I dissolve this?

Re: How can I get the action forward path to be dynamic

2004-10-17 Thread Michael McGrady
You can do better than this, if, for example, you use Tiles. You can create whatever forward you want, irrespective of the mapping.e.g., return new ActionForward(path). Chacko, Raj wrote: Hi I'm new to Struts. In one of our new project development, we are planning to use Struts. One of our requ

How can I get the action forward path to be dynamic

2004-10-17 Thread Chacko, Raj
Hi I'm new to Struts. In one of our new project development, we are planning to use Struts. One of our requirement is to have dynamic pages loaded depending on some business logic. My question is this: I would like to know if there is a way to pass a variable to the path properties of the tag f