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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
15 matches
Mail list logo