Questions tagged [jsp]

JSP (Java Server Pages) is a server side technology used for presentation layer for the web applications. JSP are available on the server machine which allows you to write template text in (the client side languages like HTML, CSS, JavaScript and so on) and interact with backend Java code.

Filter by
Sorted by
Tagged with
7
votes
3answers
129 views

Java Servlet & JSP simple login

I am currently learning Java Servlets and JSP at university. As a little practice I created a project where I want to be able to login into a protected area. Now, I got it working by using a ...
0
votes
0answers
19 views

Asking data to a Servlet from jsp and send them back to the jsp

Image that a user have to book a private lesson by compiling this form. Using MVC pattern I'm building a WebApplication to achieve this goal; I have a jsp wich contains the form and by using Ajax I ...
1
vote
1answer
73 views

Java web application for sharing temporary notes

I have this web application for sharing temporary notes. It supports HTML markup (<p>, <code>, etc.) along the TeX ...
5
votes
2answers
1k views

Thread Safe Servlet

I am working on a JSP MVC web application. I am confused about Thread-Safe Servlet concept. Following is my code, please tell me is it thread safe or not. Also, tell me the reason that why it is ...
5
votes
1answer
2k views

Java login system using JSP and servlets

The system is pretty simple. Here is how the database looks: ...
1
vote
1answer
171 views

Span decimal point precision

In a JSP page I have a number of Span elements. Each of this span element will be floating point numbers. All these span elements has class ...
3
votes
0answers
284 views

JSP evaluation of Parameters

I was never really sure what the cleanest way would be to use JSP-Pages for receiving sent parameters. It's common knowledge to use as little JSP as possible - yet as some things have to be done there,...
2
votes
0answers
181 views

Managing multiple forms with individual updates and batch delete with checkboxes

I have a JSP page with a table containing data from java.util.List. The items from the list are taken from the database. Each row has an edit button that will get all the values from that specific ...
1
vote
0answers
2k views

File Upload with Java - Servlets

The code below allows you to select an image file from the local file system, upload it, and display it in the browser. Any review is welcome. You can see the code in action here. Here is my code: <...
3
votes
0answers
3k views

Authorization token from servlet filter stores user name

I'm having some difficulty with servlet and filter lifecycles. The intention here is to use the front controller pattern with a simple login; authentication is accomplished with the filter. Am I ...
2
votes
1answer
9k views

Shopping cart application in Spring MVC

I am creating a shopping cart application to learn Spring MVC. I want to display a list of all categories and subcategories in more than one page. i.e; Home Page, Products page, and Category page. In ...
2
votes
1answer
332 views

Open source Pastebin tool made in JSP and servlet

I'm a student and still studying. I just made my own Pastebin tool to generate source code. I've also contributed this project as an open source. You could see this project from here. If you wish to ...
1
vote
2answers
5k views

Servlet and JSP for user registration, with CAPTCHA and error handling

I have a form that submits to a registration Servlet, which inserts a new user to the database when they sign up to the web application. Depending on the erroneous user input, the Servlet will ...
4
votes
1answer
2k views

Error Handling in Servlets and JSPs

I have an HTML login form that is processed by a servlet, which then redirects the user to a result page. login.jsp: ...
1
vote
3answers
30k views

A Java Web App with Servlets, JSP and Session: shopping cart example

This is the only Servlet I have: ...
10
votes
2answers
595 views

Super sophisticated game information web application

Considering I've got an exam on Spring tomorrow, I figured you could review a small example application I whipped together as preparation (and as such, I'd prefer the emphasis to be on Spring-related ...
4
votes
2answers
783 views

Simple Java web app code

I wanted to work on HttpSessions and JSP. This is the view I have: ...
8
votes
2answers
918 views

MVC controller code

Please review my servlet. ...
5
votes
2answers
786 views

Is it advisable to integrate SQL statements in the JSP pages that are not displayed to the user but handled at the back?

I have a signup form in which the user has to enter the email address and after some quick asynchronous processing at the backend I have to tell the user that whether the email address is already ...
-2
votes
1answer
5k views

file downloading using jsp but not readable [closed]

I am trying to download files using jsp but then downloaded files are not readable. Suppose if i download pdf files then it can not opened,if i download jpg files then it can not opened and similarily ...
2
votes
1answer
575 views

Am I using appropriate methods in this login system?

I have had to do a crash course in JSP, Servlets, and JDBC. I decided to attempt a Login System. I'm unsure if my use of try/catch is appropriate and if I am closing database connections correctly. ...
2
votes
1answer
1k views

Tomcat/JSP/servlets web-project

This is a simple sort of array. The array (in fact I used ArrayList) is stored in default_list.txt file on server, all changes ...
1
vote
2answers
310 views

Is there a more efficient way of loading views within my java app?

I'm building a web application in Java. I'm new to Java, so before I get too far into this... I'm hoping to take advantage of all the experience here and learn the problems with this setup. My ...