This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes on submission JSP page disappear from browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "on submission JSP page disappear from browser" Watch "on submission JSP page disappear from browser" New topic
Author

on submission JSP page disappear from browser

gemini dev
Greenhorn

Joined: Oct 26, 2009
Posts: 2
Hi All,

this is the first time I am working with struts (1.2)

in my jsp page I have a form, user needs to provide IP address and filename, once he submit the page, this data is passed on to a web service which does connection to the device and collects data in the given file name.

now the problem is, when I submit the page using the button after a while(around 1-2 minutes on IExplorer and 4-5 minutes on firefox) my application page disappear's; I don't see any error's in my application logs or weblogic logs.

this is a synchronous request and user had to wait on the UI/webpage for the final result display which takes around 30-40 minutes
below is the snippet from the struts-config.xml

<action
path="/Collect"
type="com.aqura.project.struts.fileMgt.CollectResultAction"
validate="false">
<forward name="Collect"
path="/jsp/collect.jsp"/>
</action>

<action
path="/CollectDisplay"
type="com.aqura.project.struts.fileMgt.CollectResultAction"
name="collectForm"
scope="request"
validate="true"
input="/jsp/collect.jsp">
<exception
key="exception.prodconn.error"
type="com.aqura.project.service.prodConnect.ProductConnectException"
path="/jsp/ctError.jsp" />
<forward name="FileTransferDisplay"
path="/jsp/fileTransferDisplay.jsp"
redirect="true"/>
<forward name="FileResolve"
path="/FileResolve.do"
redirect="true"/>
</action>

collect.jsp is the jsp file for this operation and user has to wait on this page until we get a file successfully, once file is recieved we will check if it exist and needs to be renamed otherwise it will stored in user a/c.

logic is written on CollectResultAction.java, where we have action mapped.

I have been struggling with this issue for the past one week, and not able to make anything out.

I tried to put some logs on the JSP using
<%c:out
but that also did'nt work, I am not sure how to debug this issue. and help would be appreciated.

Thanks,
Aqura
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: on submission JSP page disappear from browser
 
Similar Threads
Error While redirecting to Another Action
How to store a value so that any JSP page can read it?
Browser Back button | Struts bridge
cut&paste changes to DispatchAction fail
Struts Cancel Button submits the form