开发者

Error in JSP code

I am getting (html:form) as unknown tag error开发者_如何学编程. Why?


You need to make tag library available and also need to import it in jsp


i think you forget to add the library file(.tld) suppose if your are using struts for that you have to add

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>

this will come when your integrate your application with sturts


That's a Struts specific taglib. Struts is an action based MVC framework which runs on top of JSP. You need to declare the Struts taglib in top of the JSP as per their instructions (if your actual intent was indeed to use Struts in JSP, otherwise you should question yourself what the <html:form> is doing in the JSP).

If you indeed intend to develop with Struts, then take alook at mkyong.com tutorials (in the top menu choose Struts 1.x or Struts 2 depending on the struts version you're using).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