Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts project

 
Ayaz uddin
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is struts project
index.jsp
========
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>

<html:html>
<html:form action="/myActionForm.do" method="post" enctype="multipart/form-data">
Choose the File to UPLOAD

<html:file property="file"/>
<br>

<html:submit>
Save
</html:submit>
<br><br>

</html:form>
</html:html>
But output comes in http://localhost:9999/fileupld/ as the following
Choose the File to UPLOAD <there should be one text box as browse on right hand side here>
Save <it should be submit button no plain text>

Is there any formatting error in
<html:file property="file"/> Is there any tld file configuration error in eclipse.
 
Nam Ha Minh
Ranch Hand
Posts: 502
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you should write this:




instead of:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic