File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Problem with the form. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "Problem with the form." Watch "Problem with the form." New topic
Author

Problem with the form.

Jaidev Arer
Ranch Hand

Joined: Mar 12, 2010
Posts: 38
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.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2858

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.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Jaidev Arer
Ranch Hand

Joined: Mar 12, 2010
Posts: 38
Sagar thanks for the quick reply.
struts tag jar file is in /web-inf/lib folder.
is this the correct path?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12612
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

Joined: Mar 12, 2010
Posts: 38
i am accessing the JSP Directly. i am calling login.jsp from another jsp.
Thanks

This message was edited 1 time. Last update was at by Jaidev Arer

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12612
Struts tags won't work without going through an action.
Jaidev Arer
Ranch Hand

Joined: Mar 12, 2010
Posts: 38
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

This message was edited 1 time. Last update was at by Jaidev Arer

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12612
Looks like you don't have a form defined for the action/page.
 
 
subject: Problem with the form.
 
developer file tools