Hi All, When I use Pivot postQuery1,but face the return stauts code 302 from server side and hint the error? Is there any simple code for me ref. for server side jsp.Many thanks.
How to handle HTTP STAUTS 302
|--------------------------------------------------------------------------|
|Pivot Code. |
| PostQuery postQuery1 = new PostQuery("localhost", 8080, |
| "/WebQuotation/JSP/testURL.jsp", false); |
| |
| postQuery1.execute(); |
|--------------------------------------------------------------------------|
|--------------------------------------------------------------------------|
|JSP Code.servise |
|<% |
|try |
|{ |
| |
|response.sendRedirect("getGWU002T4.jsp"); |
|} |
|catch(Exception e) |
|{ |
|e.printStackTrace(); |
|} |
| |
| |
| |
|%> |
|--------------------------------------------------------------------------|
|--------------------------------------------------------------------------|
|Povit return Code. |
|<% |
|org.apache.pivot.web.QueryException: 302 Moved Temporarily |
|%> |
|--------------------------------------------------------------------------|
Best regards,
Ken Jiang
*******************************************
Murata Electronics Trading (Shenzhen) Co.,Ltd
Tel:86-755-82847251
E-mail:[email protected]
*******************************************
