Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
I RELEASE YOU! (for now .... ) Feel free to peruse this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic