This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes html:form tag not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "html:form tag not working" Watch "html:form tag not working" New topic
Author

html:form tag not working

Mike Jenkins
Ranch Hand

Joined: Jul 23, 2006
Posts: 57
I am trying to get my JSTL to work in a JSP.

My error message when I bring up my page is:
org.apache.jasper.JasperException: /loginPage.jsp(10,0) No tag "" defined in tag library imported with prefix "html"

Here is the JSP:


If I use: <%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
I get the same error.


In the application folder (Tomcat 5.5\webapps\myproject\WEB-INF\lib)
I loaded the following files along with alot of other tld files:
struts-html.tld
jstl jar file
struts-bean.tld
struts jar


If I try another taglib line:
<%@ taglib prefix="bean" uri="/WEB-INF/lib/struts-bean.tld" %>
the jsp comes up but just shows the label names (Username and Password) but not text boxes.

Please advise.
[ November 24, 2006: Message edited by: Mike Jenkins ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Firstly, the "html" tags are not part of the JSTL. They are proprietary to Struts.

But as to your issue: carefully check the syntax of the last line in your posted code example.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mike Jenkins
Ranch Hand

Joined: Jul 23, 2006
Posts: 57
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:form tag not working
 
Similar Threads
No tag "form" defined in tag library imported with prefix "html"
Exception creating a bean of class
Cannot find bean org. apache. struts. taglib. html. BEAN in any scope
Depricated API Error pls help
form page cannot find ActionMappings or ActionFormbeans