Hi,
I want to read global info (like global.asa in asp) from some static text
file. but it also contains some imp info which i dont want to give to
client, so want to do some encryption on it. Is there any facility in
JSP/Java Beans that i will encrypt that text file and decrypt while reading
from my beans..
Thanx in advance
Hamid Hassan
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of BERWART Thierry
Sent: Friday, April 06, 2001 11:29 AM
To: [EMAIL PROTECTED]
Subject: Re: How can I catch an JSP error ????
Thanks you Nils !
It seems to be a good alternative...
but i loose the benefit of the setProperty method...
Yes sure but my boss don't want to use javascript for field verification :/
I found something on http://www.jsptut.com/Taglibs.html
It talk about Blazix server. This server have a tag libraries which allows
to use a catch...
<blx:setProperty name="user"
property="*"
onError="errorHandler"/>
<%
if ( haveError ) {
out.println( errors.toString());
pageContext.include( "GetName.jsp" );
} else
pageContext.forward( "NextPage.jsp" );
%>
I think it can be interresting ...
Thierry
Nils wrote :
or with JSP
try {
int age = Interger.parseInt(request.getParameter("age"));
bean.setAge(age);
}
ctach (NumberFormatException e) {
error ="Age not a number!";
}
So you cant use the setProperty tags to set the bean because it will use
parseInt but not catch the exception for you.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets