• 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

Problem with redirectin to a jsp page

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Everytime i redirect the jsp page to another jsp page,along with the next page the below lines r displayed,only after refreshing the page this data is not seen....
can u plz suggest sum methods to avoid these lines gettin displayed again n again...
HTTP/1.1 200 OK Content-Type: text/html;charset=8859_1 Date: Wed, 10 Mar 2004 06:25:31 GMT Transfer-Encoding: chunked Server: Apache Tomcat/4.0-m5 (HTTP/1.1 Connector) 81
Data has been entered 2 the database successfully!! 0
thanks in advance
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could you show us your codes?
Since built in JSP functions will not display such information, unless you encountered internal server errors, or you print them out.
Did u use any APIs that are not in J2EE package as well? Such as JavaChart, etc, and these APIs print those info out?
Nick.
 
smyle khanna
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No i havent used any api's .... along with jsp,i have used script for validation ,thts all,
the code is not gettin accepted in the javaranch....so i cant post it along
thanks
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The statement displayed in the JSP are the headers of the HTTP request.
Unless you explicitly print them out, they will not appear.
Does your JS contains some codes like document.write("...");
If the code cannot be shown, it is difficult to trace it, as I had never come across with this problem.
Nick.
 
smyle khanna
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the following code only in java script
document.user.submit();
document.user.name.value="";
document.user.name.value.focus();
all similar kind only.....
other than this only window.close() statement is there in js
 
reply
    Bookmark Topic Watch Topic
  • New Topic