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

taglib not working for a JSP page in Struts

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
hi i am trying a piece of JSP code but i am not getting the required result. Can you help me please

When i am trying with the code below, it is showing the result, but text box and password box are missing. i have also attached the screenshot for this.




but the book which i am following, in that the .jsp page has coding like





but this code gives error and does not compile.


pease tell me what is the correct way of doing it ?


Also my struts-config file is like this




and my RegisterForm.java class is like







and my RegisterAction.java class is like this





now my question is .. from .jsp page, where i put the username and password1 and passwrd2 ..the RegisterForm is called and it's object is created ..but how does the RegisterForm claas knows which value from jsp page will go and get set into which RegisterForm class variable ?

because no where something like this is used

String username = request.getParameter("username");

what i mean here is ..without fetching the value of variables like username and password1 and password2, from JSP page how come these values are set to repective variables in RegisterForm class object.
output.JPG
[Thumbnail for output.JPG]
 
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Dont create another post...
https://coderanch.com/t/557361/JSP/java/taglib-not-working-JSP-page#2529125

No reason to duplicate it.
 
rammie singh
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Sorry ..it just got replicated.
 
Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
    Bookmark Topic Watch Topic
  • New Topic