my dog learned polymorphism
The moose likes JSP and the fly likes Using of 1.jsp method in 2.jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Using of 1.jsp method in 2.jsp" Watch "Using of 1.jsp method in 2.jsp" New topic

Using of 1.jsp method in 2.jsp

pradeep jaladi
Ranch Hand

Joined: Nov 21, 2004
Posts: 65

I had 2 jsp pages i one page their is x() method.

I need to include it in 2.jsp how


Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
see the classes for those jsps after compilation, then you will know.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

What does this x() method do? Would it be possible to pull the method out of the JSP page and into a bean or custom tag that both pages use?

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Or if you insist of having it in the JSP itself (shudder shudder), put it in a 3rd JSP which you include in the other 2.

I agree. Here's the link:
subject: Using of 1.jsp method in 2.jsp
jQuery in Action, 3rd edition