Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sharing information between struts 2 variables and scriplets

 
Gary Brader
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic