Two Laptop Bag*
The moose likes Struts and the fly likes Struts project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts project" Watch "Struts project" New topic
Author

Struts project

Ayaz uddin
Greenhorn

Joined: Jan 22, 2012
Posts: 6
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

Joined: Oct 31, 2011
Posts: 498

I think you should write this:




instead of:



PM Me If You Want to get Urgent Help on Java Programming
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts project
 
Similar Threads
problem with the popup
liferay struts portlet
Exception is unable to resolve: validation
File "/tags/struts-bean" not found
Cannot retrieve mapping for action