aspose file tools*
The moose likes Struts and the fly likes Sharing information between struts 2 variables and scriplets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Sharing information between struts 2 variables and scriplets" Watch "Sharing information between struts 2 variables and scriplets" New topic
Author

Sharing information between struts 2 variables and scriplets

Gary Brader
Greenhorn

Joined: Nov 02, 2007
Posts: 1
Hello,

I am working on a jsp page that uses a combination of jsp scriptlets and struts 2 tags. How do I exchange values between these two types of variables. For example, between a variable defines as:

<% int gridSize ....


and one defined as

<s:set name="MaxGridSize" ....

Thanks in advance.
Gary
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
I am not sure...I have not used Struts 2 much. With Struts 1 you could use the bean:define tag to do this. Look for a similar tag in Struts 2.

- Brent
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sharing information between struts 2 variables and scriplets