Skip to main content

All Questions

Tagged with
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 ...
Mike's user avatar
  • 1
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 ...
Sam's user avatar
  • 27
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=...
Chad_Manoj's user avatar
-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=&...
kk luo's user avatar
  • 579
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 ...
Swagnar's user avatar
  • 127
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 ...
user avatar
-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 ...
user1684938's user avatar
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=&...
Shibin Thomas's user avatar
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 ...
tohhant's user avatar
  • 117
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 ...
sollniss's user avatar
  • 1,955
-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. ...
Benjamin Françoisse's user avatar
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 ...
Stefan's user avatar
  • 999
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='$...
zwest's user avatar
  • 1
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?
Pratik Motghare's user avatar
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 ...
rameeza qureshi's user avatar

15 30 50 per page
1
2 3 4 5
51