• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsps and classes

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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")); %>
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic