page 1 « Page « JSP-Servlet Q&A





1. Abstracting a secure .jsp page's functionality?    stackoverflow.com

There's a webpage that enables service providers to check customers insurance validity. The page comprises a text box to enter the customer's insurance number, a button to send the number for checking ...

2. hiding address bar and status bar in jsp page    stackoverflow.com

I need to hide the address bar and status bar of a jsp page , "demo.jsp" my code is

 <html>
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Welcome</title>
</head>

 ...

3. How to embed java application into a jsp page    stackoverflow.com

I have a simple java application and want to embed it into a jsp page. At the minute it takes a parameter at the command line, is it possible to pass ...

4. What are the life cycle methods of a Java Server Page?    stackoverflow.com

What are the life cycle methods of a Java Server Page?

5. Masterpages in JSP    stackoverflow.com

is there a concept like ASP Masterpages in JSP? Regards.

6. Show animation in a jsp page while waiting for server to respond    stackoverflow.com

What would be the best way to display an animation while waiting for server-side processing of a jsp page to complete.Basically, the server side request can take more than a minute ...

7. Using JNI in JSP page?    stackoverflow.com

         how to use JNI in JSP page?.In net i found that
1. because if anything goes seriously wrong in the C part of ...

8. Customizing jsp pages    stackoverflow.com

I would like to let users customize pages, let's call them A and B. So basically I want to provide a hyperlink to a jps page with big text ...

9. how to access formbean class obj in jsp page    stackoverflow.com

hi want to access from bean object in jsp page .how to get that.pls help asap. 1)i have formbean class with customername,date,amount,rate etc with setter() and getter() for the field menmbers. ...





10. Linking two pages using JSP    stackoverflow.com

So, I am trying to use JSP to create a set of webpages. I want to link two pages so that if the user clicks a button in one page, it ...

11. how to get the jsp page id to the javascript?    stackoverflow.com

i am using jsp, in that one i used search box with 'id' i want to read that id to javascript file... but document.getelementbyid() is not working...

12. I am unsure of how to access a persistence entity from a JSP page?    stackoverflow.com

I am just learning Java EE, I have created a Persistence entity for a User object, which is stored in the database. I am now trying to create a JSP page ...

13. Is there a limit to the scroll length of a web page?    stackoverflow.com

I have a client who is building a business application that will be used with IE8 only. One of the requirements is to display all of the data in a single page. ...

14. How to comment in jspx page    stackoverflow.com

How to comment the code in jspx page? I have tried several methods,

<!--  -->
<%-- -->
but it doesn't not work! So I have to:
<c:if test="${false}">code</c:if>,
it is really urgly, Is there any ...

15. how to pass information from one jsp page to other jsp page    stackoverflow.com

i have retrieved some data in a jsp page1.i've given link of page2 in page1.i want that when i click the link the data is displayed on page2.how to do that??? ...

16. jsp (java server page ) on apache2    stackoverflow.com

Is it existing some module for jsp(java server page) like (mod_python, mod_asp, mod_perl,...) for apache2 on windows. Without installing another web server.





17. Java Page Rewriting    stackoverflow.com

I am developing a java project. I want to display an extention of any webpage as '.jsf' evenif it is 'jsp' or 'xhtml'. What should I do?

18. javascript disable textbox in jsp page    stackoverflow.com

I have these three fields in my jsp page.

    <td>
           <html:text property="my_dto.number1" </html:text>
   </td>
   ...

19. Developing web page with JSP(what can i use instead of table)    stackoverflow.com

I am student. I am develping my project with Netbean 6.0.0(JSP) using JSF. In my IADCS Project, my teacher said "Don't use label, Menu, and table". But all the reports must ...

20. Doxygen for jsp pages?    stackoverflow.com

