calling DispatchAction from global-forwards

2009-05-15 Thread Hermann X Lau
My struts portlet is not forwarding to the correct page. Is this method of forwarding not right? Action class: public class HoldFileInfoSearchAction extends DispatchAction { public ActionForward init(ActionMapping mapping, ActionForm form, HttpServletRequest request) throws Ex

Re: Error global-Forwards

2008-07-21 Thread Dani
Lukasz Lenart escribió: public class MostrarUsuarioAction extends Action { You have to override execute() method not implement your own method, Struts1 will not use it. The deafult implementation just return null, so it means, stop processing. Change your method name mostrarUsuario() to ex

Re: Error global-Forwards

2008-07-21 Thread Lukasz Lenart
> public class MostrarUsuarioAction extends Action { You have to override execute() method not implement your own method, Struts1 will not use it. The deafult implementation just return null, so it means, stop processing. Change your method name mostrarUsuario() to execute() and should be ok. If

Re: Error global-Forwards

2008-07-21 Thread Dani
Lukasz Lenart escribió: Copy-paste your jsp and/or action and we will see.. Regards I call the method getUsuarios() that should return all the idusers of the database (just created and working, tested) . This method returns an Arraylist (mostrar) which is saved in a bean session. Afterward

Re: Error global-Forwards

2008-07-20 Thread Lukasz Lenart
Copy-paste your jsp and/or action and we will see.. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Error global-Forwards

2008-07-20 Thread Dan
Lukasz Lenart escribió: Er..what is CamelHumps? No idea about it, sorry... :) You defined your path in config as /mostrarUsuario (CamelHumps - JavaClassNamingConvention) but you accessing it like below http://localhost:8080/gentaiw/mostrarusuario.do try this http://localhost:8080/gentaiw/

Re: Error global-Forwards

2008-07-20 Thread Lukasz Lenart
> Er..what is CamelHumps? No idea about it, sorry... :) You defined your path in config as /mostrarUsuario (CamelHumps - JavaClassNamingConvention) but you accessing it like below http://localhost:8080/gentaiw/mostrarusuario.do try this http://localhost:8080/gentaiw/mostrarUsuario.do As I rememb

Re: Error global-Forwards

2008-07-20 Thread Dan
, you should never see any *.jsp in url, you should also consider to request your global forwards jsp through action and not directly. http://localhost:8080/gentaiw/mostrarUsuario.do Regards "This is correct behavior, you should never see any *.jsp in url, you should also consider to re

Re: Error global-Forwards

2008-07-20 Thread Lukasz Lenart
ld never see any *.jsp in url, you should also consider to request your global forwards jsp through action and not directly. Ok, back to you problem, the config looks ok, could you try access you action with CamelHumps, as you configured in struts-config.xml? http://localhost:8080/gentaiw/mostr

Re: Error global-Forwards

2008-07-20 Thread Dani
Lukasz Lenart escribió: Hi, Could you paste your struts-config here? Regards Hi, This is the whole struts-config file. As fas as i can see, the problem has nothing to do with the actionClass itself, because I only put a simple forward in the action, and the result is the same as with the

Re: Error global-Forwards

2008-07-20 Thread Lukasz Lenart
Hi, Could you paste your struts-config here? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Error global-Forwards

2008-07-18 Thread danipruebas
Hi, i have a problem, let me explain. I have one globalforward as a html:link defined in a jsp page, after clicking it, it should execute the corresponding action class and display the results in another jsp page. Page1Link (global forward to *.do -- not to .jsp) -->calls actionClass.java -->

Re: [s1] Global-forwards with Tiles

2007-02-06 Thread Pierre Thibaudeau
2007/2/6, Strachan, Paul <[EMAIL PROTECTED]>: you have to use a valid url with an anchoryour browser cannot make a new HTTP request to a Tile. what were you expecting the link to contain? The tile-path ".search" does not represent one tile but rather a collection of tiles that, once they

RE: [s1] Global-forwards with Tiles

2007-02-06 Thread Strachan, Paul
: [s1] Global-forwards with Tiles Problem with using global forwards with tiles: I have these two global forwards: The first one points to a "person" ActionMapping. This works perfectly in the tag The second one points to an entry in the til

[s1] Global-forwards with Tiles

2007-02-06 Thread Pierre Thibaudeau
Problem with using global forwards with tiles: I have these two global forwards: The first one points to a "person" ActionMapping. This works perfectly in the tag The second one points to an entry in the tiles-def.xml: etc. But produces a link e

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
ot; validate="false"> Then to make it so I can actually use global forwards now (the idea being the global forwards actually forward to an action which CAN handle tiles definitions), I define my global forwards like so: (instead of just putting path="page.main&q

Re: Global forwards and actions

2006-06-01 Thread Maya menon
t; > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Note the following > > > 1. Th

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
t; > > > > > > > > > > > > > > > > > > > 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 above (You can > > change as you want) >

Re: Global forwards and actions

2006-06-01 Thread Maya menon
is a typical example modify according to your need > > 2. Name of the form is addForm and deleteForm in the xml above (You can > > change as you want) > > 3. Ask questions I will answer them all (not much work to do today) > > 4. Path in action mappings can be tile if that is th

Re: Global forwards and actions

2006-06-01 Thread Monkeyden
to do today) > 4. Path in action mappings can be tile if that is the case you will need a > tile definition as well or a jsp page(not a good idea to use jsp) > 5. Optional: good idea to have all these xml files per struts module > Hope that helps > Manoj > > > -Origin

Re: Global forwards and actions

2006-06-01 Thread Maya menon
t; 2. Name of the form is addForm and deleteForm in the xml above (You can > change as you want) > 3. Ask questions I will answer them all (not much work to do today) > 4. Path in action mappings can be tile if that is the case you will need a > tile definition as well or a jsp page

Re: Global forwards and actions

2006-06-01 Thread Monkeyden
be tile if that is the case you will need > a tile definition as well or a jsp page(not a good idea to use jsp) > 5. Optional: good idea to have all these xml files per struts module > Hope that helps > Manoj > > > -Original Message- > From: Maya menon [mailto:cc] > Sen

Re: Global forwards and actions

2006-06-01 Thread Monkeyden
good idea to have all these xml files per struts module Hope that helps Manoj -Original Message- From: Maya menon [mailto:cc] Sent: 01 June 2006 16:46 To: user@struts.apache.org Subject: Global forwards and actions All, I want to understand this better: Say, I have one form , ad

RE: Global forwards and actions

2006-06-01 Thread Maya menon
To: user@struts.apache.org Subject: Global forwards and actions All, I want to understand this better: Say, I have one form , addDetails.jsp and another deleteDetails.jsp addDetails.jsp when submitted should call AddAction and deleteDetails should call Deleteaction. In adddetails I have and in

RE: Global forwards and actions

2006-06-01 Thread Maya menon
struts module Hope that helps Manoj -Original Message- From: Maya menon [mailto:cc] Sent: 01 June 2006 16:46 To: user@struts.apache.org Subject: Global forwards and actions All, I want to understand this better: Say, I have one form , addDetails.jsp and another deleteDetails.jsp

RE: Global forwards and actions

2006-06-01 Thread manoj.tripathi
e jsp) 5.Optional: good idea to have all these xml files per struts module Hope that helps Manoj -Original Message- From: Maya menon [mailto:cc] Sent: 01 June 2006 16:46 To: user@struts.apache.org Subject: Global forwards and actions All, I want to understand this better: Say

