|
 |
pro_jsp thread: It's urgent I want to use a global
Message #1 by "vinod bonde" <vinodbonde@h...> on Thu, 13 Mar 2003 06:49:58 +0000
|
|
Thanks !!
You are right . I have almost evrything in jsp itself.
Now i am going for beans.
Thanks once again
vinod
>From: "Greg Dunn" <greg.dunn@n...>
>Reply-To: "Pro_JavaServer_Pages" <pro_jsp@p...>
>To: "Pro_JavaServer_Pages" <pro_jsp@p...>
>Subject: [pro_jsp] RE: It's urgent I want to use a global
>Date: Thu, 13 Mar 2003 09:18:47 -0600
>
>(Assuming you aren't confusing JavaScript with Java Server Pages...)
>
>Java has no global variables.
>
>If the variable isn't class level, it's not going to be accessible in all
>the methods of your JSP's code.
>
>You can put an object in application scope and use it in all your JSP's.
>
>It sounds like your JSP has a lot of scripting in it, if so you're going
>down the wrong path. Offload the java code and keep your pages limited to
>display of values as much as possible. Use beans to store values in page,
>request, session or application scope.
>
>
>Greg
>
>
>
>-----Original Message-----
>From: vinod bonde [mailto:vinodbonde@h...]
>Sent: Thursday, March 13, 2003 12:50 AM
>To: Pro_JavaServer_Pages
>Subject: [pro_jsp] It's urgent I want to use a global
>
>
>Hi
>I have problem
>It's urgent I want to use a global variable in jsp that should be
>accessible in the funcitons(methods) that are defined in the same jsp page
>and one more important thing is that these variables should not be class
>level variables.
>Thanks
>vinod
>
>_________________________________________________________________
>Cricket World Cup 2003- News, Views and Match Reports.
>http://server1.msn.co.in/msnspecials/worldcup03/
>
>
>
>
>
_________________________________________________________________
Get ball by ball action on your desktop.
http://server1.msn.co.in/msnspecials/cricketdownload/contest.asp Get Hutch
MSN Cricketer
|
|
 |