Questions tagged [jsp]
Java Server Pages (JSP) is used to create dynamically generated web pages based on HTML, XML, or other document types. JSP is similar to PHP, but it uses the Java programming language.
39 questions
2 votes
1 answer
720 views
Best practice to confirm unique username for user creation in JSP and JDBC?
First let me state the asynchronous approaches:- The user enters a character into the username form field. I create a connection to the database, use a prepared statement to confirm whether the ...
-2 votes
1 answer
64 views
What method/ approach is used to query a user's page on a website using backslash + username? [closed]
I am working on a Servlet/JSP project, the website have users and I need to display a user's profile using the notation myDomain.com/Joe instead of myDomain.com/users.jsp?user=Joe. An instance of my ...
0 votes
1 answer
183 views
What are the drawbacks to SQL in JSP, PHP, or other server-side scripting?
I'm working on a code base that dates back at least 15 and possibly as much as 20 years, where the older code is still functional but includes thousands of JSPs full of Connection, PreparedStatement, ...
-1 votes
2 answers
13k views
Connecting an HTML form to a Java program [closed]
I would like to create a front-end interface in HTML that interacts with a Java program via an HTML form. I would like to be able to publish this project on the Internet. In other words, the text ...
30 votes
5 answers
13k views
Why is JSX good, when JSP scriptlets are bad?
React.js provides JSX as an XHTML-like syntax for constructing a tree of components and elements. JSX compiles to Javascript, and instead of providing loops or conditionals in JSX proper, you use ...
0 votes
0 answers
261 views
Why are scriptlets considered bad practice in JSPs when much more popular languages such as PHP seem not have any problem with them? [duplicate]
Why is doing <% if(blahblah) { //do something } %> in a JSP considered to be bad practice when noone who writes PHP seems to have any problem with doing essentially the ...
1 vote
0 answers
422 views
How and where to make global function file in jsp sevlet web application
I am making a website in Servlet&JSP. I am looking for good way to make a specific function file from where I can call and declare my common functions. If I made a java file function. Java, so is ...
0 votes
3 answers
2k views
Conceptually, is the single page web app more efficient than the web app that loads pieces of the page for every page? [closed]
I searched a lot, but nobody seems to have explained this nor given a proper example. I have a page like this: My team says they want to design the code such that the Title section, Menu section ...