Re: My weblogic 5.1 sp8 isn't able to find web-app_2_2.dtd

2001-02-23 Thread Michael McCallister
No, this doesn't work in Tomcat 3.2.1 either (at least, not in all cases). Here's my situation: Normally, I am behind a firewall that prevents direct connection to the Internet. I can't even resolve external domain names. Now when I start up Tomcat with the struts-example deployed (using th

Re: Missing struts-config_1_0.dtd when not logged on

2001-02-23 Thread Michael McCallister
Struts may include a local copy of the web.xml DTD file, in the case of the non-validating parse of web.xml, nothing causes it to be used instead of the external system identifier. ActionServlet.initServlet() creates a new Digester, never calls register(), and then calls parse(). We probably

logic:present Property Oddity?

2001-02-26 Thread Michael McCallister
I'm using the logic:present tag to avoid displaying a section of a html:form if a particular bean is missing. Given the documentation, I expected to behave something like this (in pseudocode): if (session.getAttribute("myBean") != null && session.getAttribute("myBean").get

Re: form initialization using session

2001-02-27 Thread Michael McCallister
The way this is typically handled is to use an Action to populate the bean. So instead of linking your user directly to the JSP page, you link them to an Action. This Action typically loads the bean and then returns the success mapping, which, in struts-config.xml, you've mapped to the JSP t

Re: (Newbie question) Abstracting/wrapping the HTML tag

2001-02-27 Thread Michael McCallister
This is what I use: Then in Style.jsp, you can do any logic you need to tailor the stylesheet. It's not especially sophisticated, but the bottom line concept is that your stylesheet need not be static text. Mike At 02:43 PM 2/27/2001, you wrote: >We specify CSS files in our JSP output wi

Re: Problem in Struts example (struts-example.war)

2001-03-06 Thread Michael McCallister
Is this really true? I have an Action that doesn't define an input attribute, but does specify a request scope ActionForm. According to the log messages, Struts creates an instance of the form and stores it under the appropriate key before calling my Action.perform() method. In addition, th

Re: Populating a Form

2001-03-07 Thread Michael McCallister
I am strongly in favor of using two actions, one to pre-populate the form, the other to receive the user's input. My rationale is that in substantial forms, there is enough logic involved in each of these activities that lumping them together makes for an overly large and confusing Action. M

Re: URGENT RE: token issue in hyperlink

2001-03-07 Thread Michael McCallister
Here is what I do in a similar situation: Remove Role It's ugly, but it works for now. Notice the single quotes around the page argument. Very important or the JSP parser will get confused by the embedded double quotes in the expression. I've submitted an enhancement request (Bug #874

RE: URGENT RE: token issue in hyperlink

2001-03-07 Thread Michael McCallister
I can't speak about the address bar (different browsers probably behave differently), but if you aren't seeing it in the generated source then there is a problem. To confirm, you don't see the org.apache.struts.taglib.html.TOKEN=4bb7c9e6084fbf88acc2aa976ea9e3 string in your generated

Business Object Bean Persistence Strategies

2001-03-08 Thread Michael McCallister
What strategies or patterns do people use to manage persistence of business object data in a Struts application when there is no EJB layer and there is a desire to keep the business objects as independent of the web portion of the application as possible? Do you use the Struts DataSource and p

Re: Question about struts application model (DataSource, Business Log ic beans)

2001-03-12 Thread Michael McCallister
I resolved this by creating two pieces: First is a class in your business logic package that manages the context required by the business logic beans. This class should be a Singleton and should manage access to resources needed by your business logic beans such as configuration parameters an

Re: Getting the tag to display on multiple lines

2001-03-13 Thread Michael McCallister
Just specify the property attribute of the html:errors tag. So, for example, in your validate function you might have something like: errors.add("roles", new ActionError("error.reqaccess.role.invalid")); to indicate an error in the "roles" field. Using: in your JSP w

Mismatch Between and

2001-03-13 Thread Michael McCallister
Am I the only one who finds it odd that while both and take a "collection" attribute, one expects a run-time expression that evaluates to a Collection and the other takes a String that names a bean in some scope that is a Collection? Shouldn't these two tags play according to the same rules

RE: Mismatch Between and

2001-03-13 Thread Michael McCallister
At 06:21 PM 3/13/2001, Craig wrote: >I also think the current behavior is more useful, and >suggest that we change to match. > >As a nod towards backwards compatibility, how about if we make >smart enough, as a special case, so that if it receives a String it will >still be treated as a bean na

Re: How to display the size of an Collection attribute of a bean?

2001-04-10 Thread Michael McCallister
At 03:33 AM 4/10/2001, you wrote: >I want to display the size of an Collection attribute of a Bean using >Struts taglibs. I can use scriptlet but are there any other ways to do that? > >Regards, >Thai Based on a response from [EMAIL PROTECTED] to a bug I filed, it appears you can use the bean: