All Questions
759
questions
0
votes
0
answers
317
views
Window.open is creating new session in JSP
I have app running in IE mode in EDGE and i have one JSP page which opens in EDGE with window.open. My problem is when the new JSP page opens in EDGE it creates new session. How can I force JSP to not ...
0
votes
2
answers
472
views
JSP session.getAttribute() returning NULL value
I have create two JSP page one opens in IE and another opens in EDGE within same application.
How can i share data from One JSP page to another i have tried below but when i try to getAttribute() it ...
0
votes
0
answers
51
views
session created before initializing it
home.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset=...
-1
votes
1
answer
333
views
Jsp can't get session attribute value
I wrote a servlet.
request.setAttribute("itemCount", 1000);
request.getRequestDispatcher("test.jsp").forward(request, response);
And in test.jsp I wrote:
<%@ page language=&...
0
votes
1
answer
183
views
Java Servlet/JSP - can't access session attribiutes
while working on my homework first tasks were about servlets strictly and then when passing values between servlets the session.setAttribiute and session.getAttribiute worked OK. But since using ...
3
votes
1
answer
488
views
JSP Page showing previous session data
I created a login form in jsp. Also made the session save system that when the user will log in his username will be visible in the welcome page inside a label tag. I used this code for this -
In the ...
-1
votes
1
answer
36
views
Looping through an ArrayList and updating an attribute
I'm trying to loop through an ArrayList in start.jsp and pass each item into a different jsp, destination.jsp. I am currently using sessions, and I am aware that the session.setAttribute function will ...
0
votes
2
answers
161
views
Is there a way to Convert double value from database taken through session to String?
I want to convert a double value to string and display in HTML input tag.
code:
<input type="text" class="form-control" value="91"> <input
type=&...
0
votes
1
answer
62
views
JS variable, assigned with session attributes, is empty until page reload
I have a code that set session attribute in my servlet:
session.setAttribute("culturesJsonArray", CommonUtils.toJson(foundLanguage.getCultures()));
And js variable on jsp page that stores ...
0
votes
1
answer
1k
views
Session sometimes gets lost when returning from an external url in Chrome/Edge
I have a website running on JSP that is using an external service for payment. When a user pays they are redirected to an external url and when payment is finished they return. My problem is that ...
-1
votes
1
answer
214
views
Keep Session Attributes after logout in JSP
I'm creating a web shop using JSP and Spring for a school project.
The website must be usable without being connected (except for payment), so I can add items to my cart even if I'm not connected.
...
3
votes
1
answer
186
views
Why cookie object in JSP can contain just value of type String?
As a beginner in JSP I noticed that we can hold any value inside of a session, while cookie can have value only of type String. I found it weird because what if someone wants to hold type other than ...
0
votes
0
answers
149
views
insert into statament java jstl tag
<sql:update dataSource="${applicationScope.oracleDataSource}"
var="count">
insert into books(ID,TITLE,AUTHOR,PRICE) where=user_id = <c:out value='$...
0
votes
1
answer
33
views
Session passed to jsp
This is my servlet page:
String email1=(String)session.getAttribute("email");
out.print(email1);
How can I pass this email1 object to JSP files?
0
votes
1
answer
82
views
passing ArrayList from one JSP to another using session
ArrayList<Object[]> custInfo = new ArrayList<Object[]>();
while(rs.next()){
String loginId = rs.getString("LOGIN_ID");
String ...