Forums Register Login

URL "protected"

+Pie Number of slices to send: Send
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/////
+Pie Number of slices to send: Send

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.
+Pie Number of slices to send: Send
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!!!
He does not suffer fools gladly. But this tiny ad does:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 956 times.
Similar Threads
IFramePortlet.
Different session ids
Page refresh after Action execute
Stringtokenize problem
Web.XMl in JSP
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:00:55.