aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60046
    
  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
Depricated API Error pls help
Exception creating a bean of class
form page cannot find ActionMappings or ActionFormbeans
No tag "form" defined in tag library imported with prefix "html"
Cannot find bean org. apache. struts. taglib. html. BEAN in any scope