Bookmark Topic Watch Topic
  • New Topic

taglib not working for a JSP page in Struts

 
rammie singh
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • 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]
 
rammie singh
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sorry ..it just got replicated.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!