Question About Modules

2002-11-20 Thread Madel,Kurt
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

RE: Question About Modules

2002-11-20 Thread Madel,Kurt
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

RE: Question About Modules

2002-11-20 Thread Madel,Kurt
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

RE: getting web app context name in Struts

2002-11-19 Thread Madel,Kurt
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:

RE: stylesheets with jsp's under WEB-INF?

2002-11-18 Thread Madel,Kurt
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'

RE: Struts Tags vs. JSTL

2002-11-14 Thread Madel,Kurt
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

RE: Struts Tags vs. JSTL

2002-11-14 Thread Madel,Kurt
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

RE: Struts Tags vs. JSTL

2002-11-14 Thread Madel,Kurt
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

RE: Struts Tags vs. JSTL

2002-11-14 Thread Madel,Kurt
- 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

RE: Return to same JSP

2002-11-07 Thread Madel,Kurt
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

RE: html:link with multiple parameters

2002-11-04 Thread Madel,Kurt
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

RE: html:option - is there a selected option attribute?

2002-11-04 Thread Madel,Kurt
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

RE: Can forward action point to tiles definition?

2002-11-01 Thread Madel,Kurt
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:

Is there a better way to dispatch to another servlet from an Action

2002-10-31 Thread Madel,Kurt
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws Exception, java.io.IOException { HttpSession

RE: Sorting within an Iterate tag

2002-10-30 Thread Madel,Kurt
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

RE: [Tiles] Accessing layout attribute from a page (tile)

2002-10-30 Thread Madel,Kurt
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

RE: Can't make a link on my jsp to submit

2002-10-30 Thread Madel,Kurt
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

RE: defining style class with the iterate tag

2002-10-29 Thread Madel,Kurt
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]

RE: Select html tag and it's property

2002-10-29 Thread Madel,Kurt
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:

RE: Struts Validator for multiple Selects

2002-10-29 Thread Madel,Kurt
-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

RE: [OT] Re: Javascripting

2002-10-29 Thread Madel,Kurt
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

RE: Container Managed Authentication and roles attribute on actio n

2002-10-29 Thread Madel,Kurt
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

RE: Can format strings be used with html:text input fields

2002-10-29 Thread Madel,Kurt
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

RE: Submit Using html:link and html:javascript

2002-10-28 Thread Madel,Kurt
/ /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

RE: Submit Using html:link and html:javascript

2002-10-28 Thread Madel,Kurt
: 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

RE: Submit Using html:link and html:javascript

2002-10-28 Thread Madel,Kurt
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

Struts Validator for multiple Selects

2002-10-28 Thread Madel,Kurt
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/

RE: Struts Validator for multiple Selects

2002-10-28 Thread Madel,Kurt
/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

RE: does javascript have a place in mvc struts

2002-10-28 Thread 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

Submit Using html:link and html:javascript

2002-10-24 Thread Madel,Kurt
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

RE: Third party user authentication w/ cookies, custom tag

2002-10-24 Thread Madel,Kurt
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)

RE: embedding email address in html:link

2002-10-24 Thread Madel,Kurt
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 /

RE: Container Managed Security and Dynamic Role variables

2002-10-18 Thread Madel,Kurt
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

Container Managed Security and Dynamic Role variables

2002-10-18 Thread Madel,Kurt
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

Anyone Using DynaValidatorForm and Tiles with success?

2002-10-15 Thread Madel,Kurt
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]

RE: Anyone Using DynaValidatorForm and Tiles with success?

2002-10-15 Thread Madel,Kurt
(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

RE: Arrays and forms

2002-10-10 Thread Madel,Kurt
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

RE: Need to make Logic Tag

2002-10-08 Thread Madel,Kurt
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

RE: Need to make Logic Tag

2002-10-08 Thread Madel,Kurt
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,

RE: [OT] Container Wars

2002-10-08 Thread Madel,Kurt
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

RE: Using CheckLogin tag from within tiles

2002-10-08 Thread Madel,Kurt
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

Multiple selected for html:select

2002-10-03 Thread Madel,Kurt
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 /

RE: Multiple selected for html:select

2002-10-03 Thread Madel,Kurt
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

RE: Problem with Jrun

2002-10-03 Thread 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