aspose file tools*
The moose likes JSP and the fly likes Request parameters lost when page is included Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Request parameters lost when page is included" Watch "Request parameters lost when page is included" New topic
Author

Request parameters lost when page is included

Ghjellyn Cook
Greenhorn

Joined: Apr 11, 2005
Posts: 3
Hi all,

I've got a problem when I include a jsp page in another.

Briefly this is the situation : one page main.jsp has same data, another menunavigation.jsp is the menu which has to be on top of every page (I include this page like this : <%@ include file="/includes/menunavigation.jsp"%> .

This works fine in most my pages.
Now i have a list on the main.jsp and a delete button, when its pressed it takes it to the delete.jsp page. There i do the nessecary actions and this javascript :

<script language="JavaScript">
window.opener.refreshscreen();
window.close();
</script>

When main page reloads and the refreshscreen is called, it fetches from the database the new updated list.

Now here's the problem : when I don't include the menu in main.jsp, it all works fine (pressing the delete button, adding new items to the list), but when I do include the menu, the parameters seem to get lost... I'm totaly dazzeld by this because in other pages this works just fine.

Has anyone come across this kind of error? All help would be very much appreciated!

Greetz

Ghjellyn
Ghjellyn Cook
Greenhorn

Joined: Apr 11, 2005
Posts: 3
I detected where my problem was : in the menubar was another form included, thats why my parameters were lost...
Anyknows maybe how to work around it?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Request parameters lost when page is included
 
Similar Threads
simple javascript function doesn't work when the page is on a TAB
Form "action" issue / javascript question
JSP - Compile errors because of includes
jsp:include tag not processed in Tomcat 4.0.4 and Apache2 combination
problem when integrating jspell with tinyMCE editor