Global forwards and actions

2006-06-01 Thread Maya menon
All, I want to understand this better: Say, I have one form , addDetails.jsp and another deleteDetails.jsp addDetails.jsp when submitted should call AddAction and deleteDetails should call Deleteaction. In adddetails I have and in delete I have Now, what all entries do

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
-taglib/tlddoc/html/link.html This one has not a comment like in , this sounds strange... The following DOES work, but it might be nice to use global forwards so I don't stick ActionForms all over the place (and this still wouldn't solve the html:link issue): scope="request&

Re: Global forwards don't support Tiles definitions?

2006-06-01 Thread Shervin Asgari
er the link. Am I pretty much out of luck using global forwards and html:links with Tiles, or am I just not doing it right? The following DOES work, but it might be nice to use global forwards so I don't stick ActionForms all over the place (and this still wouldn't solve the html

Re: Global forwards don't support Tiles definitions?

2006-06-01 Thread Shervin Asgari
er the link. Am I pretty much out of luck using global forwards and html:links with Tiles, or am I just not doing it right? The following DOES work, but it might be nice to use global forwards so I don't stick ActionForms all over the place (and this still wouldn't solve the html

Global forwards don't support Tiles definitions?

2006-05-31 Thread Scott Van Wart
er. When I try something like this, Main Page I can see the "http://host//page.main" in the status bar when I hover over the link. Am I pretty much out of luck using global forwards and html:links with Tiles, or am I just not doing it right? The following DOES work, but it might be ni

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

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 ext

Re: global forwards in module config files

2004-10-06 Thread Peter Werno
ut.println("Forward is null!!!"); - and it returns null allways. I even tried different names ("index/indexHome", "/index/indexHome", etc.) This Action Class is actually belonging to the "DEFAULT" part of the webapp. Is it possible that "global" f

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
ActionServlet? See manual page: http://struts.apache.org/userGuide/configuration.html#module_config-inform_c ontroller Regards, David -Original Message- From: Peter Werno [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 05, 2004 10:33 AM To: [EMAIL PROTECTED] Subject: global forwards in

global forwards in module config files

2004-10-05 Thread Peter Werno
ed with the actual module name. In the "main" app, I want to have an action "loadModule.do" that should be told where to forward to via a parameter. While this works well, as long as the global forwards are all in the "main" config file, it fails as soon as I put them

Re: Invoking global-forwards from browser

2004-09-10 Thread Yves Sy
You cant call forwards by typing its name because its an object, not a valid path. Struts uses the "path" property of a forward object to know where to forward to. Instead, you should create an ActionMapping that uses a ForwardAction and pass /Login.jsp as parameter. Then you can call that action

Invoking global-forwards from browser

2004-09-10 Thread Antony Paul
Hi all, How I could call a global forward by typing it in browser? What I should type on the browser window ? http://localhost/Login or http://localhost/Login.do - it gives The request sent by the client was syntactically incorrect (Invalid path /Login was requested). rgds Anto Pau

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) >

RE: Global forwards not working

2004-04-07 Thread MARU, SOHIL (SBCSI)
(SBCSI) Sent: Wednesday, April 07, 2004 3:06 PM To: 'Struts Users Mailing List' Subject: Global forwards not working Hello All, I have the following forwards definition in my struts-config.xml The directory jsp is under my TOMCAT_ROOT directory a

Global forwards not working

2004-04-07 Thread MARU, SOHIL (SBCSI)
Hello All, I have the following forwards definition in my struts-config.xml The directory jsp is under my TOMCAT_ROOT directory and it does have the index.jsp. I have made an entry in TOMCAT's server.xml as follows And the directory jsp is under TOMCAT_RO