• Post Reply Bookmark Topic Watch Topic
  • New Topic

Interview Questions  RSS feed

 
Gaurav Chikara
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These are the Interview Question which were asked from me
1. How to make it possible that upon trying to invoke a servlet
a jsp is invoked instead ( we cannot use out.println or response.sendRedirect() or response.sendRedirectURL())
2. One way of writing java code inside a jsp is scriptlets <% %>
What is the another way?
3. How to add another scope to a bean without changing the previous scope
can anyone pls tell me the answers for them
 
Pranit Saha
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another way is <%= %>
Originally posted by Gaurav Chikara:
These are the Interview Question which were asked from me

2. One way of writing java code inside a jsp is scriptlets <% %>
What is the another way?

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's my shot at your interview questions:
1. How to make it possible that upon trying to invoke a servlet a jsp is invoked instead ( we cannot use out.println or response.sendRedirect() or response.sendRedirectURL())2. One way of writing java code inside a jsp is scriptlets <% %>. What is the another way?3. How to add another scope to a bean without changing the previous scope
------------------
Miftah Khan
- Sun Certified Programmer for the Java� 2 Platform
- Sun Certified Web Component Developer for the Java� 2 Platform, Enterprise Edition
[This message has been edited by Miftah Khan (edited October 08, 2001).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!