This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Struts 2 tag
manu chaox
Ranch Hand
Joined: Apr 10, 2006
Posts: 110
posted
May 03, 2009 14:45:29
0
Hi,
I'd like to read session parameter via
struts
2 tag, but I am not suceed in it.
I can it via jsp tag:
I put a parameter "user" to session in a class.
In jsp page:
... <jsp:useBean id="user" scope="session" class="...AClass" /> <jsp:getProperty name="user" property="name" /> ...
It works great.
But I don't know how to do it helping only struts 2 tags. (I have been trying for long time.)
Could you give me any example with struts 2 ?
Thanks
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
May 03, 2009 16:06:35
0
http://struts.apache.org/2.x/docs/property.html
http://struts.apache.org/2.x/docs/ognl-basics.html
http://struts.apache.org/2.x/docs/ognl.html
Although if you're on any recent app server I'm not sure why you wouldn't just use
JSP
EL.
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Struts 2 tag
Similar Threads
problem using html:link
Help please-Exception thrown by the execute method
Retrieving request parameters (from the url) in a jsp page
Chaining filter servlet
STRUTS: client-side validation in jsp using DynaValidatorForm
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter