Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to call a method in action passing a parameter inside jsp with struts 1  RSS feed

 
Konstantin Netkachev
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Given a method in action class:

public String foo(String str) {
//Some code
}

How to call it in jsp?
 
Lorand Komaromi
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you need that? From the view you should call only accessor methods!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't; there's no direct access to actions from the JSP in Struts 1.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!