You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dan Allen <da...@mojavelinux.com> on 2003/04/11 11:09:43 UTC
ActionMapping getTokenRequired()
It would seem to me like this would be a pretty standard attribute
to add into the core of struts. Just like validate, it would
determine whether the token should be checked. I also believe that
the token methods should be in RequestProcessor since it is the
request processor that should look to see if it should even be
working with the action request or if it should forward it to the
input page.
Dan
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, <da...@mojavelinux.com>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"I'm old enough to know better, but still too young to care."
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: About templates
Posted by Dani <mc...@wanadoo.es>.
I make a mistake. It's working. Thanks
----- Original Message -----
From: Dani <mc...@wanadoo.es>
To: Struts Users Mailing List <st...@jakarta.apache.org>
Sent: Friday, April 11, 2003 11:20 AM
Subject: About templates
> I have to do an application with a menu included in each page. This menu
> shows different options depending on some values (the actual operation
saved
> into session).
>
> I've seen documentation about templates. This is the solution I've found:
>
> * Each application page makes an insert of a template menuTemplate.jsp,
like
> that:
> <template:insert template='/menuTemplate.jsp'>
> <template:put name='menu' content='/mainMenu.jsp' />
> </template:insert>
> .... and the rest of the code page
>
> * Page menuTemplate.jsp only has this:
>
> <%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>
> <template:get name='menu'/>
>
> * Page mainMenu.jsp is a normal Jsp.
>
> The problem I've found is this: In page mainMenu.jsp I have:
> <%= request.getSession().getAttribute("selectedop") %>
>
> But I've no result. I can see the value in the main page that insert
> template. ¿What's happening?
> Thks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: About templates
Posted by Alexandre Jaquet <al...@freesurf.ch>.
Hi Dan have a look for struts-menu. But don't care
so much about the design of the view part,
Mathew will take care.
--
Alexandre Jaquet
Lead Engineer
Noumenaut Software
----- Original Message -----
From: "Dani" <mc...@wanadoo.es>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, April 11, 2003 11:20 AM
Subject: About templates
> I have to do an application with a menu included in each page. This menu
> shows different options depending on some values (the actual operation
saved
> into session).
>
> I've seen documentation about templates. This is the solution I've found:
>
> * Each application page makes an insert of a template menuTemplate.jsp,
like
> that:
> <template:insert template='/menuTemplate.jsp'>
> <template:put name='menu' content='/mainMenu.jsp' />
> </template:insert>
> .... and the rest of the code page
>
> * Page menuTemplate.jsp only has this:
>
> <%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>
> <template:get name='menu'/>
>
> * Page mainMenu.jsp is a normal Jsp.
>
> The problem I've found is this: In page mainMenu.jsp I have:
> <%= request.getSession().getAttribute("selectedop") %>
>
> But I've no result. I can see the value in the main page that insert
> template. ¿What's happening?
> Thks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
About templates
Posted by Dani <mc...@wanadoo.es>.
I have to do an application with a menu included in each page. This menu
shows different options depending on some values (the actual operation saved
into session).
I've seen documentation about templates. This is the solution I've found:
* Each application page makes an insert of a template menuTemplate.jsp, like
that:
<template:insert template='/menuTemplate.jsp'>
<template:put name='menu' content='/mainMenu.jsp' />
</template:insert>
.... and the rest of the code page
* Page menuTemplate.jsp only has this:
<%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>
<template:get name='menu'/>
* Page mainMenu.jsp is a normal Jsp.
The problem I've found is this: In page mainMenu.jsp I have:
<%= request.getSession().getAttribute("selectedop") %>
But I've no result. I can see the value in the main page that insert
template. ¿What's happening?
Thks
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: ActionMapping getTokenRequired()
Posted by Dan Allen <da...@mojavelinux.com>.
Andrew Hill (andrew.david.hill@gridnode.com) wrote:
> One might not necessarily want to forward to the input page for a bad token.
> One might want to forward to an error page, or perhaps forward to somewhere
> else or ....
Fair enough, but the mapping should still have an tokenRequired
attribute.
Dan
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, <da...@mojavelinux.com>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Windows: where do you want your data to disappear to today?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: ActionMapping getTokenRequired()
Posted by Andrew Hill <an...@gridnode.com>.
One might not necessarily want to forward to the input page for a bad token.
One might want to forward to an error page, or perhaps forward to somewhere
else or ....
-----Original Message-----
From: Dan Allen [mailto:dan@mojavelinux.com]
Sent: Friday, 11 April 2003 17:10
To: Struts-User List
Subject: ActionMapping getTokenRequired()
It would seem to me like this would be a pretty standard attribute
to add into the core of struts. Just like validate, it would
determine whether the token should be checked. I also believe that
the token methods should be in RequestProcessor since it is the
request processor that should look to see if it should even be
working with the action request or if it should forward it to the
input page.
Dan
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, <da...@mojavelinux.com>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"I'm old enough to know better, but still too young to care."
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org