Set up security in your web.xml; when the server encounters a request for a
protected url and there is no session, it will redirect the request to a
form defined in your security and then display the requested url.
Your form should post to j_security_check with inputs name j_username and
Hi.
How I can invoke a login action from any pages thats require user be logged,
and after valid logon, return to the page that the user was.
TIA
LFung
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
There are many ways to store the requested page and
then redirect to the login action and once it is done
pass it back to thr requested resource, if it is a
matter of just the url with the query parameters you
can use the HTTP-REFERER from the header to see if a
different page was requested.
Or
Hello ,
I have a stuts/tiles web application and it uses the classic
sidebar-header-footer definition.
I can override the contend body property using this :
%@ taglib uri='WEB-INF/struts-tiles.tld' prefix='tiles' %
tiles:insert definition='sidebar-header-footer-definition'
tiles:put
Message -
From: Danilo Luiz Rheinheimer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, January 04, 2003 12:44 PM
Subject: Tiles forward question - newbie
Hello ,
I have a stuts/tiles web application and it uses the classic
sidebar-header-footer definition.
I can override
I do not know; there should be no difference (and I assume you mean get,
not request. Are you handling both types in your servlet, as in:
private void execute( HttpServletRequest req, HttpServletResponse, res) {}
public void doGet( HttpServletRequest req, HttpServletResponse, res) {
execute(
hi all ,
if my action's forward is a servlet,
when my form's method is request then it the servlet can be forward correctly,
or method is post , it can't be forward , but why?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Put something like this inside the form tag;
FORM TARGET=_parent ACTION=.. etc
Try target=_top instead. This will load the results of the from in the
top level window regardless of any containing frames.
---
Damian L Powell
[e] [EMAIL PROTECTED]
[w] http://www.shadow-angel.com
within the
form bean will be populated as a result of this.
How does this really work?
Thanks for your speedy response.
Lisa
From: Ted Husted [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: html:link forward question
Date: Tue, 23 Oct 2001 11:18:08 -0400
A page
Lisa,
The common pattern is:
jsp - action - jsp
in which the action contains the logic to process the form bean.
--
John
At 03:56 pm 23-10-2001 +0100, you wrote:
Hi,
Can anyone please tell me how to achieve forwarding of one page to
another as well as have the information in the form submitted
Hi,
Can anyone please tell me how to achieve forwarding of one page to another
as well as have the information in the form submitted to the form bean in
the process. Is this this possible or do I just have the wrong idea.
Please help.
Thank you for your speedy response.
Lisa
A page submits to an Action. If there is an ActionForm associated with
the Action, it is automatically populated and handed to the perform
method. The perform method returns an ActionForward, that could be
another Action, a JavaServer page, or any other destination. So long as
you continue to
:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 4:57 PM
To: [EMAIL PROTECTED]
Subject: html:link forward question
Hi,
Can anyone please tell me how to achieve forwarding of one page to another
as well as have the information in the form submitted to the form bean in
the process
within the
form bean will be populated as a result of this.
How does this really work?
Thanks for your speedy response.
Lisa
From: Ted Husted [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: html:link forward question
Date: Tue, 23 Oct 2001 11:18:08 -0400
A page
hi all,
how to refresh (create new instance of) the page
that was forwarded from an action of another page??
it's like this
page A - some action - page B
page B - someaction - page A
(forward-success)
i want page A to get created
freshly.
any ideas???
thanks,
rama.
15 matches
Mail list logo