wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes using java class in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "using java class in jsp" Watch "using java class in jsp" New topic
Author

using java class in jsp

Naadir Peterson
Ranch Hand

Joined: Sep 22, 2004
Posts: 37
i made a class thar take 3 arguments in the constructor.. which inturn writes this to a log file on the c: drive...

userLog ul = new userLog(arg1, arg2, arg3);

when i test it using small program i wrote it works fine..
but when i import the class on a jsp page and try to use it nothing happens... the file isnt created or nothing gets appended to the file...

thanks
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8903

How are using it in JSP file. Could you please paste the code here.


Groovy
sanjeevmehra mehra
Ranch Hand

Joined: Aug 21, 2004
Posts: 75
the same question is in JSP forum, which is best place for jsp base questions. Javaranch rules do not allow to put same question in multiple forum (in javaranch site) by same user.
pls. follow the rules.

thanks & regards,
sanjeev.


thanks & regards,<br />Sanjeev.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
I think, you have something wrong.

In my work, if code work fine in destop/test application, in web application(jsp/servlet) should be worke fine too.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
 
jQuery in Action, 2nd edition
 
subject: using java class in jsp
 
Similar Threads
Request. ServerVariables ( REMOTE_USER") equalent in jsp
JSP in websphere
JSP in websphere
Calling class in jsp
Arrays issue...