new « Page « JSP-Servlet Q&A





1. errorPage doesn't got to new page    coderanch.com

I have a JSP page that has an error page defined. This works, however depending upon where the error occurs in the jsp page all of the page up to the point of the error is also displayed. If I induce an error at the top of the page just the error page is visible. If I induce an error somewhere ...

2. opening JSP page in new window    coderanch.com

Hello Guys, I have one JSP page "TextOnly.jsp', which has one link "Print Preview". If user presses on this link then I have to open a new window which will show new jsp file "BulletPointsTextOnlyPrintPreviewCurrent.jsp". First I tryed following code document.MAINFORM.action = "./BulletPointsTextOnlyPrintPreviewCurrent.jsp"; document.MAINFORM.submit(); It works fine but it is opening the jsp page in same browser window. Then I tryed ...

3. Generating a new jsp page by an existing one    coderanch.com

hi, I have question on generating a new jsp page. Suppose I fill in a form which has 3 fields (name, age, address) in form.jsp. The action page of the form is form_action.jsp. I want to generate a new page, say new.jsp, by using the form_action.jsp. I know the File object can create the new file (new.jsp), but how can I ...

4. New Article: Scriptless JSP Pages: The Front Man    coderanch.com

Great article, Bear! I liked the style, but more importantly, I liked the clear flow of logic that in a span of a handful of paragraphs presented a comprehensive overview of the evolution of the JSP engineering thought. With so many web frameworks out there it can be difficult to get a feel as to what is going on in this ...

5. How to open new page and open behind.    coderanch.com

I have a jsp code below, however it opens on the same window. response.sendRedirect("./_B.jsp"); Is there anything that could be added to this code which makes it open the new window behind? What I want is for A.jsp to open the B.jsp window behind it. Also what is the code to redirect to another jsp page and open it in a ...

6. Edit/New Pages best practice    coderanch.com

I have an application that does a create and edit of a Business object using JSPs. What is the best practice, separate the content into two separate JSPs, or one single JSP assuming the forms to be submitted are identical? With separate JSPs, on the create, I would not need to check whether the object to fill out the text fields ...

8. Not able to get the new page    coderanch.com

Hi Friends, I want to make use of isErrorPage and errorPage attributes of Page directive in JSP. For that I wrote the following lines of code. But, couldn't able to get the page what I needed. Please, look at the following lines of code and clear my doubt. In web.xml I added the following lines of code for the error page:- ...

9. opening a jsp page in a new windows    coderanch.com





10. auto-generate new ticket on each page    coderanch.com

HIII, I HAVE DONE A PROGRAM ON USER REGISTRATION FORM ON CALLLOG FOR HARDWARE HELP. I CAN AUTOGENERATE THE TICKET ID BUT THE PROBLEM IS THAT WHEN THAT PAGE IS OPEN BY DIFFERENT PEOPLE THEY GET THE SAME TICKET ID IT IS ONLY AFTER THEY SUBMIT THE PAGE AND GO ON TO THE SAME PAGE AGAIN THE TICKET ID CHANGES. SO ...

12. new page is opened with servlet initialization?    java-forums.org

Hi I wrote a servlet and it worked just fine, but in each time I start the servlet (i.e. in the first run only) a new page of the Internet explorer is opened on the PC with Tomcat server and it shows the result of the doGet() method, how can I turn it off is there any options in Tomcat 5.5 ...