Link to home
Start Free TrialLog in
Avatar of srikanthradix
srikanthradixFlag for United States of America

asked on

help me with this issue

I am constructing a url like below, if i click on a link(title), it should point to some page. The following is what i have done. The browser is unable to resolve the,  "<%wpsURL.write(out);%> it seems. If i click on the link, i am getting page not available and in log file, its giving error msg like below. how could i resolve this..please help me on this....


Error msg in log:
Internal Server Error.
 Exception Message: [java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "wp"
      at java.net.URLDecoder.decode(URLDecoder.java(Compiled Code))
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
      at





code snippet:

 sb.append("<wps:urlGeneration contentNode=\"somename\" portletWindowState=\"Normal\">");
                 sb.append(" <wps:urlParam name=\"rowID\" value=\"").append("param1")append("\"/>");
             sb.append(" <wps:urlParam name=\"table\" value=\"").append("param2").append("\"/>");
                             sb.append(" \">").append(clickme).append("");
                   sb.append("</wps:urlGeneration>");

Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

>>For input string: "wp"

What is the value of String 'wp'?
The following looks wrong btw:

>>sb.append(" \">").append(clickme).append("");

Try getting rid of it altogether
Avatar of srikanthradix

ASKER

actually that is wps mean tag prefix name..
this is the code snippet:
can u check once...



sb.append("");
                 sb.append(" ");
             sb.append(" ");
           //sb.append(" ").append(title).append("");
               //sb.append(" ").append(title).append("");
                   sb.append(" \">").append(title).append("");
                   sb.append("");
sb.append("");
                 sb.append(" ");
             sb.append(" ");
                 sb.append(" \">").append(title).append("");
                   sb.append("");
sb.append("");
                 sb.append(" ");
             sb.append(" ");
                 sb.append(" \">").append(title).append("");
                   sb.append("");
Can you just post the value of sb.toString?
>> ">Spirent TestCenter Automation Sales FAQ

Looks wrong. Not sure anything should be there but probably not an angle bracket or quote
<%wpsURL.write(out);%> .....so how can  i do it in alternate way? to eliminate the <(angle bracket)?
Try getting rid of the line i mentioned before
>> sb.append(" \">").append(clickme).append("");

looks to me like a syntax error
hi..can u check the attached file..please......
attach.txt
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial