wood burning stoves*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsps and classes" Watch "jsps and classes" New topic
Author

jsps and classes

viveksivakumar
Greenhorn

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
DAYANAND BURAMSHETTY
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsps and classes
 
Similar Threads
problem with Struts Logic:iterate
update a select box in jsp...
JSP, JavaScript, AJAX to update value
How to update Session variable with Form Data ?
Re:List in ActionForm