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
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
> 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
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
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]
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/
> 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
, 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
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
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
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]
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 -->
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
: [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
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
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");
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
t;
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Note the following
> > > 1. Th
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
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)
>
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
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
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
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
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
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
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
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
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
How about forwarding to an action path using ForwardAction redirect to your
tiles page?
I just shoot in the dark.
-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&
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
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
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
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
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
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
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
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
Peter Werno wrote:
This is how it works:
- struts-config.xml --
...
more
...
- end -
this is how it does NOT work:
- index-config.xml --
...
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
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
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
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
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)
>
(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
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
47 matches
Mail list logo