A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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
I agree. Here's the link:
subject: problem with making an instance of java file in jsp
Calling Which Method?
A JavaBean inside a JSP function
not able to import oracle.sql.BLOB
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-2014