in the jsp view U can do like this.......
<jsp:scriptlet>
response.addHeader("Pragma","no-cache");
response.setHeader("Cache-Control","no-cache, no-store, must-revalidate");
response.addHeader("Cache-Control","pre-check=0, post-check=0");
response.setDateHeader("Expires", 0);
</jsp:scriptlet>
I use this scriplet to no caching.....
it's more convenient to do this inside the .init method or prerender method of your page....... I can see tha you are trying to this in the jsp view..... it's harder and prone to creator's bugs......if you want to make a dinamic property use the java mode.......
but if you want to risk....... try this.....
<jsp:scriptlet>
ApplicationBean1 AB1 = (ApplicationBean1) application.getAttribute ("ApplicationBean1");
SessionBean1 SB1 = (SessionBean1) session.getAttribute ("SessionBean1");
</jsp:scriptlet>
......
<Object id='****' ID= <jsp:expression> SB1.getMyMethod</jsp:expression>
If it's not what you want tell me more specifically what it is
<jsp:scriptlet>
ApplicationBean1 AB1 = (ApplicationBean1) application.getAttribute ("ApplicationBean1");
SessionBean1 SB1 = (SessionBean1) session.getAttribute ("SessionBean1");
</jsp:scriptlet>
......
<Object id='****' ID= <jsp:expression> SB1.getMyMethod</jsp:expression>
....
i can't understand this code!!!can you please explaine it briefly?
As far as what do i need is, i just want to place value of a property in session , in following code piece , at highlighted position. if you can guide me in safe and easy way to do it i will be very thankful.
<object ALIGN="" HEIGHT="153" WIDTH="171" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v ersion=6,0,0,0" id="flash-menu-templates">
<param NAME="movie" VALUE="spin_v.swf"/>
<param NAME="menu" VALUE="false"/>
<param NAME="quality" VALUE="high"/>
<param NAME="salign" VALUE="LT"/>
<param NAME="scale" VALUE="noscale"/>
<param NAME="bgcolor" VALUE="#FFFFFF"/>
<param NAME="FlashVars" VALUE="here i want to place value from session bean like getSessionBean1.getFileName()">
<embed ALIGN="" HEIGHT="160" NAME="flash-menu-templates" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"
TYPE="application/x-shockwave-flash" WIDTH="100" bgcolor="#FFFFFF" flashVars="datafile=spin-ex2.txt" menu="false" quality="high" salign="LT" src="spin_v.swf"></embed>
</object>
Hmm......
The code I posted create an instance of the SessionBean and ApplicationBean , with this U can use methods and atributes of your session bean in the current page....... but U can use the http session too.....depends on you
If you setted your business atributes in the SessionBean1 just call it as the example...... try this and tell me if it works...... but know that this isn't the best way to doing so..........
<jsp:scriptlet>
ApplicationBean1 AB1 = (ApplicationBean1) application.getAttribute ("ApplicationBean1");
SessionBean1 SB1 = (SessionBean1) session.getAttribute ("SessionBean1");
</jsp:scriptlet>
<object ALIGN="" HEIGHT="153" WIDTH="171" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v ersion=6,0,0,0" id="flash-menu-templates">
<param NAME="movie" VALUE="spin_v.swf"/>
<param NAME="menu" VALUE="false"/>
<param NAME="quality" VALUE="high"/>
<param NAME="salign" VALUE="LT"/>
<param NAME="scale" VALUE="noscale"/>
<param NAME="bgcolor" VALUE="#FFFFFF"/>
<param NAME="FlashVars" VALUE = <jsp:expression> SB1.getMyMethod()</jsp:expression>
<embed ALIGN="" HEIGHT="160" NAME="flash-menu-templates" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"
TYPE="application/x-shockwave-flash" WIDTH="100" bgcolor="#FFFFFF" flashVars="datafile=spin-ex2.txt" menu="false" quality="high" salign="LT" src="spin_v.swf"></embed>
</object>