Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-30-2007, 02:33 AM
Member
 
Join Date: Apr 2007
Location: Pennsylvania,USA
Posts: 46
sandor is on a distinguished road
servlet question
I am trying to learn java servlet. If there is an web application which is a combination of java servlet and JSP and I hit the website and I want to see the flow of the program, I know in php you can put echo's to see the flow of the program how can I do that in java? that it prints on my brower so that i can see the flow of my program?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-30-2007, 02:34 AM
Member
 
Join Date: Apr 2007
Location: Pennsylvania,USA
Posts: 46
sandor is on a distinguished road
oops put this in the wrong forum. Can it get moved to servlet? thx

Last edited by levent : 04-30-2007 at 08:26 AM. Reason: Thread is moved to Servlet forum.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-30-2007, 11:11 PM
Senior Member
 
Join Date: Mar 2007
Posts: 136
goldhouse is on a distinguished road
From my limited understanding all JSP ' s are converted to servlets and then it goes through the generic servlet life cycle.
If you want to see how the code execute you can here also add scritplets(System.out.println) which will answer your question . I think
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-30-2007, 11:23 PM
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Quote:
From my limited understanding all JSP ' s are converted to servlets and then it goes through the generic servlet life cycle.
If you want to see how the code execute you can here also add scritplets(System.out.println) which will answer your question . I think

I guess those will be printed to the console of the http server, not to the browser. For browser, you can print those to the web page for debugging purposes.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 08-09-2007, 08:14 PM
Senior Member
 
Join Date: Mar 2007
Posts: 136
goldhouse is on a distinguished road
yes you are right levent , You can write to the page using the printwriter aviable from the " response.getWriter() "
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 12-19-2007, 12:27 PM
Member
 
Join Date: Dec 2007
Posts: 3
jaykishan is on a distinguished road
<%
Something like this....

out = response.getWriter();
out.println("I am on this.jsp page");

out is a default object which is available on each and every jsp page.
%>
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Servlet vs JSP javaplus Java Servlet 6 06-26-2008 11:19 PM
my first servlet sireesha Java Servlet 3 04-09-2008 04:11 PM
javax.servlet.ServletException: Wrapper cannot find servlet class util.t2 osval Advanced Java 1 08-07-2007 04:47 PM
Servlet question Peter Java Servlet 2 07-04-2007 02:34 PM
Question mark colon operator question orchid Advanced Java 3 04-30-2007 11:37 PM


All times are GMT +3. The time now is 06:24 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org