aspose file tools*
The moose likes Struts and the fly likes Exception: related to struts -need help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception: related to struts -need help" Watch "Exception: related to struts -need help" New topic
Author

Exception: related to struts -need help

ashwini hikulkarni
Greenhorn

Joined: Jun 16, 2008
Posts: 25
Hi all

When i am trying to upload the file more than 200 MB it is throwing an exception and if the file size is less than 200MB it is working fine

I would be thankfull to all if any one could resolve my error
thanks

exception

javax.servlet.ServletException: Path upload.jsp does not start with a "/" character
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


root cause

java.lang.IllegalArgumentException: Path upload.jsp does not start with a "/" character
org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:107)
org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)








Upload.jsp
----------


UploadAction.java
------------------
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The default maximum file size that the struts upload facility will accept is 250 Megabytes for Struts 1.3.8. If you want to increase that value, you can do so by changing the maxFileSize attribute of the controller element in your struts-config.xml file. Example:


Merrill
Consultant, Sima Solutions
 
Consider Paul's rocket mass heater.
 
subject: Exception: related to struts -need help
 
Similar Threads
JSP uploader
exception in uploading the file
Commons FileUpload
How to get upload an image on server and get it on next jsp?
Exception: related to struts ----need help