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...
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...
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?
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...
- Modified
- 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...
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...
- Modified
- 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...
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...
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...
- Modified
- 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, ...
- Modified
- 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...
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 ...
- Modified
- 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...
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: ```
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
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...
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 ...
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...
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...
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 ```
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}
- Modified
- 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...
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
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...