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

How can i pass method from one jsp to another included file  RSS feed

 
sirisha makkapati
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all,

I am having one compare() method in a.jsp.
I am including b.jsp in a.jsp using <jsp:include page="b.jsp" />
here i have to pass Compare() method to b.jsp.

Any one please do the need full
Thank you..

Regards,
Sireesha.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sirisha makkapati:
here i have to pass Compare() method to b.jsp.


method can be called, but is method can pass between classes? I don't think so.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't.
These days it's considered poor form to write methods directly to your JSPs.
It's better to put them in plain old Java classes which can be called from any point within your application.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!