• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what's wrong with this forward ?

 
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<html>
<% response.setStatus(302); %>
<jsp:forward page="nextPage.jsp" />
</html>

it seems having the <% response.setStatus(302); %> make it not working. without it, it works. why it fails the forwarding ?

Thanks.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if you want the response status to be part of the response try jsp:include.

Is it like you want the request to be directed to nextPage.jsp??
 
Raj Ohadi
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Goutham Pallipati:
if you want the response status to be part of the response try jsp:include.

Is it like you want the request to be directed to nextPage.jsp??



yes, i want it to be forwarded to nextPage.jsp and make the response code to be 302 for this page. could you be more specific about what syntax I should use to include the status code ?

thanks.
reply
    Bookmark Topic Watch Topic
  • New Topic