aspose file tools*
The moose likes JSP and the fly likes problem with making an instance of java file in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "problem with making an instance of java file in jsp" Watch "problem with making an instance of java file in jsp" New topic
Author

problem with making an instance of java file in jsp

gaurav chaudhary
Ranch Hand

Joined: Jun 24, 2002
Posts: 64
I have made one jsp. Now I have one more public java file with me.....the problem is that how do I make an instance of the java file in jsp. for example
java file
now I have to access that function from my jsp.
Any help would be appreciated
thanks


gaurav
sandeep balyan
Ranch Hand

Joined: Jul 25, 2001
Posts: 134
try it
<%
Myclass my=new Myclass();
my.func1();
%>
do import u r class in starting jsp file
<% @ page import="ur class location" >

second way is u can use by usebean tag ..
hope it help
regds


Want to do something great will do one day
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with making an instance of java file in jsp