Using java you can (in a logic block?) you can use ((HttpRequest)
request).getParameter(name).

Use the Integer class to convert a String to an int in java:
Integer.parseInt(string)

however, be careful, if the String is not a properly formed int it will
throw an exception. Best to wrap it in a try/catch block, and it's even
safer to trim the string first, eg
try{
 int i = Integer.parseInt(string.trim());
}catch(Exception e){
 ... handle error
}

Regards,

Anthony Aldridge
Lead Application developer

Managed Intranet Hosting
Personal GDP: 325-8338
MIH Hotline: 876-1300





"Orgalist" <[EMAIL PROTECTED]> on 16/08/2001 17:53:13

Please respond to [EMAIL PROTECTED]

To:   "cocoon-users" <[EMAIL PROTECTED]>
cc:
Subject:  [C2] substitute for xsp-request


is there a class in Cocoon2 I could use to
get parameters sent by a form instead of the
tag <xsp-request:get-parameter> ?

thanks

C.

ps does somebody knows a class which can convert string
to int ?


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>







---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to