This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes [Oracle WebLogic 9] Problem with encoded url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "[Oracle WebLogic 9] Problem with encoded url" Watch "[Oracle WebLogic 9] Problem with encoded url" New topic
Author

[Oracle WebLogic 9] Problem with encoded url

Emilio Meadow
Greenhorn

Joined: Jul 20, 2009
Posts: 19
Hi guys,

I'm working on my local machine with wls 9.2.2 and I have this problem when I call this:

http://localhost:7002/appcontext/ServletName?someParamName=13

everything works, but when I call this:

http://localhost:7002/appcontext/ServletName%3FsomeParamName%3D13

The server is brutally installed on my machine and there's no apache behind.

Any idea?
Tx

e.


- we all get it in the end -
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

This URL is fine and does not need encoding - http://localhost:7002/appcontext/ServletName?someParamName=13

Encoding is required only when characters like a space ' ' or '&' '?' need to be sent to the server and should not be confused with the delimiters that help separate path and query params.

What exception / error condition do you face ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Emilio Meadow
Greenhorn

Joined: Jul 20, 2009
Posts: 19
Thanks for the reply.

First of all, I've read again my post and I think I did a very bad job. Sorry.

This url:

http://localhost:7002/appcontext/ServletName?someParamName=13

works just fine, whereas the analogous one with the characters encoded doesn't.
But it should, right? Even more, the exact same war on a server running on linux (my machine is win) works just fine.
Any suggestion?

tx
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Oracle WebLogic 9] Problem with encoded url
 
Similar Threads
tomcat 3.2 and invoking a servlet
port 7002
just a simple question
problem with running servlets using tomcat3.2.4
problem with the url..