dcsimg
Problem with passing on parameters
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   j_w
Posted On:   Monday, July 22, 2002 01:25 AM

" " I use this line of java-code in a jsp-application. When strCurPath contains no spaces, everything goes well. But when strCurPath contains spaces (strCurFile = "My File"), Only the part before the first space will be passed on. String name = (String) paramNames.nextElement(); String[] values = request.getParameterValues(name); for (int i = 0; i < values.length; i++) { if (name.toUpperCase().equals("FILE")) { waarde2 = values[i]; } } System.out.println(waarde2); My Can anyone please help to solve this problem ?    More>>

"
"



I use this line of java-code in a jsp-application.
When strCurPath contains no spaces, everything goes well.
But when strCurPath contains spaces (strCurFile = "My File"),
Only the part before the first space will be passed on.


String name = (String) paramNames.nextElement();

String[] values = request.getParameterValues(name);

for (int i = 0; i < values.length; i++)

{ if (name.toUpperCase().equals("FILE"))

{

waarde2 = values[i];

}

}


System.out.println(waarde2); My


Can anyone please help to solve this problem ?


Thx.
Johan.

   <<Less

Re: Problem with passing on parameters

Posted By:   jyothi_y  
Posted On:   Monday, July 22, 2002 01:43 AM

Hi

try out like this

"
"

try to put ' single quote and nullify the meaning of ' by .
hope this will work.

Regards-JYOTHI.
About | Sitemap | Contact