M Sankar wrote:
>
> Hi,
>
> Can I use jsp:forward page onClick of a menuitem. If yes how it is
> possible?

No. onClick is a JavaScript thing, executed by the browser. <jsp:forward>
is a JSP action element, executed by the server to continue processing of
the a request for one JSP page using another JSP page or servlet.

The only thing you can do with onClick is to make a new request to the
server, e.g. to process a JSP page or a servlet.

You may want to read a book about JSP to learn more about the JSP
action elements, and what you can and can not do by mixing server and
client side code. I can recommend mine :-)

  <http://TheJSPBook.com/>

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to