My understanding is that you have to use an extension mapping in order to
use the Module functionality, i.e. '*.do'
What are people doing if they need to serve say a '.pdf' from an action?
That is, my pdf is dynamic and requires the use of the same DAO's that I use
for my jsp pages. Sure you can
Anyone using modules and going through an action to generate dynamic
database driven pdf's??? Anyone .
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: Madel,Kurt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 11:27 AM
To: 'Struts Users
path=/PDF/static.pdf /
/action
Since I have no static pdf's I am going to steal your idea.
Thanks
Edgar
-Original Message-
From: Madel,Kurt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 2:46 PM
To: 'Struts Users Mailing List'
Subject: RE: Question
html:rewrite page= / will give you the context, so try:
link href=html:rewrite page= //styles.css rel=stylesheet
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 4:51 PM
To:
Hey Wendy,
This seems to be a good way of getting the context relative path without
having to worry about where the page that is referencing the stylesheet is
located (I believe I saw it on Ted Husted's site):
link rel='stylesheet' href='html:rewrite
page=//stylesheets/defaultNS4.css'
The nightly build has exactly what you are looking for in the contrib
folder. Here is the readme:
Struts-EL extension
===
Introduction
This subproject is an extension of the Struts tag library. Each JSP custom
tag
in this library is a subclass of an associated
Great! Thanks for the info. One problem, I can't seem to find this on the
Struts site. Can you send me a URL?
Thanks,
JOHN
-Original Message-
From: Madel,Kurt [mailto:kmadel;csmi.com]
Sent: Thursday, November 14, 2002 9:03 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts Tags vs
The Struts-el tags are great except there is no role parameter for the c:if
... tage? logic:present / was not ported.
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: flare [mailto:flare;flare.it]
Sent: Thursday, November 14, 2002 1:39 PM
To: Struts Users
-
From: Madel,Kurt [mailto:kmadel;csmi.com]
Sent: Thursday, November 14, 2002 10:45 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts Tags vs. JSTL
The Struts-el tags are great except there is no role
parameter for the c:if
... tage? logic:present / was not ported.
Kurt Madel
Use your action mapping as your input path. For example:
action
path=/partEdit
name=partForm
type=com.csmi.doe.core.controller.actions.project.EditPartAction
scope=request
validate=false
forward name=Success path=tiles.project.editPart/
forward name=failure
per an earlier post today:
You *should* be able to use the Map approach. Simply build a map whose keys
are the expected parameter names and the corresponding values are the data
you wish to send. For example:
html:link forward=foo property=paramsClick Me!/html:link
In your form bean, the
html:select property=managerids size=4 multiple=true
html:options collection=managerList property=id
labelProperty=name /
/html:select
managerids is a String[] of ids that may contain many, one or none of the
id's contained in the managerList collection.
Kurt Madel
I believe that might work, but I know that the following works:
action
path=/welcome
type=org.apache.struts.tiles.actions.NoOpAction
scope=request
validate=false
forward name=success path=tiles.welcome/
/action
-Original Message-
From: Zeltser, Mark
To:
public ActionForward execute( ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response )
throws Exception, java.io.IOException {
HttpSession
Just do the sort in your action...
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: Peter S. Hamlen [mailto:phamlen;mail.com]
Sent: Tuesday, October 29, 2002 12:25 PM
To: Struts Users Mailing List
Subject: Sorting within an Iterate tag
I'm sure other
tiles:getAsString name=x/
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: Hue Holleran [mailto:hueh;softwareskills.net]
Sent: Wednesday, October 30, 2002 12:02 PM
To: Struts Users Mailing List (E-mail)
Subject: [Tiles] Accessing layout attribute from a page
try document.forms[0].submit
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: IS Struts [mailto:Struts;FIRSTTRUST.COM]
Sent: Wednesday, October 30, 2002 4:25 PM
To: [EMAIL PROTECTED]
Subject: Can't make a link on my jsp to submit
Hello:
I am trying to make
If you are using 1.1b2 then the iterate tag has an indexed attribute. For
you example below:
logic:iterate name=mailFilterForm property=registredList id=mailView
indexId=index
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: [EMAIL PROTECTED]
A String[] will work. We use a string array to represent the id's of some
objects and then in our model assign the objects according to the ids in the
array.
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: Rajesh Kanade [mailto:rkanade;bigates.com]
Sent:
-Original Message-
From: Madel,Kurt [mailto:kmadel;csmi.com]
Sent: Monday, October 28, 2002 4:24 PM
To: 'Struts Users Mailing List'
Subject: Struts Validator for multiple Selects
We have a multiple select that is required. The following works on server
side, but not client side:
form
Some people are creating apps for controlled environments.
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com]
Sent: Tuesday, October 29, 2002 10:24 AM
To: [EMAIL PROTECTED]
Subject: [OT] Re: Javascripting
Make
Another way is to check the role from the action:
request.isUserInRole(role);
On false, forward to your error page. Not as convenient as using the Struts
config, but much more definitive.
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: Jarnot Voytek
Sure would beat formatting in your action!
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: Karr, David [mailto:david.karr;attws.com]
Sent: Tuesday, October 29, 2002 5:35 PM
To: 'Struts Users Mailing List'
Subject: RE: Can format strings be used with
/
/html:link
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: Madel,Kurt [mailto:kmadel;csmi.com]
Sent: Thursday, October 24, 2002 9:55 AM
To: 'Struts Users Mailing List'
Subject: Submit Using html:link and html:javascript
This may seem somewhat trivial. Never
: Madel,Kurt [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Submit Using html:link and html:javascript
Date: Mon, 28 Oct 2002 14:54:47 -0500
If anyone is interested, I figured this out. Of course this is a basic
You can use an input element for image submit buttons. You don't need a
link around an image.
David
From: Madel,Kurt [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Submit Using html:link
We have a multiple select that is required. The following works on server
side, but not client side:
form name=milestoneDetailForm
field
property=mspersonsIds[0]
depends=required
arg0 key=label.milestone.mspersonsIds/
/tr
/table
html:link href=# onclick=javascript:if
(document.forms[0].onsubmit())document.forms[0].submit()
Add
/html:link
/html:form
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: Madel,Kurt
I believe that there is not exactly a consensus. However, the Struts
Validator makes it easy to incorporate both. Additionally, many will check
the data again in the model layer before it is persisted (i.e. inserted into
a database).
On the model layer, I use O/R mapping that helps with data
This may seem somewhat trivial. Never the less, look and feel is very
important to a web site. Before using Struts, we have always used
hyperlinks to submit forms. I am able to submit a Struts html:form with
an html:link tag, but it bypasses the client side validation created by
the Validation
You could use a Servlet Filter, and apply it to whatever pages necessary. I
am using a filter to check to see if the current user has a User bean in
their session; if they don't I create it. If they do, then the filter just
sends the request on to Struts.
Kurt Madel
Programmer, CSMi
(703)
As your error suggests, you can't put a Struts tag in as the parameter of
another Struts tag, but you can add a Struts tags as a parameter of a
regular html tag. This should work:
logic:notEmpty name=contact property=email
a href=mailto: bean:write name=contact property=email filter=true
/
To: Struts Users Mailing List
Subject: Re: Container Managed Security and Dynamic Role variables
2002. október 17. 13:46 dátummal Madel,Kurt ezt írtad:
bean:define id=pids name=projectDetailForm property=managerpids /
logic:present role=ADMIN,%=pids%
html:link page=/action
I am using a customized version of JRun 4's container manager security. The
app that I am creating requires that projects with a given person_id (pid)
associated to them be editable by those persons. By customizing the
security class for JRun, I was able to add an individual's person_id to
their
Dynamic JavaScript does not seem to be working with this combination.
Anyone had success with this?
Thanks
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
(703) 823-4300 ext. 170
-Original Message-
From: Madel,Kurt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 3:44 PM
To: 'Struts Users Mailing List'
Subject: Anyone Using DynaValidatorForm and Tiles with success?
Dynamic JavaScript does not seem to be working
just make your form bean property of type String[]. Then for example, a
multi-select will return a String array on submit.
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: Marc AMIR-TAHMASSEB [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002
use logic:present role=client
blah, blah
/logic:present
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: Smith, Johnathan M. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 8:18 AM
To: '[EMAIL PROTECTED]'
Subject: Need to make Logic
If you are using container managed security, then all you need to use is the
logic:present role=role1, role2 tag. It is already part of Struts 1.1
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
Have you used JRun 4, it is stable and quite fast.
I like tomcat, but it is my understanding that the JSP compiler still leaks
memory. I don't like to have to worry about precompiling my jsp pages.
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: [EMAIL
What about JAAS?
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 12:30 PM
To: Struts Users Mailing List
Subject: RE: Using CheckLogin tag from within tiles
On Tue, 8 Oct
I have two collections, 1 is of managers that need to be preselected and the
other is managers that can be selected from. Here is my jsp code:
html:select property=managers[0].id size=4 multiple=true
html:options collection=managerList property=person_id
labelProperty=person.name /
Person class:
public String toString()
{
return _id.toString();
}
Person.id is what I want to compare to managerList.person_id, and this
works! managers is still a Vector in a DynaActionForm. Finally, I am
starting to pick this stuff up.
-Original Message-
From: Madel,Kurt
For what it is worth, Struts 1.1b2 is working great with JRun 4.
Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 4:02 PM
To: 'Struts Users Mailing List'
Subject: RE: Problem with
44 matches
Mail list logo