I forward to the list as my reply only went to Suriya Narayan Varatharajan ...


Veronique Dupierris a écrit :

> This declaration will create a variable shared between all instances/thread  of the
> JSP pages which is dangerous and not necessary !!
> If you want a variable to be an instance variable  use a scriptlet with a ';' at
> the end of the declaration as :
> <% String cost =
> WebMarket.getPriceQuoteMoney(currentQuote,PriceQuote.ASK_QUOTE_MONEY, theMarket);
> %>
>
> Regards
> Veronique
>
> Suriya Narayan Varatharajan a écrit :
>
> > here u r declaring String variable .. use this tag it will work...
> > <%!  String cost = WebMarket.getPriceQuoteMoney(currentQuote,
> > PriceQuote.ASK_QUOTE_MONEY, theMarket) %>
> > good luck...
> >
> > Q try for everything Q
> > regards
> > suriya
> > contech software ltd...
> > GIDC Estate
> > Ghandhinagar
> > ph:02712-43324(off)
> >     :02712-35567(pp)
> > mail at:[EMAIL PROTECTED]
> > visit at:www.contechgroup.com
> >
> > -----Original Message-----
> > From:   Caspar van Vroonhoven [SMTP:[EMAIL PROTECTED]]
> > Sent:   Monday, August 07, 2000 2:20 PM
> > To:     [EMAIL PROTECTED]
> > Subject:        scriptlet question
> >
> > Hi again,
> >
> > I've got a small problem:
> >
> > One of my classes is 'WebMarket'. It has a method getPriceQuoteMoney(..),
> > which returns a string.
> > In one of my (supplied) jsp pages, the following expression is written:
> >
> > <%= WebMarket.getPriceQuoteMoney(currentQuote, PriceQuote.ASK_QUOTE_MONEY,
> > theMarket) %>
> >
> > which returns a certain price, works great, no problems here.
> >
> > Now I want to put this info in a String like this:
> >
> > <% String cost = WebMarket.getPriceQuoteMoney(currentQuote,
> > PriceQuote.ASK_QUOTE_MONEY, theMarket) %>
> >
> > but this returns an error.. what's wrong?
> > I understand the first code line is an expression and that it's being
> > evaluated on the server, but that doesn't mean that the same info isn't
> > available in the scriptlet (2nd line), right?
> >
> > regards and thanks in advance,
> >
> > Caspar van Vroonhoven
> > www.tradingcars.com
> > Amsterdam, the Netherlands
> >
> > P.S: I'll be buying a book on JSP in a few minutes, so my current flow of
> > questions should decrease..
> >
> > ===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> > ===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to