Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with redirectin to a jsp page  RSS feed

 
smyle khanna
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • 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
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!