A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
problem with making an instance of java file in jsp
Joined: Jun 24, 2002
Jul 31, 2002 02:47:00
I have made one
. Now I have one more public
file with me.....the problem is that how do I make an instance of the java file in jsp. for example
public class (there is a function name fun)
now I have to access that function from my jsp.
Any help would be appreciated
Joined: Jul 25, 2001
Jul 31, 2002 03:36:00
Myclass my=new Myclass();
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
Want to do something great will do one day
I agree. Here's the link:
subject: problem with making an instance of java file in jsp
not able to import oracle.sql.BLOB
Calling Which Method?
EL functions in Eclipse, Can not find a tag library descriptor for ..., help needed
A JavaBean inside a JSP function
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015