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
1 vote
0 answers
88 views

Displaying data from database in JSP

I am trying to display data in JSP and i am wondering if there is a better way then what i have done. I am not really experienced in Java or JSP so the code i made is probably not the cleanest. I will ...
1 vote
1 answer
73 views

Make a specfic message according to missing column value

When a user input employee_id and book_title check its existence before insertion employee_id from student_table and book_title from book_table. If employee_id is available but book_title is not, ...
7 votes
3 answers
244 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 ...
  • 568
1 vote
1 answer
88 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 ...
  • 26.6k
5 votes
2 answers
2k 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
1 answer
2k views

Java login system using JSP and servlets

The system is pretty simple. Here is how the database looks: ...
1 vote
1 answer
692 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 ...
  • 65
3 votes
0 answers
321 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,...
  • 161
2 votes
0 answers
184 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
0 answers
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: <...
  • 1,565
3 votes
0 answers
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 ...
  • 389
2 votes
1 answer
10k 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
1 answer
360 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
2 answers
6k 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 ...
  • 478
4 votes
1 answer
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: ...
  • 478
1 vote
3 answers
34k views

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

This is the only Servlet I have: ...
  • 1,565
10 votes
2 answers
619 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
2 answers
800 views

Simple Java web app code

I wanted to work on HttpSessions and JSP. This is the view I have: ...
  • 1,565
9 votes
2 answers
1k views

MVC controller code

Please review my servlet. ...
5 votes
2 answers
943 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 ...
  • 155
-2 votes
1 answer
6k 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
1 answer
578 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. ...
  • 121
2 votes
1 answer
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 ...
user avatar
1 vote
2 answers
319 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 ...
user avatar