allen catadman

Greenhorn
+ Follow
since Apr 16, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by allen catadman

do it in phaselistener beforePhase

or hx:scriptCollector preRender

<hx:scriptCollector preRender="#{myBean.init}">


it will not work if you addMessage using the managed bean constructor

14 years ago
JSF
options

1. http://webmoli.com/2008/11/10/jsf-onload-action-during-restore-and-render-response-phase/
2. if your using jsf ibm RAD hx:scriptCollector preRender
3. implements a PhaseListener
14 years ago
JSF
i got it.. in mac osx i should command Q not just click X.. at work we use windows/RAD thats why it works.. my mistake i should use command Q totally exit safari/firefox not just click X.. so i still into tomcat..
14 years ago
JSP
its a tomcat issue.. it works fine in RAD

OT: i got it.. in mac osx i should command Q not just click X.. at work we use windows/RAD thats why it works.. my mistake i should use command Q totally exit safari/firefox not just click X.. so i still into tomcat..
14 years ago
yup. but how come it works fine in RAD. the session should not be reuse when i open a new browser...

if thats the case if i login store the user bean into the session.. close the browser, open a new browser access the page i am automatically login because the session is still there?
14 years ago
JSP
clicking X of the browser
14 years ago
JSP
test.jsp
<%
session.setAttribute("test","
test");
%>
<a href="testsub.jsp">testsub</a>

testsub.jsp
<%
String test = (String)session.getAttribute("test");
System.out.println("test ->"+test);
%>


-----------------------------------------------------------
working environment : tomcat 5.5/6 or jboss 4.2 / firefox/safari i doubt my apache is also running..
browser 1
1.) hit test.jsp
2.) click testsub link
3.) console output: test->test
4.) close browser

open new browser 2
1.) hit testsub.jsp
2.) console output still: test->test but should be test->null

question: tested in RAD -> OK

1. any setup to server.xml?

expected console output should
test->test
test->null
14 years ago
JSP