Help with GET method please

Reply

Join Date: Dec 2008
Posts: 2
Reputation: kellybaz is an unknown quantity at this point 
Solved Threads: 0
kellybaz kellybaz is offline Offline
Newbie Poster

Help with GET method please

 
-1
  #1
25 Days Ago
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!

  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; 25 Days Ago at 5:38 pm. Reason: Correcting closing tag
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 1,658
Reputation: javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all 
Solved Threads: 223
Featured Poster
javaAddict's Avatar
javaAddict javaAddict is offline Offline
Posting Virtuoso
 
1
  #2
25 Days Ago
Why don't you use the post method?
Check out my New Bike at my Public Profile at the "About Me" tab
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC