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 jsp. 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
It is sorta covered in the
JavaRanch Style Guide
subject: problem with making an instance of java file in jsp
Calling Which Method?
not able to import oracle.sql.BLOB
A JavaBean inside a JSP function
EL functions in Eclipse, Can not find a tag library descriptor for ..., help needed
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013