Re: Global forwards don't support Tiles definitions?

2006-06-02 Thread Lixin Chu
not sure if this is what you want but this one should work: global forward is defined as, fot example: the ".authorizationError" is defined as a Tile: in your action class, you can do this: return mapping.findForward("authorizationError");

Re: Global forwards don't support Tiles definitions?

2006-06-01 Thread Scott Van Wart
OK I went with the following workaround. I create a form bean to handle the name of the "global" forward: public class ForwardForm extends ActionForm { private String name; public ForwardForm() { } public String getName() { return this.name; } public void setName( String name ) { this.name

Re: Global forwards and actions

2006-06-01 Thread Maya menon
Yes I did. 1. In jsp: form.action="/Delete.do"; 2. In config file: action *.do Now the error is this: The requested resource (/Delete.do) is not available. Monkeyden <[EMAIL PROTECTED]> wrote: I dont know how else I can say this. Put this in your JSP instea

RE: Global forwards and actions

2006-06-01 Thread Samere, Adam J
To: Struts Users Mailing List Subject: Re: Global forwards and actions well, Here is exactly what I have: 1. jsp files are in /jsp folder. struts-config file entries and action classes. struts-config entry is like this: Monkeyden <[EMAIL PROTECTED]> wrot

Re: Global forwards and actions

2006-06-01 Thread Monkeyden
I dont know how else I can say this. Put this in your JSP instead: form.action="/Delete*.do*"; //in the jsp On 6/1/06, Maya menon <[EMAIL PROTECTED]> wrote: well, Here is exactly what I have: 1. jsp files are in /jsp folder. struts-config file entries and action classes. struts-config ent

Re: Global forwards and actions

2006-06-01 Thread Maya menon
well, Here is exactly what I have: 1. jsp files are in /jsp folder. struts-config file entries and action classes. struts-config entry is like this: Monkeyden <[EMAIL PROTECTED]> wrote: If that's the error you're getting, then that can't be your code. Yo

Re: Global forwards and actions

2006-06-01 Thread Monkeyden
The path in the form action needs a ".do" after it. I am also assuming you have ActionServlet set up in web.xml On 6/1/06, Maya menon <[EMAIL PROTECTED]> wrote: well, I put form.action="/Delete"; //in the jsp and //in the xml file Still it says, HTTP 404 Status report message /Delete de

Re: Global forwards and actions

2006-06-01 Thread Maya menon
well, I put form.action="/Delete"; //in the jsp and //in the xml file Still it says, HTTP 404 Status report message /Delete description The requested resource (/Delete) is not available.\ whats going wrong here ? Monkeyden <[EMAIL PROTECTED]> wrote:

Re: Global forwards and actions

2006-06-01 Thread Monkeyden
If that's the error you're getting, then that can't be your code. You're trying to request "/jsp/Delete" somewhere in your code. I suspect that the /jsp is a directory and thus will only be relevant to the action-forwards, not the form or the action-mapping. On 6/1/06, Monkeyden <[EMAIL PROTE

Re: Global forwards and actions

2006-06-01 Thread Monkeyden
The form action is the same as the action mapping in struts-config, plus the ".do", so if the form has: then the action mapping must be: On 6/1/06, Maya menon <[EMAIL PROTECTED]> wrote: Ok, for delete.jsp I put action="delete.do" form.action="Delete.do"; form.submit(); In struts-config.x

RE: Global forwards and actions

2006-06-01 Thread Maya menon
Ok, for delete.jsp I put action="delete.do" form.action="Delete.do"; form.submit(); In struts-config.xml, I put Now, when I run, it it gives me the following error: type Status report message Invalid path /jsp/Delete was requested description The request sent

RE: Global forwards and actions

2006-06-01 Thread Maya menon
Manoj, Thanks. So, just 2 action entries r fine, thats what you think. [EMAIL PROTECTED] wrote: Sample config Note the following 1. This is a typical example modify according to your need 2. Name of the form is addForm and deleteForm in the xml abo

RE: Global forwards and actions

2006-06-01 Thread manoj.tripathi
Sample config http://struts.apache.org/dtds/struts-config_1_2.dtd";> Note the following 1.This is a typical example modify according to your need 2.Name of the form i

Re: Global forwards don't support Tiles definitions?

2006-06-01 Thread M.Liang Liu
How about forwarding to an action path using ForwardAction redirect to your tiles page? I just shoot in the dark.

Re: Global forwards don't support Tiles definitions?

2006-06-01 Thread Antonio Petrelli
Scott Van Wart ha scritto: http://struts.apache.org/struts-action/struts-taglib/tlddoc/logic/forward.html *Note*: forwarding to Tiles definitions is not supported from this tag. You should forward to them from an Action subclass. Main Page http://struts.apache.org/struts-action/struts-

Re: Global forwards don't support Tiles definitions?

2006-06-01 Thread Shervin Asgari
Have you tried main.page instead of page.main? I don't know if this is the reason, but I have main.page and not other way around. Shervin Scott Van Wart wrote: I have a tiles definition (tiles-defs.xml), and a global forward (struts-config.xml), When the forward is triggered

Re: Global forwards don't support Tiles definitions?

2006-06-01 Thread Shervin Asgari
Have you tried main.page instead of page.main? I don't know if this is the reason, but I have main.page and not other way around. Shervin Scott Van Wart wrote: I have a tiles definition (tiles-defs.xml), and a global forward (struts-config.xml), When the forward is triggered

Re: global forwards

2005-08-01 Thread Laurie Harper
What version of Struts are you using? ActionRedirect from Struts 1.2.7 makes it easy to do what you want. On prior Struts releases, I think you can do something like: ActionForward fwd = new ActionForward(mapping.findForward("searchForm")); fwd.setPath(fwd.getPath() + "searchMode=searchFlig

Re: global forwards

2005-08-01 Thread Nilesh M Sampat
Hello, Here is what I am trying to do. Could you please help me? I have one search form 'searchForm' this form is customised for Holidays and Flights based on a parameter sent.. when submitted it goes to SearchAction is again a common commponent serving searching for flights or holidays ba

Re: global forwards in module config files

2004-10-06 Thread Peter Werno
Hi Jeff, thanks for the hint. Using the "include file" variant is probably a work-around for my problem, but it doesn't really allow for what I was planning. My idea was to have a global forwards section in each module that would be global for the application. Each module could that way define, ho

Re: global forwards in module config files

2004-10-06 Thread Jeff Beal
Have you read http://struts.apache.org/userGuide/configuration.html#module_config-switching? It explains how to use contextRelative forwards in Module A to forward to pages in Module B. If that's not what you need, you could define all of your application-global forwards in an XML external en

Re: global forwards in module config files

2004-10-06 Thread Peter Werno
Hello Jeff, thanks for the hint. I had tested multiple variations of it, including /index/index.do, but to no avail. I have checked in the Action Class that tries to get it. It does - ActionForward myForward = mapping.findForward("indexHome"); if(myForward == null) System.out.println("Fo

Re: global forwards in module config files

2004-10-06 Thread Jeff Beal
Peter Werno wrote: This is how it works: - struts-config.xml -- ... more ... - end - this is how it does NOT work: - index-config.xml -- ...

RE: global forwards in module config files

2004-10-05 Thread David G. Friedman
Peter, In your web.xml, does your Struts ActionServlet have init params just like this: (per your mesage below) config /WEB-INF/struts-config.xml config/index /WEB-INF/index-config.xml If not, then how are you specifing your struts config .xml files to the Act

Re: global forwards with modules (Again)

2004-07-02 Thread S Kuypers
Do you have a solution for this or is no one using this Thanks - Original Message - From: "Matt Bathje" <[EMAIL PROTECTED]> To: "strutslist" <[EMAIL PROTECTED]> Sent: Friday, February 13, 2004 6:53 PM Subject: global forwards with modules (Again) > Hi all. I asked this a while back and

RE: Global forwards not working

2004-04-07 Thread MARU, SOHIL (SBCSI)
I got it to work by using the following as action And adding http://localhost:8080/loa/logon.do However the global forward did not work. Am I doing something incorrect I am doing with that or is it supposed to work only with actions? -Original Message- From: MARU, SOHIL (