File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes jsps and classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsps and classes" Watch "jsps and classes" New topic

jsps and classes


Joined: Aug 06, 2001
Posts: 5
well i have a jsp page with login and password , a bean is employed in the jsp page which updates(just prints )the user and pass word values which have been entered . what i need is that theses updated values should be updated in a method which resides in a class file having the following method genLogin(user,password), as of now this class takes up a default value which i specified, but i need to get them as the user enters the values in the jsp page. does somebody know how i can do this.
Vlad Patryshev
Ranch Hand

Joined: Jun 30, 2001
Posts: 61
You can use something like
<jsp:useBean id="project" scope="application" class="com.borland.catkit.client.CATkitApplicationBean" />
and call in your jsp the methods of the bean, like
<% project.setLogin(request.getParameter("user"), request.getParameter("password")); %>

Thanks,<br />Vlad
Ranch Hand

Joined: Aug 06, 2001
Posts: 34
I think in html page..U wrote like this
<input name="userid" type="text" value="xyz">then always U get the xyz.Better to write like (<input name="userid" type="text"> )and try.

Dil se....,<BR>Dayanand<BR>0065-8839071(off)<BR>0065-7547034(Res0
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: jsps and classes
It's not a secret anymore!