JSP Section Index

What is the difference between RequestDispatcher's forward(ServletRequest request, ServletResponse response) method and HttpServletResponse's sendRedirect(String location) method?

I want to run JSP files using the Tomcat server, where should I place my JSP files?

How can I print the stack trace of an Exception out to my JSP page?

How can I serve Word/Excel documents to a web client from JSP's and/or servlets?

I am writing a simple jsp to retrieve and save from/to my MySQL db. My retrieve and save functions work great. Now, depending on the action in the browser, I would only like to invoke one of the methods. For example, for the onChange event, I would like to get the info from the db. For the onClick event, I would like to save the info to the db. Considering these actions are on the client side and jsp is on the server side, is there a way to do this? If not, does anyone have a suggestion on how this can be done?

How can I design my servlet/JSP so that query results get displayed on several pages, like the results of a search engine? Each page should display, say, 10 records each and when the next link is clicked, I should see the next/previous 10 records and so on.

How can I display content in the form of a Tree using JSP?

How can I precompile all my JSP files when I place them on my web site? I don't want to wait until they are hit the first time.

Is there any way in JSP to set focus on an input field in a HTML form using JSP code, and not JavaScript?

How can you copy a JavaScript variable to a JSP session variable without using cookies?

How do I download a (binary, text, executable) file from a servlet or JSP?

How do I perform browser redirection from a JSP page?

How do I use comments within a JSP page?

Can a JSP page process HTML FORM data?

How do I upload a file to my servlet or JSP?