FW: Nested properties in action forms

2001-07-17 Thread Daniel Steinberg
-Original Message- From: Daniel Steinberg Sent: Tuesday, July 17, 2001 10:32 AM To: '[EMAIL PROTECTED]' Subject: Nested properties in action forms The Struts documentation states that Action Forms can contain nested properties. When is a nested bean

RE: NoSuchMethodError with Weblogic 6.0 sp2

2001-08-06 Thread Daniel Steinberg
WebLogic includes a JAXP 1.0 implementation in its weblogic.jar file. The startup script puts weblogic.jar in the CLASSPATH ahead of anything in your WEB-INF/lib directory. So you will need to modify the startup script to put a JAXP 1.1 implementation ahead of weblogic.jar. -Original

RE: iPlanet OT: Why do I have to add jars in WEB-INF/lib to my classpath?

2001-08-21 Thread Daniel Steinberg
Picking up these classes and jars for free is part of the Servlet 2.3 spec (which has still not been officially released). Tomcat 4.0 supports this spec, as does WebLogic 6.1. Many Servlet 2.2-compliant web servers (such as Tomcat 3.2.1 and WebLogic 5.1) create Servlet 2.3-like directory

RE: How do deal with JPEG in JSP's

2001-08-28 Thread Daniel Steinberg
JSP's are designed to display textual data only. The out object is a PrintWriter, which deals only with character data. For binary data, such as images, you need to use a ServletOutputStream instead. A recent JDC Newsletter presented an example in which getOutputStream() was called from within

Using Struts with filters

2002-02-13 Thread Daniel Steinberg
I would like to put my authorization logic in a servlet filter. If authorization fails, I would like to display an error page by forwarding to a JSP. I would like to look up this JSP name just as I would while performing a Struts action. Unfortunately, the forward mappings (ActionForwards)

RE: Using Struts with filters

2002-02-18 Thread Daniel Steinberg
I guess I can answer my own question. I do not need override ActionServlet.initOther() to attach the ActionForwards object to the servlet context, because Struts does it already as Action.FORWARDS_KEY. -Original Message- From: Daniel Steinberg [mailto:[EMAIL PROTECTED]] Sent: Wednesday

Business logic beans

2002-02-20 Thread Daniel Steinberg
The Struts User's Guide suggests that business logic be encapsulated in beans. Business logic modules are generally stateless, so one would generally implement them as static utility classes (with only static methods) or singletons (with private constructors and static factory methods), neither

RE: Getting a ServletContext

2002-03-05 Thread Daniel Steinberg
I would presume that your code will not even compile. The correct method name is getServletContext(). -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 9:57 AM To: Struts Users Mailing List Subject: Getting a ServletContext Hey guys/gals =)