RE: Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Zhang, Larry (L.)
() or getHeaders() methods because the developer is setting them. The HttpServletResponse interface has addHeader() and addXXXHeader() methods to add headers to the response. There is also the containsHeader() method which returns a boolean. -Richard --- "Zhang, Larry (L.)" <[EMAIL PROTECTE

Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Zhang, Larry (L.)
Folks, this may be an off topic question, but I am curious to understand why. We know that Http protocol has features such as Headers. Both response and request have HTTP headers. It is easy to get the headers in J2EE from a HttpServletRequest objects using getHeader() and/or getHeaders() method

RE: declaring action mappings at runtime

2003-10-29 Thread Zhang, Larry (L.)
If you want to find out which will be next page to go, you can create an ActionForward object and customize the parameter. -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: Re: declaring action mappin

RE: configure default error page in web.xml

2003-09-30 Thread Zhang, Larry (L.)
uts exception handler could > grab it. > > -----Original Message- > From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 30, 2003 3:13 PM > To: Struts Users Mailing List > Subject: configure default error page in web.xml > > > HI, > > I have a req

configure default error page in web.xml

2003-09-30 Thread Zhang, Larry (L.)
HI, I have a request to catch a Java Exception in the servlet and display an error page. The functionality requires that we display different error message for different exception. A way to do this is to put try and catch logic in servlet, and if an Exception is caught, I do request.setAttribu

RE: error page

2003-01-13 Thread Zhang, Larry (L.)
pty or not. Test for titleField.length() > 0 rather than != null. Mark -Original Message- From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 12:37 PM I am using struts 1.1b3. When the validation fails, the error can be shown on the page using . Now I have a

error page

2003-01-13 Thread Zhang, Larry (L.)
I am using struts 1.1b3. When the validation fails, the error can be shown on the page using . Now I have an action form page(say book.jsp, on this page there is a required field-- book title), I want an error.jsp, when the validation (example, title field is null) fails, the error page is inv