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 Servlets and the fly likes 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 » Java » Servlets
Bookmark "URL "protected"" Watch "URL "protected"" New topic
Author

URL "protected"

Ricardo Gil
Greenhorn

Joined: Aug 06, 2001
Posts: 14
my url is http://test.jsp?cod=3
it's ok!
but if anybody change it to test.jsp?sdjhsds, then return a error!
how i can "protect" it, returning my default error: "parameters incorrects"
tnks/////

** SCJP1.4 **
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19


and provide an error page. That's one way to do it. The key here is that if the parameter wasn't sent, it will always be null.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ricardo Gil
Greenhorn

Joined: Aug 06, 2001
Posts: 14
ok man!!!
it's work,,, and at top of my jsp i put
<%@ page errorPage="index.jsp" %>
and when error occurs it redirect to index page!!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: URL "protected"
 
Similar Threads
Stringtokenize problem
Web.XMl in JSP
Page refresh after Action execute
Different session ids
IFramePortlet.