Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

way to assign value from struts property to java variable?

 
Bhaarat Sharma
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a page which is using scriplet java code in the JSP

Is there a I can assign a value coming from struts2 action class's method to this java variable?

for example

or something like that.

Thanks
 
Patricia Samuel
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could not get you what exactly you want to ask .
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know the answer to your question, but I suspect that you're asking the wrong question. The right question is "How do I accomplish what I want to accomplish by putting all my Java code in the Action class?". I believe if you ask yourself this question, you will find a better solution than if you answer your original question.
 
Bhaarat Sharma
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for late reply,

I am trying to ask if there is a way to create a java variable in the jsp scriplet and assign it a value coming form <s : p roperty> tag

so for example



hope that makes it clear.

Thanks!
[ December 10, 2007: Message edited by: Anil Kumble ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic