error when browsing tomcat without http

W

William

When I browse tomcat jsp page with http://localhost:8080 in IE, it
works perfectly fine. However, when I hit the page with
localhost:8080 (with no http:// protocol specified in IE), it returned
"invalid syntax error".

How do I make it to make no matter user types the address with http://
and without it?

Thanks a lot!
 
E

Erwin Moller

William said:
When I browse tomcat jsp page with http://localhost:8080 in IE, it
works perfectly fine. However, when I hit the page with
localhost:8080 (with no http:// protocol specified in IE), it returned
"invalid syntax error".

How do I make it to make no matter user types the address with http://
and without it?

Thanks a lot!

You don't.
It is a browser-thing.
When you type something.somewhere.com, IE ASSUMES that you do this on port
80, the HTTP-port, so it makes this into http://something.somewhere.com

When you want port 808, just keep adding :8080

Good luck,
Erwin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top