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()

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 PROTECTED] wrote: Folks

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

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

RE: configure default error page in web.xml

2003-09-30 Thread Zhang, Larry (L.)
that to an Action, which could then forward it to a custom page, or rethrow so a Struts 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

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 html:errors. 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

RE: error page

2003-01-13 Thread Zhang, Larry (L.)
() 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 html:errors. Now I have an action form page(say book.jsp