I need to document a (fairly) large project in java + jsp (1.0... don't get me start). For the middle tier (all .java classes) I just used doxygen to generate .html and ...

21. How to create a beep in web page?    stackoverflow.com

I want to create a beep on server error in a webpage. I have searched and read the pages below on to display sound on webpage. http://www.phon.ucl.ac.uk/home/mark/audio/play.htm But i can't ...

22. disable a sellect input based on another select input in jsp page using javascript    stackoverflow.com

i have two select input fields in a jsp page. i want to disable the second input based on the value of first input. i wrote the function. but it is ...

23. jsp - how can I out.println from within the head of an jsp page?    stackoverflow.com

I have a website that Im trying to start - but I stored all of the information in a database. What I want to do, is create the page directly ...

24. Do you need to have a jvm so you can visit web pages written in JSP?    stackoverflow.com

This might sound dumb, but I need to verify one thing. Does it mean that without a java virtual machine in your computer, Java codes in your (jsp) will not work ...

25. How to set class="active" to the active page    stackoverflow.com

I'm designing an application in which I'm using jsp pages. Now I need something that indicates which is the current page that is being displayed. Basically, I want a menu that ...

26. Master-Detail page with JSP    stackoverflow.com

Hi I need to create a Master-detail page with JSP, to add ,edit and delete details without form submission and I wondered if you could give some suggestions on how to achieve ...

27. are there any restrictions on ZeroClipboard to work in a jsp page that consists of many other scripts or consists of Jmesa table builder    stackoverflow.com

I have taken the very basic example of Zeroclipboard %@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> Hello World ...

28. FrontController implementation for JSP pages    stackoverflow.com

I am developing a simple website with few JSP pages. Each jsp does have a dynamic data that needs be read from XML before they redered on to the browser. Though ...

29. how to make a blogs page of a websit in jsp    stackoverflow.com

Currently I am doing a website. I have to make blogs,newsletter page for my website in jsp/servlet. I have no idea about it. Can anybody help me regarding this. Thanks in advance.

30. what is the class of jsp pages?    stackoverflow.com

What is the class of jsp pages? I want to pass an object of page to a class whith "this" pointer on the page. How can I do this? Thanks.

31. username is not available on the welcome page    stackoverflow.com

identify the reason why the username is not being displayed on the welcome page using the following code?

String custId = (String) session.getAttribute("customerId");
String emailId = (String) session.getAttribute("emailId");
String phoneNumber = (String) session.getAttribute("phoneNumber");
<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table width="70%" ...

32. Using an if statement to decided whether or not to show a table on a jsp page    stackoverflow.com

I have a parameter of user that I am setting equal to -1 if this param is not given. I only want to show the table if the parameter is ...

33. how to assign javascript value to jsp varaiable in jsp page    stackoverflow.com

i have a text field,i need to send these text value to the same page which is in jsp . i just want to assign javascript value to jsp variable

34. How can I tell whether a page was generated by JSP?    stackoverflow.com

Since there are many programming languages that can be used to develop a web application. Without looking at the source code, what are some ways to identify that a web ...

35. How to monitor internet bandwidth from Web page?    stackoverflow.com

I wish to monitor the my internet bandwidth from a web page i create. Is it possible to handle or read data packets by the web page from network adapter using ...

36. Jsp Pages Hierarchy    stackoverflow.com

I have a complicated website design (downloaded a design + css from the web) and I want to cleverly use includes, so that I can separate the design from the content. However, ...

37. JSP - What's the first step to serve JSP pages on my PC?    stackoverflow.com

I want to start developing JSP pages. I need to set up a localhost on my PC at home. What do I need to do to serve JSP pages locally? I don't know ...

38. Java to JSP - How do I integrate a Java application into a JSP web page?    stackoverflow.com

Okay, this is got to be the easiest question of the day. This is my first stab at Java and JSP. I just wrote a little Java application using using Eclipse. ...

39. Java java server pages and netbeans    stackoverflow.com

I have developed a .jsp website using NetBeans. It is working perfectly well when I run it from NetBeans but when I clean and build the project and copy the .war ...

40. Help with Javascript in JSP page    stackoverflow.com

I have a JSP which gets a value called sum from the DB...

String sum= request.getAttribute("s").toString();
int s = Integer.parseInt(sum);
I have a field in a form called weight who's value cannot exceed sum. So ...

41. On transition of pictures in slideshow using javascript the whole page shakes    stackoverflow.com

I am using javascript to display a slideshow on my JSP. In slideshow the picture fadein and fadeout every 3sec. On every transition of a picture the whole jsp shakes. I ...

42. Creating tabs inside jsp page    stackoverflow.com

I m developing a jsp page with several buttons.I want to group them and put into different tabs.I downloaded .jar from the "http://ditchnet.org/tabs/"click here to download the jar file ...

43. What's the equivalent of C++'s "#ifdef #endif" macro in JSP?    stackoverflow.com

What's the equivalent of C++'s #ifdef #endif macro in JSP? Is there such thing in JSP? I want to conditionally include files in one JSP or another. Reason for doing that is because I ...

44. how to avoid null on a jsp page    bytes.com

Please have a look at the following jsp page code , when this page gets loaded "null" is being printed. Please suggest me where i am doing wrong. Servlet code is ...

45. DropDowList in jsp page ?    bytes.com

47. Find Usages support in JSP pages    forums.netbeans.org

Hi, Does anyone know if Netbeans supports the FindUsages features in JSP pages? For example, if I try find usages on a function in a Java class, it shows me all ...

48. how to show chartPanel in jsp page    forums.netbeans.org

49. Jsp pages    forums.netbeans.org

50. Need an Help in JSP Page    forums.netbeans.org

I think this HTML output would work

But I should say my HTML is kind of old fashioned these days ...

51. Integration of CKEditor in JSP pages?    forums.netbeans.org

Hello, I want to integrate the CKEditor in my web application (JSP pages). I have all done what the documentation says. But it does not work. What else have I to ...

53. Creating a Basic JSP Page in Netbeans    forums.netbeans.org

Posted: Mon Jun 21, 2010 2:32 pm Post subject: Creating a Basic JSP Page in Netbeans Hello all, Sorry if this is a basic question, but I've been ...

54. I cannot run a jsp page    forums.netbeans.org

55. How to extract the hidden values from JSP page??    jmeter.512774.n5.nabble.com

I'm working on Jmeter for automating the test process. I have created a project and need to edit the project details. For this i need to extract the project id since i cannot hardcore the project id every time i run the script in jmeter. The scenario is like this : 1. Previously the page was build using JSF and it ...

56. Setting in JSP page(URGENT)    coderanch.com

58. A tiny JSP page: How is this possible?    coderanch.com

Look at this: JSP Declarations

JSP Declarations

<%! private int accessCount = 0; %>

Accesses to page since server reboot: <%= ++accessCount %>

What this JSP page does is just keep counting the number of hits of this current page via the variable "accessCount", which does not seem to be a predefined variable. But I ...

59. (URGENT) Singletons and JSP pages    coderanch.com

I second our bartender: the tag above should do the trick. OR. (com.amfam.isagent.afsllc.EnvironmentDatabean) session.getAttribute("nameOfObject"); then assign the type returned to same session object,which is available in Ur JSP Question. What are singleton classes/objects and how/why are they used in wedapps. Ideas and references will be appreciated. cheers [ January 31, 2002: Message edited by: Gabriel Fox ] ...

60. Can I use JavaScript inside a JSP page?    coderanch.com

A JSP writes HTML output to a browser as a response to a request. Anything you can put in a static HTML page can be written by a JSP. You may have to be careful about escaping characters, etc. but it can be done. I get the feeling that you are a little mixed up about where things happen - Javascript ...

61. Using a JSP page as 404 Handler    coderanch.com

I'm trying to use a JSP page as a 404 handler but I'm having a problem detecting which page was requested. My setup is both Tomcat 3.2.3. standalone (on port 8080) and Apache with mod_jk. I've configured the 404 handler in web.xml and also in Apache's httpd.conf and my JSP page gets called correctly when I reference a non-existant page (e.g. ...

62. page refersh problem    coderanch.com

Hi All, using jsp, the pages which I'm using. don't get refreshed even until I refresh it by pressing the refresh button of browser. Tried everything but it doesn't work. I used the following code too. but still response.setHeader("pragma", "no-cache"); response.setHeader("Cache_Control", "no-cache"); response.setHeader("Cache_Control", "no-store"); response.setDateHeader("Expires", -1); Don't know how to fix it. Ali

63. how to diaplay a large size jsp page ?    coderanch.com

64. Putting a class into a JSP Page    coderanch.com

65. Help!! Double Spaced when page is saved?!?!    coderanch.com

I don't know if I'm posting to the right forum(or if there is a right forum for this) But.... I have a jsp page that when loads is fine, it's single spaced like it is supposed to be. When the user saves the page everything on the page is double spaced in the source. There are no extra tags being added. ...

66. trouble using if decision statement in a jsp page    coderanch.com

My html form page has a number of text fields of data to submit to a database. It also has five buttons which will determine what action is to be taken on that data. The html page uses . The decision.jsp page is only used to determine which other .jsp page would redisplay the form with its processed data. I ...

67. Where should i store .jsp pages    coderanch.com

Hi, I have very simple question. could someone please help me or provide me some direction so that i can better understand the concept? Q. where should i keep all the web component (like jsp page, htmlpage, etc..)? what is the best practice in real world? should i put them under the root directory of my web application? or should i ...

68. Trouble accessing a singleton within a JSP page!    coderanch.com

I'm having a dandy of a time trying to get an instance to a singleton within my jsp page. This singleton contains the a HashMap of field labels of the input fields. Anyhoo, when I call the singleton's getInstance() method, the app pretty much hangs, no errors that I can see. I'm using Visual Age 4.0 WTE and a Model 2 ...

69. Getting input in JSP page    coderanch.com

I need to gather three pieces of data in a JSP page that I will use to "setProperty" in a bean (these three pieces of info will do a database lookup in the bean). How do I just get some information from the user, like a few pieces of information, then continue processing, in the JSP page, with that info (like ...

70. Invoking an .exe from a JSP page.    coderanch.com

71. restricting access to pages    coderanch.com

Hi Bina, Access control for a given directory is controlled by a specific file in the directory with the name .htaccess So let's suppose you want to restrict files of user bina in a directory called turkey to username pumpkin and password pie. Here's what to do: Create a file called .htaccess in binas directory turkey that looks like this: AuthUserFile ...

72. getting the locale from a jsp page    coderanch.com

73. Optimization: JSP and page buffers?    coderanch.com

74. Referer page    coderanch.com

I am writing a small html and a JSP page. The jsp page is trying to find out if the referer page is numLimit.html. HTML page (numLimit.html)

============ JSP page (test.jsp) <% if (request.getParameter("previousPage" == "9")%> got it!!! <% ...

75. JSP pages is not working with tomcate    coderanch.com

hi there, Even i had the same problem , the reasons r many to name a few r claspath setting ,wher u have stored the files , if u have two versions of servlet.jar, registry error. Wat i did was i formatted n made a fresh installation n they r workin now , why dont u tyr tht . bye take ...

76. problem while forwording the JSP page    coderanch.com

hi Trupti, i guess what u want is, simple HTML that has a form having Name field and Submit button and then the action for that form to be "welcome.jsp". when u click on Submit after entering the Name it should go to Welcome page that says "Welcome, <>", right? if i were u , i would have done following, ...

77. How can I control the window size in a JSP page?    coderanch.com

Thank you for your answer. Anyway, I haven't understood it yet. For example, I can use window.open() in javascript to open a new window, and resize it, define its properties. But when I use response.sendRedirect("a.jsp") in a JSP page and jump into the "a.jsp" page. I mean how to code in a.jsp to resize the current window, such as hiding the ...

78. ****** help needed! on JSP page directives    coderanch.com

JSP: How cani conditionally invoke the page content type my project involves, a report page having 'Save as Excel' and 'Save as HTML' and print hyperlinks when print is clicked a print dialog box is opened thro' window.print() method in the same manner, when i click on 'Save as Excel' or 'HTML' a dialog box should open and ask for Savin ...

79. JSP and Java script pages    coderanch.com

One advantage is that the server side JavaScript engines I've worked with exhibit particularly poor performance, and there are some useful operations (like sorts) that you may need but are just too heavy to do. JavaScript is also a fairly weak language. You can do a few bits and pieces for it, but when you need to do operations that aren't ...

80. How do you write a stand alone function for use in a JSP page?    coderanch.com

I swear this sounds way too simple a question to be asked even in the beginner forum, but I must... How do you write a stand alone function to be called in a JSP page? I know that typically in Java you write it as part of a class... but JSPs don't appear to use classes as I just write everything ...

81. maintain/organize jsp links w/o having to edit all the pages linking to    coderanch.com

I am looking for methods (or even products) that I can use to maintain the organization of the html/jsp pages I link in <%@ include file="somefile.jsp" %> directive such that if the name or location of "somefile.jsp" changes, all I'd need to do is change it in some file-maintenance file. For example, I was thinking of creating an xml file where ...

82. Detecting page unloads ...    coderanch.com

Hi, I am using an attribute in APPLICATION scope for concurrency checking. The problem is, the attribute has to be reset if (and only if) the user navigates out of the page without submitting the data (say ,by clicking the BACK button in the browser) ... So ,how do i detect that?

83. Comment in JSP pages    coderanch.com

84. How to access a JSP Page-Urgent    coderanch.com

85. JSP Page buffering    coderanch.com

86. server from which page accessed    coderanch.com

87. Page HitCounter in JSP?    coderanch.com

I'm trying to implement a page hit counter from my JSP page. The code below calls a small Java class that does the actual increment and stores the new value in a text file. All works OK, except that now I'm trying to only have the counter update ** once per session **. That is, I don't want the user to ...

88. How to kill a JSP page?    coderanch.com

89. The support of multi-language in a jsp page.    coderanch.com

Hi all, i want to create a jsp page which has a number of input fields. In each field the user can insert a text of certain language for example there where a field for entering english, a one for french and a one for german. i want also to store these values in unicode format in the database. How can ...

91. I want to use xmlhttp in my JSP page    coderanch.com

92. go to another page    coderanch.com

94. Page refreshes    coderanch.com

Can I refresh only half of the page such that when i click on a submit button half of the screen refreshes while the rest of the form where values were filled does not gets refreshed or clears off. whereas how can i avoid writing again the request.getParameter for the next half remaining fields Regards, aakash

95. simple page    coderanch.com

96. please wait page    coderanch.com

Hello, I have a JSP page that loads data from database. In this page I have a routine that checks if something was returned from the database. While nothing is returned, a "Please wait, menus are being searched..." message is displays. The problem is that the very first time page is loaded I don't see the message, but then if I ...

98. question on re-using jsp pages.    coderanch.com

100. wrong page access count    coderanch.com

Hi, I am writing a simple JSP that writes the user info (firstname, lastname and email) to a text file. This JSP uses 2 Java classes(User and UserIno) that belong to 2 different packages(A and B). Part of the JSP (userinfo.jsp)is here: <%@ page import="A.*,B.*,java.util.Date,java.io.*"%> <%!int accessCount=0;%> <% String firstName = request.getParameter("firstName"); String lastName = request.getParameter("lastName"); String email = request.getParameter("eMail"); String ...