pcorreya
asked on
get a value from a content string
xmlurl=http%3A%2F%2F127.0. 0.1%2Fmydb s%2Fwipdes ign.nsf%2F agtGetDocs ViewXML%3F openagent% 26u%3Dc956 395%26unam e%3DJoe+Bl ogg%26star t%3D1%26co unt%3D9999 %26viewnam e%3Dfrmgic sissueview %26frmname %3D%26frmt ype%3DView &xslurl=ht tp%3A%2F%2 F127.0.0.1 %2Fmydbs%2 Fwipdesign .nsf%2Fvie wreport.xs l
I do have a method to decode the content string, however I need a method to pass in this content string and get the values for xmlurl and xslurl.
Thanks
pcorreya
I do have a method to decode the content string, however I need a method to pass in this content string and get the values for xmlurl and xslurl.
Thanks
pcorreya
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>>vbandaru is right
? So i'm wrong am i? ;-)
In any case, your comment is redundant - you obviously have not read the question:
>>I do have a method to decode the content string, ...
? So i'm wrong am i? ;-)
In any case, your comment is redundant - you obviously have not read the question:
>>I do have a method to decode the content string, ...
ASKER
Thanks you all for your contribution, however it would be nice to have a class that I can use to pass it the content string and the lookup field and return its value.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
objects, i am getting the message Method split(java.lang.String) not found in class java.lang.String
it only became available in 1.4.
you'll need to use StringTokenizer in previous versions.
you'll need to use StringTokenizer in previous versions.
import java.net.*;
public class extracturls
{
public static void main(String[] args)
{
String contentString="xmlurl=http
String xmlurl= URLDecoder.decode(contentS
String xslurl= URLDecoder.decode(contentS
System.out.println(xmlurl)
System.out.println(xslurl)
}
}