• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Problem with the form.

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to create a login screen to enter the username and password with submit and reset as the two button for my application.
if i use html taglib (<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>) in login.jsp. then login.jsp is erroring and its displaying the blank screen.
if i remove that the entry box for username and password will not come.
Please advise where i am going wrong.
i have attached the web.xml,struts-config.xml and login.jsp.
i am using struts 1.3.10 blank for creating the application.
welcome.jsp

web.xml

struts-config.xml


Thanks for the consideration.
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The taglib uri is correct, please check the the struts tag jar files are on classpath and if there is any error/exception, then post here.

And this question belongs to Struts forum, we've a separate section or it.
 
Jaidev Arer
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sagar thanks for the quick reply.
struts tag jar file is in /web-inf/lib folder.
is this the correct path?
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you accessing the JSP? Directly, or through an action?

When posting code, *please* remove unnecessary config/comments, otherwise it's additional cognitive overhead that doesn't help solve the problem.
 
Jaidev Arer
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am accessing the JSP Directly. i am calling login.jsp from another jsp.
Thanks
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts tags won't work without going through an action.
 
Jaidev Arer
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now i made i to come through an action page.
Now i am getting
Please correct me if i have placed the error code in the wrong place
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you don't have a form defined for the action/page.
 
Without deviation from the norm, progress is not possible - Zappa. Tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!