one more thing,
I can't find the old documentation for servlets but if there
request.getParameter("name") return String[] you can downgrade you Java
version
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 13, 2000 3:02 PM
To: JRun-Talk
Subject: Re: Urgent -Doubt
This is the correct implementation of the Servlet API. If you will take
a look at the Servlet API the getParameter method says that it will only
return the first value of that particular param name. The
getParameterValues will return all values for this parameter in a String
array. I am guessing that in JRun 2.3 they were not compliant with
Servlet 2.2. Now JRun3.0 is compliant and that is were you are
experiencing difficulties.
I hope this helps.
You should take a look at the J2EE documentation on Sun's website.
www.javasoft.com
Adam
"Aravind Kumar LNS"
<aravind.lakkavajhula@ To: JRun-Talk
<[EMAIL PROTECTED]>
wipro.com> cc:
Subject: Re: Urgent
-Doubt
11/13/00 03:59 AM
Please respond to
jrun-talk
--------------AAC8A570AFAF1A1C09F5D6E4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Even i encountered the same problem.I would appreciate if somebody can
throw some light on
this.
Even in my case there are lot of areas where we used setXXXX method that
accepts a
string.[Set method corresponding to a widget in UI having different values
but same name]
The string is a list of comma seperated values..........
we tokenized the string and retreived the individual values in our bean set
method.
It worked fine on JRun 2.3.The same code fails in JRun 3.0
When i printed the string i see only the first value and not a list of
values.
Why is this deviation in JRun 3.0 ?i had to modify the setmethod to accept
a string array
instead of a string now?
[EMAIL PROTECTED] wrote:
> Hi,
>
> Using getParameterValues it will definitely work.
> But using getParameter only gives the first value.
> In JRun 2.3 ,OAS etc it will give a comma separated value.
>
> Now it's very difficult to change the whole code. So could you pls tell
me any
> solution .
> Otherwise any idea why Allaire decided to change the behaviour of
getParameter
> in JRun 3.0 than in 2.3?
>
> Would appreciate your valuable reply..
>
> Thanks
> Savant
>
> Dobromir Karamelski <[EMAIL PROTECTED]> on 11/13/2000 05:00:23 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To: JRun-Talk <[EMAIL PROTECTED]>
> cc: (bcc: Savantraj Chennamakal Subramanian/PM4/ISSAP/SES/SONYASIA)
> Subject: RE: Urgent -Doubt
>
> Hi,
>
> JRun can do it off course .. this is part of my working code:
> (I'm using it with JRun Prof SP1)
>
> // text field with unique name
> String DBtable = request.getParameter("DBtable");
>
> // few text boxes with the same names
> String[] DBcolumns = request.getParameterValues("DBcolumn");
>
> for(int i = 0; i<DBcolumns.length;i++){
> bla bla .. some database functions ..
> }
>
> I hope this will help you
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 13, 2000 3:09 AM
> To: JRun-Talk
> Subject: Urgent -Doubt
>
> Hi ,
>
> I have posted this same query 2 times in JRun forun 2 times.But I
couldn't
> get
> any response.
> Could anybody can help me ..Its very urgent since we need to decide
whether
> to
> use JRun 3.0 or any other
> app server because of the same.
>
> Problem.
> Our application running fine in IIS+JRun 2.3 combination and other
servers
> like
> OAS,WebLogic etc.
> But when I try to deploy on JRun 3.0 which we intend to go live is giving
> following problem.
>
> Concider the following form
>
> form name="xxx" action="yyy.jsp"
>
> input type="name" value="A"
> input type="name" value="B"
>
> When I use request.getParameter("name") it is giving "A,B" in all other
app
> server except JRun 3.0, where as it gives only
> the first name ie "A". If I use request.getParameterValues("name") I can
> get
> the value properly in to an array.
>
> Since the development is completed its too late for changing the codes.
>
> Does allaire have any solution for this problem? Kindly respond at the
> earliest.
>
> Thanks & Regards
> Savant
>
>
----------------------------------------------------------------------------
> --
> Archives: http://www.egroups.com/group/jrun-interest/
> Unsubscribe:
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
> or send a message to [EMAIL PROTECTED] with
'unsubscribe'
> in the body.
>
> NOTE: This e-mail is confidential and may also be privileged; under no
> circumstances should you forward it, or copy or disclose its contents, to
> any other person without the prior consent of the sender. If you are not
an
> intended recipient of this e-mail, please notify us immediately.
> Internet communications are not secure and subject to possible data
> corruption, either accidentally or on purpose, and may contain viruses.
> Furthermore e-mail is an informal and often abbreviated method of
> communication. For these reasons, it will normally be inappropriate to
rely
> on any information or advice contained herein without also discussing it
> with the sender.
>
> (The note below is a Turkish version of the above disclaimer)
>
> NOT: Bu elektronik posta mesaji gizli olup, ayni zamanda ayricalikli
> olabilir; sartlar ne olursa olsun, gndericinin nceden onayini almaksizin,
> baskalarina iletmemeniz, ierigini kopyalamamaniz veya baskalarina
> aiklamamaniz gerekmektedir. Bu mesajin muhatabi degilseniz, bu durumu
> derhal tarafimiza bildirmenizi rica ederiz.
> Internet zerinden yapilan iletisim gvenli olmayip, verilerin kasten veya
> tesadfen bozulmasi ve virs iermesi olasiligi vardir. Ayrica, elektronik
> posta, resmi olmayan ve ogunlukla kisaltilmis bir iletisim yntemidir.
> Dolayisiyla, burada yer alan bilgi veya tavsiyelere, gnderici ile ayrica
> grsmeden gvenmeniz normal sartlar altinda uygun olmayacaktir.
>
>
----------------------------------------------------------------------------
--
> Archives: http://www.egroups.com/group/jrun-interest/
> Unsubscribe:
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
> or send a message to [EMAIL PROTECTED] with
'unsubscribe' in
> the body.
>
>
----------------------------------------------------------------------------
--
> Archives: http://www.egroups.com/group/jrun-interest/
> Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
> or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
--------------AAC8A570AFAF1A1C09F5D6E4
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Even i encountered the same problem.I would appreciate if somebody can
throw some light on this.
<br>Even in my case there are lot of areas where we used setXXXX method
that accepts a string.[Set method corresponding to a widget in UI having
different values but same name]
<br>The string is a list of comma seperated values..........
<br>we tokenized the string and retreived the individual values in our
bean set method.
<br>It worked fine on JRun 2.3.The same code fails in JRun 3.0
<br>When i printed the string i see only the first value and not
a list of values.
<br>Why is this deviation in JRun 3.0 ?i had to modify the setmethod to
accept a string array instead of a string now?
<br>
<br>
<p>[EMAIL PROTECTED] wrote:
<blockquote TYPE=CITE>Hi,
<p>Using getParameterValues it will definitely work.
<br>But using getParameter only gives the first value.
<br>In JRun 2.3 ,OAS etc it will give a comma separated value.
<p>Now it's very difficult to change the whole code. So could you
pls tell me any
<br>solution .
<br>Otherwise any idea why Allaire decided to change the behaviour of
getParameter
<br>in JRun 3.0 than in 2.3?
<p>Would appreciate your valuable reply..
<p>Thanks
<br>Savant
<p>Dobromir Karamelski <[EMAIL PROTECTED]> on 11/13/2000 05:00:23
PM
<p>Please respond to [EMAIL PROTECTED]
<p>To: JRun-Talk <[EMAIL PROTECTED]>
<br>cc: (bcc: Savantraj Chennamakal
Subramanian/PM4/ISSAP/SES/SONYASIA)
<br>Subject: RE: Urgent -Doubt
<p>Hi,
<p>JRun can do it off course .. this is part of my working code:
<br>(I'm using it with JRun Prof SP1)
<p> // text field with unique name
<br> String DBtable = request.getParameter("DBtable");
<p> // few text boxes with the same names
<br> String[] DBcolumns = request.getParameterValues
("DBcolumn");
<p> for(int i = 0; i<DBcolumns.length;i++){
<br> bla bla .. some database functions
..
<br> }
<p>I hope this will help you
<p>-----Original Message-----
<br>From: [EMAIL PROTECTED] [<a href="mailto:[EMAIL PROTECTED]
">mailto:[EMAIL PROTECTED]</a>]
<br>Sent: Monday, November 13, 2000 3:09 AM
<br>To: JRun-Talk
<br>Subject: Urgent -Doubt
<p>Hi ,
<p>I have posted this same query 2 times in JRun forun 2 times.But
I couldn't
<br>get
<br>any response.
<br>Could anybody can help me ..Its very urgent since we need to decide
whether
<br>to
<br>use JRun 3.0 or any other
<br>app server because of the same.
<p>Problem.
<br>Our application running fine in IIS+JRun 2.3 combination and
other
servers
<br>like
<br>OAS,WebLogic etc.
<br>But when I try to deploy on JRun 3.0 which we intend to go live is
giving
<br>following problem.
<p>Concider the following form
<p> form name="xxx" action="yyy.jsp"
<p> input type="name" value="A"
<br> input type="name" value="B"
<p>When I use request.getParameter("name") it is giving "A,B" in all other
app
<br>server except JRun 3.0, where as it gives only
<br>the first name ie "A". If I use request.getParameterValues
("name")
I can
<br>get
<br>the value properly in to an array.
<p>Since the development is completed its too late for changing the codes.
<p>Does allaire have any solution for this problem? Kindly respond at the
<br>earliest.
<p>Thanks & Regards
<br>Savant
<p>
----------------------------------------------------------------------------
<br>--
<br>Archives: <a href="http://www.egroups.com/group/jrun-interest/
">http://www.egroups.com/group/jrun-interest/</a>
<br>Unsubscribe:
<br><a href="
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_t
alk</a>
<br>or send a message to [EMAIL PROTECTED] with
'unsubscribe'
<br>in the body.
<p>NOTE: This e-mail is confidential and may also be privileged; under
no
<br>circumstances should you forward it, or copy or disclose its contents,
to
<br>any other person without the prior consent of the sender. If you are
not an
<br>intended recipient of this e-mail, please notify us immediately.
<br>Internet communications are not secure and subject to possible data
<br>corruption, either accidentally or on purpose, and may contain viruses.
<br>Furthermore e-mail is an informal and often abbreviated method of
<br>communication. For these reasons, it will normally be inappropriate
to rely
<br>on any information or advice contained herein without also discussing
it
<br>with the sender.
<p>(The note below is a Turkish version of the above disclaimer)
<p>NOT: Bu elektronik posta mesaji gizli olup, ayni zamanda ayricalikli
<br>olabilir; sartlar ne olursa olsun, gndericinin nceden onayini
almaksizin,
<br>baskalarina iletmemeniz, ierigini kopyalamamaniz veya baskalarina
<br>aiklamamaniz gerekmektedir. Bu mesajin muhatabi degilseniz, bu durumu
<br>derhal tarafimiza bildirmenizi rica ederiz.
<br>Internet zerinden yapilan iletisim gvenli olmayip, verilerin kasten
veya
<br>tesadfen bozulmasi ve virs iermesi olasiligi vardir. Ayrica, elektronik
<br>posta, resmi olmayan ve ogunlukla kisaltilmis bir iletisim yntemidir.
<br>Dolayisiyla, burada yer alan bilgi veya tavsiyelere, gnderici ile
ayrica
<br>grsmeden gvenmeniz normal sartlar altinda uygun olmayacaktir.
<p>
----------------------------------------------------------------------------
--
<br>Archives: <a href="http://www.egroups.com/group/jrun-interest/
">http://www.egroups.com/group/jrun-interest/</a>
<br>Unsubscribe:
<br><a href="
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_t
alk</a>
<br>or send a message to [EMAIL PROTECTED] with
'unsubscribe'
in
<br>the body.
<p>
----------------------------------------------------------------------------
--
<br>Archives: <a href="http://www.egroups.com/group/jrun-interest/
">http://www.egroups.com/group/jrun-interest/</a>
<br>Unsubscribe: <a href="
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_t
alk</a>
<br>or send a message to [EMAIL PROTECTED] with
'unsubscribe'
in the body.</blockquote>
</html>
--------------AAC8A570AFAF1A1C09F5D6E4--
----------------------------------------------------------------------------
--
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.
----------------------------------------------------------------------------
--
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.
NOTE: This e-mail is confidential and may also be privileged; under no
circumstances should you forward it, or copy or disclose its contents, to
any other person without the prior consent of the sender. If you are not an
intended recipient of this e-mail, please notify us immediately.
Internet communications are not secure and subject to possible data
corruption, either accidentally or on purpose, and may contain viruses.
Furthermore e-mail is an informal and often abbreviated method of
communication. For these reasons, it will normally be inappropriate to rely
on any information or advice contained herein without also discussing it
with the sender.
(The note below is a Turkish version of the above disclaimer)
NOT: Bu elektronik posta mesaji gizli olup, ayni zamanda ayricalikli
olabilir; sartlar ne olursa olsun, g�ndericinin �nceden onayini almaksizin,
baskalarina iletmemeniz, i�erigini kopyalamamaniz veya baskalarina
a�iklamamaniz gerekmektedir. Bu mesajin muhatabi degilseniz, bu durumu
derhal tarafimiza bildirmenizi rica ederiz.
Internet �zerinden yapilan iletisim g�venli olmayip, verilerin kasten veya
tesad�fen bozulmasi ve vir�s i�ermesi olasiligi vardir. Ayrica, elektronik
posta, resmi olmayan ve �ogunlukla kisaltilmis bir iletisim y�ntemidir.
Dolayisiyla, burada yer alan bilgi veya tavsiyelere, g�nderici ile ayrica
g�r�smeden g�venmeniz normal sartlar altinda uygun olmayacaktir.
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.