tagged [jsp]

JSP as Email template

JSP as Email template Is there a way to send a MIME email in which the body of the email is derived from a JSP? I need to send an email with Javamail which contains a table and I figure it would be co...

24 Oct at 15:51

Will using jQuery make my site load slower?

Will using jQuery make my site load slower? I am planning to use jQuery in my new website. I have some questions about jQuery: 1. if I am using jQuery in my site, will page load slower than a normal j...

26 Feb at 09:9

How to transfer data from JSP to servlet when submitting HTML form

How to transfer data from JSP to servlet when submitting HTML form I have a JSP page with an HTML form: How to obtain these data in a servlet and add them to database?

8 Feb at 10:14

How to disable submit button once it has been clicked?

How to disable submit button once it has been clicked? I have a submit button at the end of the form. I have added the following condition to the submit button: But when it moves to the next page, the...

12 Aug at 14:36

How can I avoid Java code in JSP files, using JSP 2?

How can I avoid Java code in JSP files, using JSP 2? I know that something like the following three lines is an old school way of coding and in JSP version 2 there exists a method to avoid Java code i...

28 Dec at 23:44

What are the alternatives to JSTL?

What are the alternatives to JSTL? Are there any alternatives to JSTL? One company I worked for 3 years ago used JSTL and custom tag libraries to separate presentation from logic. Front-end developers...

4 Dec at 17:37

Differences between cookies and sessions?

Differences between cookies and sessions? I am training in web developement and am learning about & . I have some knowledge of `HttpSession` - I have used it in some of my sample projects. In browsers...

7 May at 18:6

Evaluate empty or null JSTL c tags

Evaluate empty or null JSTL c tags How can I validate if a `String` is null or empty using the `c` tags of `JSTL`? I have a variable of name `var1` and I can display it, but I want to add a comparator...

5 May at 10:29

How to output HTML from JSP <%! ... %> block?

How to output HTML from JSP block? I just started learning JSP technology, and came across a wall. This doesn't work: Server says there's no “out”. I do know how to rewrite code with this method retur...

26 Sep at 16:46

Technical differences between ASP.NET and Java Servlets / JSP

Technical differences between ASP.NET and Java Servlets / JSP My understanding of JSP is that every JSP page on first load is compiled into a Java Servlet. Is this the same for ASPX pages (of course, ...

30 Jul at 12:18

ORA-12518, TNS:listener could not hand off client connection

ORA-12518, TNS:listener could not hand off client connection I am using ORACLE database in a windows environment and running a JSP/servlet web application in tomcat. After I do some operations with th...

25 Aug at 09:56

Assign JavaScript variable to Java Variable in JSP

Assign JavaScript variable to Java Variable in JSP Ello there, I'm trying to assign the value of a javascript variable to a java variable. But I don't have clue how to do this? Say for example I have ...

25 Nov at 11:24

How to send redirect to JSP page in Servlet

How to send redirect to JSP page in Servlet When I'm done processing in a servlet, and the result is valid, then I need to redirect the response to another JSP page, say `welcome.jsp` in web content f...

19 Sep at 09:28

Evaluate if list is empty JSTL

Evaluate if list is empty JSTL I've been trying to evaluate if this array list is empty or not but none of these have even compiled: ```

23 Sep at 01:54

How to get a index value from foreach loop in jstl

How to get a index value from foreach loop in jstl I have a value set in the `request` object like the following, and this is how I iterate in jsp page ```

14 Mar at 19:13

How do I call a specific Java method on a click/submit event of a specific button in JSP?

How do I call a specific Java method on a click/submit event of a specific button in JSP? My Java file is: In my JSP page I have three HTML buttons. If I click on `button1`, then only `method

24 Jul at 21:37

How do I compare if a string is not equal to?

How do I compare if a string is not equal to? I'm trying to only show something based on if a string is not equal to: It keeps throwing the error `org.apache.jasper.JasperException: /WEB-INF/jsp/conte...

18 Jan at 17:12

How to use session in JSP pages to get information?

How to use session in JSP pages to get information? I have a JSP page used for editing some user's info. When a user logins to the website, I keep the information in the session, then in my edit page ...

8 Aug at 14:51

Making HTML page zoom by default

Making HTML page zoom by default I've designed a page, where buttons look good when the browser zoom is at 90%, but by default other users view it at 100/125%+ in their browser which is resulting an o...

12 Mar at 07:4

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path I have a project created by Maven integration in Eclipse. All work fine, but in the work space in all JSP files hav...

12 Jan at 21:6

Using a jsp bean in a session

Using a jsp bean in a session I am using a JSP bean and when I do an assignment to a new object, it gets over-written on a submit to the previous object. and on a resubmit of the page I get ```

18 Nov at 17:54

Selected value for JSP drop down using JSTL

Selected value for JSP drop down using JSTL I have SortedMap in Servlet to populate drop down values in JSP and I have the following code and in JSP ``` ${item.value}

8 Jul at 17:33

How to submit form on change of dropdown list?

How to submit form on change of dropdown list? I am creating a page in JSP where I have a dropdown list and once the user selects a value he has to click on the go button and then the value is sent to...

29 Aug at 14:7

Get request URL in JSP which is forwarded by Servlet

Get request URL in JSP which is forwarded by Servlet How can I get request URL in JSP which is forwarded by Servlet? If I run following code in JSP, then I get the server side path to the JSP. Bu

23 Nov at 08:34

Declaring functions in JSP?

Declaring functions in JSP? I come from PHP world, where declaring a function in the middle of a php page is pretty simple. I tried to do the same in JSP: ``` public String getQuarter(int i){ String q...

14 Apr at 06:33