Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsps and classes

 
viveksivakumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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")); %>
 
DAYANAND BURAMSHETTY
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic