944,153 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 762
  • JSP RSS
Nov 2nd, 2009
-1

Help with GET method please

Expand Post »
Hello- I am pretty new to JSP

I need some help with a GET method. Apparently IE has a URL length limitation..

IE0- "If you are using the GET method, you are limited to a maximum of 2,048 characters, minus the number of characters in the actual path."

By sending all the variables I was hitting the IE browser limitation on length of GET parameters (URL length). So I attempted to shorted it up a bit by taking out some variables that are sent in the handoff template. It's no longer a long url issue, but it still does not seem to work right. Can someone take a look at my code and see if I am doing something wrong?

Thanks!

jsp Syntax (Toggle Plain Text)
  1. <form name="RedirectForm" method="Get" ACTION="<%=forwardUrl%>">
  2.  
  3. <%
  4.  
  5. Enumeration paramNames = request.getParameterNames();
  6.  
  7. while(paramNames.hasMoreElements())
  8.  
  9. {
  10.  
  11. String name = (String)paramNames.nextElement();
  12.  
  13. //if(name.equals("url") || name.equals("id"))
  14.  
  15. //{
  16.  
  17. // continue;
  18.  
  19. //}
  20.  
  21. %>
  22.  
  23. <input type="hidden" name="<%=name%>" value="<%=request.getParameter(name)%>">
  24.  
  25. <%} %>
  26.  
  27. <%
  28.  
  29. if (processBean.getProcess() != null) {
  30.  
  31. %>
  32.  
  33. <input type="hidden" name="_label" value="<bean:write name='processBean' property='label'/>">
  34.  
  35. <input type="hidden" name="_title" value="<bean:write name='processBean' property='title'/>">
  36.  
  37. <input type="hidden" name="_actorsUserID" value="<%=request.getRemoteUser()%>">
  38.  
  39. <input type="hidden" name="_processId" value="<bean:write name='processBean' property='id'/>">
  40.  
  41. <input type="hidden" name="_owner" value="<bean:write name='processBean' property='owner'/>">
  42.  
  43. <%--<logic:iterate id="operandBean" name="contextOperands" property="operands" type="com.oakgrovesystems.portal.content.OperandContentBean">
  44.  
  45. <input type="hidden" name="<bean:write name="operandBean" property="label"/>" value="<bean:write name="operandBean" property="value" filter="false"/>">
  46.  
  47. </logic:iterate>
  48.  
  49. --%>
  50.  
  51. <logic:iterate id="operandBean" name="contextOperands" property="operands" type="com.oakgrovesystems.portal.content.OperandContentBean">
  52.  
  53. <%
  54.  
  55. if (!operandBean.label.equals ("CustNotifyMessage") ||
  56.  
  57. !operandBean.label.equals ("_customCompletedInstanceLink") ||
  58.  
  59. !operandBean.label.equals ("_customCompletedWorklistLink") ||
  60.  
  61. !operandBean.label.equals ("_customInstanceLink") ||
  62.  
  63. !operandBean.label.equals ("CustNotifySubject") ||
  64.  
  65. !operandBean.label.equals ("_EmailToPrimaryContact") ||
  66.  
  67. !operandBean.label.equals ("UrAnsweredMessage") ||
  68.  
  69. !operandBean.label.equals ("UrAnsweredSubject"))
  70.  
  71. {%>
  72.  
  73. <input type="hidden" name="<bean:write name="operandBean" property="label"/>" value="<bean:write name="operandBean" property="value" filter="false"/>">
  74.  
  75.  
  76.  
  77. <%} %>
  78.  
  79.  
  80.  
  81. </logic:iterate>
Last edited by peter_budo; Nov 2nd, 2009 at 5:38 pm. Reason: Correcting closing tag
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kellybaz is offline Offline
2 posts
since Dec 2008
Nov 3rd, 2009
1
Re: Help with GET method please
Why don't you use the post method?
Sponsor
Featured Poster
Reputation Points: 1014
Solved Threads: 447
Nearly a Senior Poster
javaAddict is offline Offline
3,260 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: Session.isNew() problem
Next Thread in JSP Forum Timeline: how to increase users in tomcat-users.xml file automatically not manually





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC