Re: usebean tag

2001-04-03 Thread Ing. Nicola Folino

Dear Alessandro,
the problem is in the page where I use the tag. I  miss that value just
there and I save the dipartimentoQuery in the session. The mai problem is
with the jsp:setProperty tag. It saves string values, but losts Integers!
You're Italian, aren't you? I'm from Cosenza...
Thanks...
- Original Message -
From: "Alex 'Kazuma' Garbagnati" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Friday, March 30, 2001 8:51 PM
Subject: Re: usebean tag



 This is the code:
 
 jsp:useBean id="dipartimentoQuery"
 class="it.unical.amministrazione.np.DipartimentoQuery" /
 jsp:setProperty name="dipartimentoQuery" property="*" /
 
 In my jsp page this code would take the values from a previous form and
 take them in my bean, but I lost the Integer value idUniversita (it was
in
 a select tag). So I had to take it by a
 request.getParameer("idUniversita")... Is this an Orion bug, is this a
 Nicola's bug? Too strange!
 Thanks in advance...

 Nicola,
 When you use the jsp:useBean tag with that syntax, you are inserting
that
 bean in the page scope. Once the page is completed, that scope will be
 cleaned up and your bean will be lost, so, if in a previous page you have
 set the idUniversita member, it will be lost. Try inserting that bean in
 the session scope, for example, so it will be accessible to the next page
 and you will not use that value.

  Best Regards,
  Kazuma


 Cos'e' il genio. E' fantasia intuizione, colpo d'occhio e velocita'
 d'esecuzione.
 (Amici Miei)

 ---
 Alessandro A. 'Kazuma' Garbagnati
 http://www.kazuma.net/   ICQ UIN: 1600386
 Mountain View, CA, 94043 - USA






Re: JRun again...

2001-03-30 Thread Ing. Nicola Folino



I've forgotten to put " only on the mail, not in 
the code... But you're right on Orion vs JRun.
Thanks

  - Original Message - 
  From: 
  Patrik Andersson 
  To: Orion-Interest 
  Sent: Friday, March 30, 2001 11:17 
  AM
  Subject: SV: JRun again...
  
  YOu 
  have forgotten that in the world of xml, you cannot forget 
  ".
  
  jsp:forward page="%= back[0] %" /
  
  would probably work.
  And 
  while you're at it. Don't try to hard using JRun when Orion does everything so 
  much better.
  
  regards,
  Patrik Andersson
  
-Ursprungligt meddelande-----Från: Ing. Nicola Folino 
[mailto:[EMAIL PROTECTED]]Skickat: den 30 mars 2001 
10:22Till: Orion-InterestÄmne: JRun 
again...
I tried this code in a jsp page on JRun 
3.0:

jsp:forward page=%=back[0]% 
/

where back[0] is a String variable. And I get a 
parse exception! I found on JSP specification 1.1 that line of code is 
correct and in fact it runs well on Orion.
Does someone knows some other deviations of 
JRun from j2ee 1.2.1 standard?
Thanks.
P.S.: JRun accepts also

  %=pippo;% 
  %=pippo%
but the first is wrong to actual 
specifications


usebean tag

2001-03-30 Thread Ing. Nicola Folino



This is the code:

jsp:useBean id="dipartimentoQuery" 
class="it.unical.amministrazione.np.DipartimentoQuery" 
/jsp:setProperty name="dipartimentoQuery" property="*" 
/

In my jsp page this code would take the values from 
a previous form and take them in my bean, but I lost the Integer value 
idUniversita (it was in a select tag). So I had to take it by a 
request.getParameer("idUniversita")... Is this an Orion bug, is this a Nicola's 
bug? Too strange!
Thanks in advance...