Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 15th, 2005, 02:38 PM
Registered User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with response.sendredirect

I have taken over support of a system with several JSP forms and reports. 1 of them has code in it using the response.sendredirect method. This method works fine most of the time. However in the parameter of the method are quite a few strings being passed. When the strings stay short enough the redirect works fine. However, when the total length of the parameter gets too long, the form no longer works properly.

I have tried to implement a try/catch, but it hasn't helped find the problem.

Is there a limitation on the size of the parameter for the redirect?
Is there a different method that should be used here?

Here is the code:
response.sendRedirect("/CustomReport/frmShopFloorEntry.jsp?ACTION=AFTERSUBMIT&SCOUNT="+ numRecords+"&START_TIME="+startTime+"&END_TIME="+e ndTime+"&BEGIN_DATE="+beginDate+"&SUPERDATE="+supe rvisorDate+"&ACODES="+absenceCodes+"&TCODES="+work Codes+"&TCID="+workIDs+"&ABSID="+absenceIDs+"&WBT_ ID="+teamID+"&INDIRECTID="+indirectIDs+"&INDIRECT= "+indirectNames+"&WBT_ID_label="+teamName+"&SHIFT= "+shift+"F");

Thanks for your help,
Mike





Similar Threads
Thread Thread Starter Forum Replies Last Post
Response.AddHeader Problem kwilliams Classic ASP Professional 6 November 13th, 2007 06:26 PM
sendredirect sivaramm2007 Java Basics 2 August 22nd, 2007 10:24 AM
HttpResponse response problem??? thomaz C# 1 February 22nd, 2006 08:28 PM
Difference bet'n forward and sendredirect kumar_sampath JSP Basics 2 September 7th, 2004 05:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.