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
posted Mar 18, 2010 06:42:36
0
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 Mar 18, 2010 06:47:17 by Jaidev Arer
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12612
posted Mar 18, 2010 07:23:46
0
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 Mar 18, 2010 23:19:42 by Jaidev Arer
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12612
posted Mar 19, 2010 05:17:15
0
Looks like you don't have a form defined for the action/page.
subject: Problem with the form.