Unable to access session on JSP
I have a JSP with netbiscuits code in it, I am now removing that netbiscuits code but after removing I am unable to get session from my previous page due to which I am unable to move ahead. I am using struts 1. Please suggest a solution to my problem, I would be grateful. Thanks in advance.
I am not sure about your problem. Can you explain it little more? Usually for accessing session in jsp pages we use the code with in scriptlets like String x=(String)session.getAttribute("uname"); Type casting is required. or use String x=""+session.getAttribute("uname"); If you want to print it somewhere in the jsp page do, <%= session.getAttribute("uname")%> It will print the session value in jsp page. otherwise use like <% String x=""+session.getAttribute("uname"); %> <%=x %> For accessing in java pages Map session = ActionContext.getContext().getSession(); String uname=""+session.get("uname");
JSP Quiz process is not giving me the correct percentage scored
Refer the id variable of logic - iterate using jstl-el
Invalid tagdir attribute while web-fragment is used
JSP foreach tag for two variables
Adding Parameter to href tag before uri
Servlet exception stream closed jsp
creating and exporting a csv from Display tag table
bean write to number type id
restrict image file size in alloy UI
The function getContextPath must be used with a prefix when a default namespace is not specified
how can i retrive parameters from EncodeURL using jsp?
onclick tag giving error in h:commandLink
Displaytag - How to pass hidden value in url?
Embedding Tag Files in a JAR
Errors when the compiler is trying to build a custom JSP tag based on an Java Bean
Creating nested custom tag using jsp2 tag files