| Home | JSP | EJB | JDBC | Java Servlets | WAP | Free JSP Hosting | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML | ||||
|
||||
|
|
||||
| Tutorial Categories: Ajax
| Articles
| JSP
| Bioinformatics
| Database
| Free
Books |
Hibernate
| J2EE
| J2ME
| Java
| JavaScript
| JDBC
| JMS
| Linux
| MS
Technology |
PHP
| RMI
| Web-Services
| Servlets
| Struts
| UML
|
|
||||||||||||||||||||||||||||||
|
Home | JSP | EJB | JDBC | Java Servlets | WAP | Free JSP Hosting | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs |
||||||||||||||||||||||||||||||
Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.
Copyright © 2007. All rights reserved.
Current Comments
24 comments so far (post your own) View All Comments Latest 10 Comments:Please provoide more jsp code so that everything could be clear.
Posted by Manoj on Monday, 02.18.08 @ 15:04pm | #48877
These Questions really helped me in attending interview in a concern.
Posted by Durgasri on Friday, 02.15.08 @ 09:50am | #48363
Write the following code for a JSP page:
<%@ page language = "java" %>
<HTML>
<HEAD><TITLE>RESULT PAGE</TITLE></HEAD>
<BODY>
<%
PrintWriter print = request.getWriter();
print.println("Welcome");
%>
</BODY>
</HTML>
Suppose you access this JSP file, Find out your answer.
a) A blank page will be displayed.
b) A page with the text Welcome is displayed
c) An exception will be thrown because the implicit out object is not used
d) An exception will be thrown because PrintWriter can be used in servlets only
Answer :- A page with the text Welcome is displayed
Instead of request.getWriter() there should be response.getWriter();
And also we have to import the package
java.io.PrintWriter;
Posted by Ravi Kumar on Friday, 01.18.08 @ 18:01pm | #45521
what is the usage of <jsp:useBean> ? can u explain it clearly in easy language and with code
Posted by sumith on Wednesday, 12.5.07 @ 04:44am | #41316
Nice Notes.... Now i got some idea about JSP
Posted by R.Ramachandran on Thursday, 11.15.07 @ 13:23pm | #37483
O i m using jsp paging for records of mysql. When i use ms-sql it shows error of invalid object. can we limit record of mssql.
Posted by Ravi on Wednesday, 08.29.07 @ 14:49pm | #24414
O i m using jsp paging for records of mysql. When i use ms-sql it shows error of invalid object. can we limit record of mssql.
Posted by Ravi on Wednesday, 08.29.07 @ 14:49pm | #24413
good
Posted by vijay on Friday, 07.20.07 @ 20:35pm | #21655
Hi all,
u write, there are two type of comment in jsp, first is hidden and second is output, and u also mention that output comments are viewed at the time of page show, i think it is wrong, the definition of comment is that which can help for knowing that at the time of codding, like what r doing this code and help for knowing that , both comments are hidden not show at the time of output
Posted by Zubair Alam Khan on Thursday, 07.19.07 @ 15:57pm | #21570
Those 'output comments' are also known as XML comments and not part of the JSP specification in any shape or form. They are being displayed in the final HTML because the JSP container does not recognise or honour them as JSP tags and therefore leaves them alone. The way you describe them is confusing and wrong
Posted by MooseBrains on Friday, 07.6.07 @ 00:52am | #20801
Just excellent Q/A...
Posted by Ayan on Tuesday, 05.15.07 @ 14:59pm | #15976
Pls send the core java Question.
Posted by Rajneesh kumar on Sunday, 05.13.07 @ 17:49pm | #15779
servlet is wriiten in java lang, where as jsp contains both jsp tags and html tags
servlet has to be compiled every time if code changes, where as jsp is automatically compiled if code changes
Posted by shaker on Monday, 04.30.07 @ 00:32am | #15066
My jsp page contains some form parameters these parameter can acsses in servlet using getparameter() after procceing i want output back to the some jsp page then what i do? ( i am using ejb )
Posted by yogesh v patil on Wednesday, 03.14.07 @ 17:24pm | #11696
hi,
This site is very nice and great help to go for interviews.if any faqs plz send to my mail id.
jaladanki_sunil@yahoo.co.in
Posted by sunilkumar on Thursday, 03.8.07 @ 20:01pm | #11171
useful site for attending and making interviews
easy.
Posted by kadhir- singapore on Thursday, 02.15.07 @ 14:11pm | #7959
Dear Sir,
Please send my some important jsp question
Regards
Alok Pradhan
9999442403
Posted by ALOK PRADHAN on Friday, 02.2.07 @ 18:18pm | #5474
what is the difference between servlets and jsp
Posted by shameer on Thursday, 01.18.07 @ 10:43am | #3734
A Good page to revise the JSP knowledge and good contents of JSP Actions
Posted by Mahesh VJ on Tuesday, 01.2.07 @ 11:40am | #2401
Rajesh , the correct code should be like --
<HTML>
<HEAD><TITLE>RESULT PAGE</TITLE></HEAD>
<BODY>
<%
PrintWriter print = response.getWriter();
print.println("Welcome");
%>
</BODY>
</HTML>
Answer :- A page with the text Welcome is displayed
Posted by Amit Arora on Saturday, 12.30.06 @ 01:01am | #2229
<!-- This is output comment -->
vijay, i think u need to verify again
Posted by Amit Arora on Saturday, 12.30.06 @ 00:57am | #2227
please Check the Code
Answer :- Embedding of Java code in HTML pages
Write the following code for a JSP page:
<%@ page language = "java" %>
<HTML>
<HEAD><TITLE>RESULT PAGE</TITLE></HEAD>
<BODY>
<%
PrintWriter print = request.getWriter();
print.println("Welcome");
%>
</BODY>
</HTML>
i think getWriter is part of response
if i am correct please correct the web page
i expect a replay
Posted by ragesh on Wednesday, 12.20.06 @ 18:18pm | #1362
The out put comments in jsp should be
<-- This is output comment -->
but you provide the wrong one i.e.
<!-- This is output comment -->
Posted by vijay on Thursday, 12.14.06 @ 17:38pm | #1031
when which scope is used in jspbean.in real time
Posted by abdulsalaam on Thursday, 12.7.06 @ 17:06pm | #595