RE: Inside WEB-INF or outside WEB-INF? Struts security.

2002-04-20 Thread Micael Padraig Og mac Grene
Exactly! So, why do the typical examples put the jsp pages outside? At 02:43 PM 4/19/02 -0300, you wrote: He means that it is more secure to place JSP files inside the WEB-INF directory, since it does not allow direct access to its files. So, nobody would be able to access the JSP files

Re: Creating beans dynamically from byte code in a byte[] with ClassLoader.defineClass- how to do it right?

2002-04-20 Thread Thorbjoern Andersen
Thorbjørn Ravn Andersen (Scandiatransplant) wrote: I have spent some time lately figuring out how I can generate beans on-the-fly with fields completely specified at run-time, since this would be an enourmeous help when working with JDBC and Struts in an informal matter (which is why I ask here

RE: Strtus Tags inside XSLT

2002-04-20 Thread srinivas
Hello Samip, The custom tags are evaluated in the order they appear in the jsp. If you are using Jakarta tag libraries for XSLT processing the solution is as follows. xsltlib:apply xsl=text.xsl !-- Here u can generate XML using struts tags or any other tag library. can also have jsp

RE: null in html on validation

2002-04-20 Thread srinivas
Hi, In the action did u save errors and then forward to the jsp. Try calling this method saveErrors(request, errors); and then forward. Regards, srinivas -Original Message- From: Team Gasoline [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 20, 2002 3:29 AM To: [EMAIL PROTECTED]

How do I disable struts-validator on first call using the do

2002-04-20 Thread Reynaldo Timonera
Hi All, We're using the struts-validator and it's great. We have one problem: when the page is called through the do (/transferUtitlity.do), the validator fires and displays the error. We wanted on the first call to the page that the validator will be disabled. Thanks for your help,

RE: Validator help

2002-04-20 Thread Galbreath, Mark
I found using the Struts validation cumbersome and unpredictable, so I just wrote a custom tag to validate my input forms. If anyone is interested, I'll post the code. Mark -Original Message- From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 5:48 PM To:

RE: null in html on validation

2002-04-20 Thread Galbreath, Mark
If the request object contains nulls, the response object in JSP returns the String null. Test for the presence of nulls in the request object and return an empty String (). Mark -Original Message- From: Team Gasoline [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 8:29 PM To:

RE: Inside WEB-INF or outside WEB-INF? Struts security.

2002-04-20 Thread Jay sissom
Because some web containers don't allow you to put jsp pages in WEB-INF. Tomcat does, but there is at least one other server out there that doesn't allow it. It's been discussed on this list before so you can search the archives to find out which one. If yours does and you want to put them

RE: FormBean changes not recognized across actions

2002-04-20 Thread Galbreath, Mark
Declare your form bean to be in session scope in struts-config.xml. Mark -Original Message- From: C D [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 6:22 PM To: [EMAIL PROTECTED] Subject: FormBean changes not recognized across actions Hi, I am having a problem with the

RE: *.do ---- Proof of Concepts

2002-04-20 Thread Galbreath, Mark
To satisfy your questions (maybe), have you read the relevant parts of the API, like the name field in the ActionConfig class (the class replacing ActionMapping)? Mark -Original Message- From: Robert [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 6:08 PM To: 'Struts Users

RE: Validator help

2002-04-20 Thread Parmar, Dipakkumar
Mark, you are right about struts validation. Please post your code. Thanks Deepak -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 20, 2002 9:25 AM To: 'Struts Users Mailing List' Subject: RE: Validator help I found using the Struts validation

Mark's Custom Validator Tag (part 1 of 2)

2002-04-20 Thread Galbreath, Mark
Okay, here ya go. As usual, change the variables, methods and params to suit your requirements. -- Usage example (see the TLD for full list - and/or add your own. Be sure to reflect any changes in the TLD in the class as well): partner:validation baseName=name isNotNull=true

strange behavious when setting null=false for message-resources

2002-04-20 Thread @Basebeans.com
Subject: strange behavious when setting null=false for message-resources From: Torgeir Veimo [EMAIL PROTECTED] === When I specify a message resources like this in my struts config; message-resources parameter=PublishingApplicationResources null=false / I get automatically title and alt

Mark's Custom Validator Tag (part 2 of 2)

2002-04-20 Thread Galbreath, Mark
package com.tessco.partner.web.validation; //java imports import java.util.Map; import java.util.List; import java.util.HashMap; import java.util.ArrayList; import java.util.Enumeration; import java.util.StringTokenizer; //javax imports import javax.servlet.ServletRequest; import

Mark's Custom Validator Tag Extended ActionForm Class

2002-04-20 Thread Galbreath, Mark
package com.tessco.partner.web; // java.sql import import java.sql.Timestamp; import java.util.Date; import java.util.Calendar; import java.util.GregorianCalendar; //javax imports import javax.servlet.http.HttpServletRequest; //struts imports import org.apache.struts.action.ActionForm;

RE: Validator help

2002-04-20 Thread Jack Zakarian
Mark I'm interested. Jack [EMAIL PROTECTED] -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 20, 2002 8:25 AM To: 'Struts Users Mailing List' Subject: RE: Validator help I found using the Struts validation cumbersome and unpredictable, so I

Custom tags problem...

2002-04-20 Thread Ric Searle
Hi, Getting myself in a bit of a knot with Struts custom tags... I'm using logic:iterate to go through a collection, and I'm setting the indexId so I know where I've got to like so: logic:iterate id=app name=user property=applications indexId=appIdx Now, within my loop I want to

RE: Validator help

2002-04-20 Thread Galbreath, Mark
No problemo. I'm in the #%$@$#!! office on a Saturday again, anyway. :-( -Original Message- From: Jack Zakarian [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 20, 2002 2:43 PM To: Struts Users Mailing List Subject: RE: Validator help Sorry Mark I sent my request before I read the

RE: Custom tags problem...

2002-04-20 Thread Galbreath, Mark
For something like this, it is permissible to have scriplets in the JSP. Or you can modify the iterator bean handler code to provide you with this ability - it IS open-source Mark -Original Message- From: Ric Searle [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 20, 2002 1:37 PM

Does struts-validator work with multiple resource bundle?

2002-04-20 Thread Reynaldo Timonera
Hi All, Does struts-validator work with multiple resource bundle? Thanks for your help, Reynaldo

converting logic:iterate to nested:iterate

2002-04-20 Thread @Basebeans.com
Subject: converting logic:iterate to nested:iterate From: Matt Raible [EMAIL PROTECTED] === How would I convert the following to use the nested tags: logic:iterate id=topic name=courseForm property=topics Topic Name: bean:write name=topic property=name/br/ /logic:iterate I want to do this

RE: IDE for EJB2.0 development

2002-04-20 Thread Craig R. McClanahan
On Wed, 17 Apr 2002, Joseph Barefoot wrote: Date: Wed, 17 Apr 2002 16:53:00 -0700 From: Joseph Barefoot [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: IDE for EJB2.0 development

Re: Use of Powered By Struts Logo

2002-04-20 Thread Craig R. McClanahan
On Thu, 18 Apr 2002, Jack Frosch wrote: Date: Thu, 18 Apr 2002 15:10:24 -0500 From: Jack Frosch [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Use of Powered By Struts Logo I read through various FAQs about this, but didn't see

RE: Inside WEB-INF or outside WEB-INF? Struts security.

2002-04-20 Thread Craig R. McClanahan
On Sat, 20 Apr 2002, Micael Padraig Og mac Grene wrote: Date: Sat, 20 Apr 2002 00:39:53 -0700 From: Micael Padraig Og mac Grene [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Inside WEB-INF or outside

RE: Inside WEB-INF or outside WEB-INF? Struts security. SWF FILES

2002-04-20 Thread Micael Padraig Og mac Grene
You seem to be suggesting, Craig, that you find putting them outside WEB-INF should be fine. Is that a correct reading of your comments? If so, would you please expand on that? I am dealing with some relatively complex issues of reference between pages, including swf template files with

RE: Inside WEB-INF or outside WEB-INF? Struts security. SWF FILES

2002-04-20 Thread Craig R. McClanahan
On Sat, 20 Apr 2002, Micael Padraig Og mac Grene wrote: Date: Sat, 20 Apr 2002 15:25:15 -0700 From: Micael Padraig Og mac Grene [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Inside WEB-INF or outside

html:select is very slow

2002-04-20 Thread Torgeir Punnerud
Hello, I am using the html:select tag, and I am having some major performance problems. If I have very few items on the list (less than 10), the form page is displaying quickly. Then I tried to put about 100 items on the list (html:option tags), it is becoming incredible slow. Sometimes it

RE: html:select is very slow

2002-04-20 Thread Jake Thompson
Had the same problem, use a Collection with html:options instead. Later, Jake T. -Original Message- From: Torgeir Punnerud [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 20, 2002 7:31 PM To: [EMAIL PROTECTED] Subject: html:select is very slow Hello, I am using the html:select tag,

Problems with struts under Tomcat 4 + Apache 2 + mod_webapp

2002-04-20 Thread Jeffrey Bonevich
I have successfully integrated Tomcat 4.0.3 and Apache 2.0.35 using the mod_webapp WARP module. Works perfectly for all my servlets/jsp webapps that are non-struts. As soon as I try to access my strutstest webapp, or if I try the struts-example webapp, I get problems (and, yes, I verified

Re: converting logic:iterate to nested:iterate

2002-04-20 Thread Sanjay Choudhary
try this nested:iterate name=courseForm property=topics nested:write name=Name of the nested object in courseForm Bean property=Property of the nested Object you wish to display /nested:iterate Hope this helps, if not let me know and I will send you a detail worked out solution. -Sanjay ---

Re: Capturing response of dynamically generated form

2002-04-20 Thread Don Saxton
I put the form in session which effectively persists the structure until you get the response. I used nested tag so modifications are already made when response is received. My data structure in form is copy of real data so I can pick and choose what I want to permanently persist. -

Re: How do I disable struts-validator on first call using the do

2002-04-20 Thread Don Saxton
I thought this occurs on session forms but not request. does your case disprove that? - Original Message - From: Reynaldo Timonera [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, April 20, 2002 6:14 AM Subject: How do I disable struts-validator on first