• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Exception  RSS feed

 
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.

I am trying to use a simple example using struts tags.
Below is the jsp i have written

<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="WEB-INF/struts-bean.tld" prefix="bean"%>

<html:html>
<head>
<html:base/>
</head>
<body>
<html:form>
<html:text property="firstName" ></html:text>
</html:form>
</body>
</html:html>

I am getting the following error.


I am not able to figure out the error.

Please give me a lead on what should i check to get it solved.
Thanks
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your html:form tag is wrong. You must specify an action attribute. The action attribute must specify the name of a Struts action you have defined in the struts-config.xml file. Study the examples in the struts-examples.war that comes with the download. They will help you understand how this all works.
 
Do not set lab on fire. Or this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!