struts-el foreach and page insertion

2003-03-09 Thread Dan Allen
Does the foreach feature in the struts-el jstl tablib library have the same limitation as the logic:iterate in the struts taglib that you cannot insert a page inside the iterator? It would seem to be given the amount this is used in tiles that it should be at the top of the fixme list, unless it r

Re: [OT] JDBCRealm question

2003-03-09 Thread Dan Allen
> This whole thing is really a TOMCAT-USER issue, but there's lots of Tomcat > users here. > > JDBCRealm does *not* require that the username be the primary key -- you > can still use an autogenerated sequence number (or whatever) for that > purpose. You'll want to ensure that the username column

Re: Using Redirect to another site.

2003-03-09 Thread David Graham
In struts-config: http://www.google.com/"; redirect="true"/> David From: RODRIGO CARVALHO DOS SANTOS <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> Subject: Using Redirect to another site. Date: Sun, 9 Mar 2003 17

hangout form with tiles as solution

2003-03-09 Thread Dan Allen
A solution is included below for review: I am designing a site where this one form sits on every page in a tile which contains several fields which must be populated with data. Naturally it would be poor design to consider this form in every single Action on the site, so I quickly discounted that

Re: Help in my struts error

2003-03-09 Thread Richard Raquepo
Thanks - Original Message - From: "Dan Allen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 12:02 PM Subject: Re: Help in my struts error > > Richard Raquepo ([EMAIL PROTECTED]) wrote: > > > i have this error whenever i am doing a sav

Re: [Tiles] Design - Overriding items

2003-03-09 Thread Dan Allen
Man, I had this exact same question...I am eagerly awaiting a discussion on this topic. Particularly the modification of the putList through the definition file inheritance. Dan Affan Qureshi ([EMAIL PROTECTED]) wrote: > I have divided the modules(logical) in my application in a Tab layout. I >

RE: redirecting to HTTPS

2003-03-09 Thread Sterin, Ilya
Hey, thanks a lot. All now works. Ilya -Original Message- From: alexj [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 9:48 PM To: Struts Users Mailing List Subject: Re: redirecting to HTTPS The first thing you will need to do is to update the actionmapping type definition in

Re: [OT] JDBCRealm question

2003-03-09 Thread Craig R. McClanahan
> Dan Allen wrote: > > >This is a simple one, pardon the request for advice. > > > >In the specs for JDBCRealm it talks about a username column being in > >the users table and in the user_role table. Does this mean that the > >username column has to be the primary key in the users table and not

Re: Commons Logging Configuration

2003-03-09 Thread Mazharullah
Hi Ashok Follow the below steps to configure and use the commons logging library. 1. Keep your configuration in /etc directory ( prefered location) for ex. ( /etc/project.conf) 2. If it is web application configure your web.xml file to get the configuration file name. For

Re: [OT] JDBCRealm question

2003-03-09 Thread Eddie Bush
I do realize it takes additonal processor and time to do (an extra ten seconds, perhaps), but, assuming you're using a database which supports triggers, it really doesn't take long to have all of the maintenance associated with adding users and roles be automated. So far as changing username g

Re: purpose of Token Constants

2003-03-09 Thread David M. Karr
> "Scott" == Scott Barr <[EMAIL PROTECTED]> writes: Scott> Hi David Scott> Is that all unique occurences of each unique String within the JVM? If Scott> so, there is still creation, and garbage disposal once the String goes Scott> out of scope, yes? If we're just talking lite

parameter pass to xslt

2003-03-09 Thread bobd
I'm having some problems with passing a DOM Document as a parameter in an XSL transform. TransformerFactory tFac = TransformerFactory.newInstance(); Transformer trans = tFac.newTransformer(xsl-source); trans.setParameter("sched", w3c-DomDoc); trans.transform(DOMSource, DOMResult); Without the s

Re: Can struts populate an ArrayList in form Bean??

2003-03-09 Thread Dan Tran
Seem like you need this http://www.keyboardmonkey.com/pilotlight/index.jsp -Dan - Original Message - From: "Samit Goyal" <[EMAIL PROTECTED]> To: "strtus list" <[EMAIL PROTECTED]> Sent: Friday, March 09, 2001 8:41 PM Subject: Can struts populate an ArrayList in form Bean?? Hi all, I am

Can struts populate an ArrayList in form Bean??

2003-03-09 Thread Samit Goyal
Hi all, I am facing a problem of how to effectively use tag for displaying multiple fields. I am ready to use any Collection(whether it is List,Map or Array) but i want to ensure three things: 1. shall be used for displaying multiple editable fields. 2. Struts shall automatically set the va

[Tiles] Design - Overriding items

2003-03-09 Thread Affan Qureshi
I have divided the modules(logical) in my application in a Tab layout. I want to show different pages under the same tab at various points in the application. It means the putList items change all the time. If I want to extend and override the values inside the putList tags I have to write the whol

Re: purpose of Token Constants

2003-03-09 Thread Scott Barr
Hmm... Reading that after I sent it, I think I secretly have a thing for the word, "unique" :) Scott On Mon, 2003-03-10 at 14:45, Scott Barr wrote: > Hi David > > Is that all unique occurences of each unique String within the JVM? If > so, there is still creation, and garbage disposal once the

Re: purpose of Token Constants

2003-03-09 Thread Scott Barr
Hi David Is that all unique occurences of each unique String within the JVM? If so, there is still creation, and garbage disposal once the String goes out of scope, yes? Scott Barr www.exergonic.com.au On Mon, 2003-03-10 at 14:39, David M. Karr wrote: > > "Scott" == Scott Barr <[EMAIL PRO

Re: purpose of Token Constants

2003-03-09 Thread David M. Karr
> "Scott" == Scott Barr <[EMAIL PROTECTED]> writes: Scott> Also, every time you reference a String literal, an object is created. Scott> Using the static constant avoids this. Just good practice. Scott> Saving the creation of a couple of objects is moot, but on large Scott> pro

Re: Help in my struts error

2003-03-09 Thread Dan Allen
Richard Raquepo ([EMAIL PROTECTED]) wrote: > i have this error whenever i am doing a save and cancel in my jsp.i have used a form > bean. but i didn't do any fancy thing in my form beanso i don't know why i get this > error. any idea why? thanks...java.lang.IllegalArgumentException: argument ty

Re: purpose of Token Constants

2003-03-09 Thread Scott Barr
Also, every time you reference a String literal, an object is created. Using the static constant avoids this. Just good practice. Saving the creation of a couple of objects is moot, but on large projects on stressed servers, every little bit counts. Scott Barr www.exergonic.com.au On Mon, 2003-

Help in my struts error

2003-03-09 Thread Richard Raquepo
i have this error whenever i am doing a save and cancel in my jsp.i have used a form bean. but i didn't do any fancy thing in my form beanso i don't know why i get this error. any idea why? thanks...java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAcc

Re: SecurityFilter with Struts Form

2003-03-09 Thread Dan Tran
Now I agree html:form loging form would not work with neither container managed security or securityfilter -D - Original Message - From: "Dan Allen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, March 09, 2003 3:21 PM Subject: Re: SecurityFilter wit

Re: purpose of Token Constants

2003-03-09 Thread Paul Linden
Dan Allen wrote: I have seen this used in several places and I have to ask, why? Ted Husted uses it in Scaffold and there are several examples around the web that use it as well. What am I talking about? consider this short code snippet return mapping.findForward(Tokens.SUCCESS_KEY); How is th

[Tiles] Localization Using Extended Tiles Definitions

2003-03-09 Thread Paul Hodgetts
Should I be able to do the following localization using extended tiles definitions? In tiles-defs.xml: In tiles-defs_de_DE.xml: In other words, there is a common base page across all the locales. Each local

Re: [Design Pattern]FormBean in Model Layer

2003-03-09 Thread harish krishnaswamy
Well, you would use the following form-bean definition. model-property custLastName ... ... Customize BeanUtils to copy the properties of DynaActionFormSubClass to a model-property-keyed map. pass this map to the model layer and have an adaptor in the model layer

Re: [Design Pattern]FormBean in Model Layer

2003-03-09 Thread Rick Reumann
On Sun, Mar 09,'03 (10:58 PM GMT-), Puneet wrote: > Thanks for your views, > My basic intention is to avoid the headache of copying the values from > FormBean to my Model layer. As Robert mentioned using the beanutils package is the way to go. Copying your formBean fields to your DTO is as s

purpose of Token Constants

2003-03-09 Thread Dan Allen
I have seen this used in several places and I have to ask, why? Ted Husted uses it in Scaffold and there are several examples around the web that use it as well. What am I talking about? consider this short code snippet return mapping.findForward(Tokens.SUCCESS_KEY); How is that any different

RE: [Design Pattern]FormBean in Model Layer

2003-03-09 Thread Robert Taylor
If you are using DynaActionForms which implement the DynaBean interface, you could pass the DynaBean interface to your Fascade without binding to a particular presentation framework. You could then take advantage of some of the copy properties utilities in the org.apache.commons.beanutils package t

Re: SecurityFilter with Struts Form

2003-03-09 Thread Dan Allen
> I use plain old html form for my login form. > I dont see any problem either using html:form tag. Let me try to explain more clearly why using html:form will fail. Consider the following jsp snippet output problem the form action does not "endsWith" "/j_security_check" but rather it "

Re: SecurityFilter with Struts Form

2003-03-09 Thread Max Cooper
Hi Dan, I haven't played with using Struts actions for the form-login-page and form-error-page pages very much. No action will be called when the form submits to j_security_check, which is processed by the filter, much like the container does when using container-managed security. However, you ma

Re: SecurityFilter with Struts Form

2003-03-09 Thread Dan Tran
I use plain old html form for my login form. I dont see any problem either using html:form tag. -Dan - Original Message - From: "Dan Allen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, March 09, 2003 2:26 PM Subject: Re: SecurityFilter with Struts

Re: [Design Pattern]FormBean in Model Layer

2003-03-09 Thread Puneet Agarwal
Thanks for your views, My basic intention is to avoid the headache of copying the values from FormBean to my Model layer. and that since formbean keeps all the values in a nice manner that can be adaptive to any framework. Well this is a correct point that we should keep our Model layer separate f

RE: Multiple forms with same format and validation problem.

2003-03-09 Thread Jason Long
Everything is working nicely now. Many thanks to Dave Newton and Harish Krishnaswamy for your help. Dave you are right if I had nickle Jason Long - CEO and Chief Software Engineer Supernova Software - supernovasoftware.com BS Physics, MS Chemical Engineering -Original Message- From:

Re: SecurityFilter with Struts Form

2003-03-09 Thread Dan Allen
> Hi Dan > > You dont need to configure struts config on security issue. > Configure all your page level security check in your > securityfilter config file. That is the beauty. Right, I understand that. My question relates more to the form itself and the struts taglibs. This is really apart f

Re: SecurityFilter with Struts Form

2003-03-09 Thread Dan Tran
Hi Dan You dont need to configure struts config on security issue. Configure all your page level security check in your securityfilter config file. That is the beauty. -Dan - Original Message - From: "Dan Allen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Se

Re: SecurityFilter with Struts Form

2003-03-09 Thread Dan Allen
> Dan, have you had a chance to look at the example of securityfiler? I have it running indeed and it works like a charm. I am curious though how the form relates to struts, how it all fits in. Like if I do will it get along peacefully with the struts ActionServlet or will it catch it before

Re: SecurityFilter with Struts Form

2003-03-09 Thread Dan Tran
Dan, have you had a chance to look at the example of securityfiler? -D - Original Message - From: "Dan Allen" <[EMAIL PROTECTED]> To: "Struts-User List" <[EMAIL PROTECTED]> Sent: Sunday, March 09, 2003 1:22 PM Subject: SecurityFilter with Struts Form > This is a quick one on setting up

java.lang.IllegalArgumentException: No bean specified

2003-03-09 Thread Johan Kumps
Hi all, I have following problem : java.lang.IllegalArgumentException: No bean specified at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti ls.java:816) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:846) at org.apache.com

RE: Multiple forms with same format and validation problem.

2003-03-09 Thread harish krishnaswamy
1. Your form fields can be found in the ActionForm being passed in to the Action.execute() method. 2. you can save your errors in an ActionErrors/ActionMessages like shown below from with the execute method: ActionMessages msgs = new ActionMessages(); msgs.add(ActionMessages.GLOBAL_MESSAGE, new Ac

Re: [OT]Re: quick log4j question

2003-03-09 Thread Dan Allen
> > The best you can do to place your property file in any directory that > > contains to the classpath (e.g. WEB-INF/classes ...) and load the file > > So you are saying (in response to Dan's question) that it is best to > just keep the log4j.properties file in WEB-INF/classes and to not try > a

Re: [HK] struts-faces.war problem

2003-03-09 Thread harish krishnaswamy
Ok I found the problem. The commons-logging.jar that came with the struts-faces.war did not have the Jdk14Logger wrapper, when replaced with another jar (jakarta-commons-logging-1.0.2.jar) it worked fine. -Harish --- harish krishnaswamy <[EMAIL PROTECTED]> wrote: > Anyone having the problem belo

SecurityFilter with Struts Form

2003-03-09 Thread Dan Allen
This is a quick one on setting up SecurityFilter with struts. It is my understanding that securityfilter intercepts the form submission and handles it itself. Does this mean that the login-config acts in place of the action mapping? In short, if I had FORM /index.do /e

RE: Multiple forms with same format and validation problem.

2003-03-09 Thread Jason Long
I am still having the following two problems: Problems: 1. request.getAttribute("page") is returning null and I cannot use the action form methods for inside this class even though it is being passed in. It does work with return new ActionForward("/itemConfig_6.jsp") hard coded. 2. My form fiel

[HK] struts-faces.war problem

2003-03-09 Thread harish krishnaswamy
Anyone having the problem below while trying to deploy the struts-faces example? Apparently commons logging is having a problem with Jdk14Logger. Any ideas?? -Harish Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.ap

Using Redirect to another site.

2003-03-09 Thread RODRIGO CARVALHO DOS SANTOS
Hi all, What is the best approach to implement a redirect to another site from a link in my Struts App? Thanks, Rdorigo. * Internet E-mail Confidentiality Footer * "Esta mensagem pode conter informações privilegiadas e/ou confidenciais. Caso voce não seja o destinatário ou

DynaActionForm and File Upload

2003-03-09 Thread Brandon Goodin
I have a file input field in my jsp page. I need to submit a file to my Action via the ActionForm. Can the DynaActionForm handle the data from a fie input form element? Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://w

RE: Multiple forms with same format and validation problem.

2003-03-09 Thread Jason Long
I moved my validiations to the action, and I am going to try to using the hidden field to redirect back to the proper page. Is there some other way to detect the page that way orginally posted from, without using a hidden field as suggested by Dave Newton <[EMAIL PROTECTED]>? Jason Long - CEO and

SV: [OT] JDBCRealm question

2003-03-09 Thread Søren Blidorf
Yes, username is primary key in both -Oprindelig meddelelse- Fra: Dan Allen [mailto:[EMAIL PROTECTED] Sendt: 9. marts 2003 20:14 Til: Struts-User List Emne: [OT] JDBCRealm question This is a simple one, pardon the request for advice. In the specs for JDBCRealm it talks about a username

Re: [OT] JDBCRealm question

2003-03-09 Thread Sloan Seaman
I had the same issue and from what I could find, you had to stick to using a text field. I ended up writing my own security system that was just an extension off of the ideas supported by Struts. It only takes a few hours to do.. Just put a User "bean" in the session when the person logs on and

[OT] JDBCRealm question

2003-03-09 Thread Dan Allen
This is a simple one, pardon the request for advice. In the specs for JDBCRealm it talks about a username column being in the users table and in the user_role table. Does this mean that the username column has to be the primary key in the users table and not a user_id?? I thought it was bad desi

Re: basic question

2003-03-09 Thread Eddie Bush
Listen to Sri - he's right on the money. On a side note, you might find it beneficial to do some research on the technology, as doing so would undoubtedly answer more questions than you even know you have at this point. One very good place to get started on your research is the Struts web site

Re: [OT]Re: quick log4j question

2003-03-09 Thread Rick Reumann
On Sun, Mar 09,'03 (12:29 PM GMT+0100), Manfred wrote: > The best you can do to place your property file in any directory that > contains to the classpath (e.g. WEB-INF/classes ...) and load the file So you are saying (in response to Dan's question) that it is best to just keep the log4j.prop

Re: Struts-Faces

2003-03-09 Thread Dom
Sunday, March 09, 2003 4:58 PM Subject: Struts-Faces > Hi > > Win2K, jdk1.4.1_01, Tomcat-4.1.21, jsf-ea3, jakarta-struts-faces-0.3, > jakarta-struts-20030309 > > The jsf-ea3 examples run fine. > Trying to run the jakarta-struts-faces-0.3 example, after having followed >

Re: xslt in jsp

2003-03-09 Thread bobd
I decided to use xtags since it seems to be the latest and greatest XML/XSLT library... One tricky thing I had to deal with is related to xtags expecting an org.dom4j.document, so the bean function getDoc() above has to do a conversion from org.w3c to org.dom4j -bob --- Michael Lee <[EMAIL P

RE: Multiple forms with same format and validation problem.

2003-03-09 Thread harish krishnaswamy
It has been recommended that ActionForm.validate() be used only for trivial validations like the input format, range etc. And these validations can be pushed to the browser and caught there instead. The other business validations are recommended to be done in the Action classes like its been pointe

Re: [OT] form wizard with upload question

2003-03-09 Thread Dan Allen
> > Assume I have a 4 page form which gathers user information, address > > information and company information. I would like to give the user > > the opportunity to upload a logo while filling out the form. If I > > do this in the natural place, which would be in step 2, I am not > > sure how t

Struts-Faces

2003-03-09 Thread Dom
Hi Win2K, jdk1.4.1_01, Tomcat-4.1.21, jsf-ea3, jakarta-struts-faces-0.3, jakarta-struts-20030309 The jsf-ea3 examples run fine. Trying to run the jakarta-struts-faces-0.3 example, after having followed the readme.txt, I get : 2003-03-09 16:45:55 StandardContext[/struts-faces]: Erreur lors de la

Re: xslt in jsp

2003-03-09 Thread Michael Lee
Here's what we do and it's a VERY easy process. http://jakarta.apache.org/taglibs/doc/xsl-doc/xsl-1.0/index.html#apply This is deprecated so I'm going to change it to JSTL. Very similar. But its part of J2EE spec so it's going to be around a while. http://www.manning.com/bayern/appendixA.pdf Anot

AW: application configuration suggestions

2003-03-09 Thread Roland Berger
Hi Rob If you work with struts 1.1 beta xy you can use a plugin for this. You have to implement the init() method. public class InitPlugin implements org.apache.struts.action.PlugIn { public void destroy() { // code to free resources } public void init(ActionServlet actionS

application configuration suggestions

2003-03-09 Thread Rob
I have a number of variables I would like to specify to my application at startup time. I was wondering what the best method to do this is? Does struts provide any facilities related to this? An example of a configuration value would be that I want to be able to specify the location of a set of f

RE: Multiple forms with same format and validation problem.

2003-03-09 Thread Dave Newton
> I have no way of knowing all of the forwards. The pages are generated > dynamically when a new inventory is uploaded. I just need a way to specify > this in each jsp page. Could you just have the input page's path as a hidden form field and create a new ActionForward in the Action rather than

Re: El empty check

2003-03-09 Thread Dave Newton
On Sun, 2003-03-09 at 04:24, Mohan Radhakrishnan wrote: > > <%=0%> > > > <%=1%> > > Now it prints both values. > What is wrong here? Do you have the jstl taglib directive on the page? Dave -

Re: [OT] form wizard with upload question

2003-03-09 Thread Davor Cengija
Dan Allen wrote: > Assume I have a 4 page form which gathers user information, address > information and company information. I would like to give the user > the opportunity to upload a logo while filling out the form. If I > do this in the natural place, which would be in step 2, I am not > su

Re: xslt in jsp

2003-03-09 Thread Tom Ziemer
Hi, what I'm doing is this: I've got a custom tag in my JSP page, that uses a transformer to process the xml input. So my page looks like this: ... title="index.title" heading="index.heading"> Hope this helps, Tom On Sat, 8 Mar 2003, Jörg Maurer wrote: } definitly give JSTL a

RE: xslt in jsp

2003-03-09 Thread Guido
Why not simply doing, in your JSP: <%= bean.getFirst() %> <%= bean.getNick() %> (This is only the idea, you should use jslt or struts taglibs instead of retrieving bean properties via <%= bean.getXXX() %>.) With the XSL style sheet you can do (the browser does it) t

[OT]Re: quick log4j question

2003-03-09 Thread Manfred Wolff
Hi Dan. The best you can do to place your property file in any directory that contains to the classpath (e.g. WEB-INF/classes ...) and load the file via the VM: E.G. Tomcat in Catalina.bat set CATALINA_OPTS=%CATALINA_OPTS% -Dlog4j.configuration=log4jxy.properties (dont take log4j.properties,

Re: DynaActionForm and Checkbox

2003-03-09 Thread Jose Gonzalez Gomez
Maybe you have your DynaActionForm bean stored in session? If so, you should subclass DynaActionForm and provide a reset method. Jose Tony Tahbaz wrote: Hello All, I'm having a bit of trouble using a DynaActionForm with an html checkbox. My form-bean looks like: and my jsp tag

[OT] form wizard with upload question

2003-03-09 Thread Dan Allen
I set this to off topic since it really isn't limited to struts, but I was interested in the advice this community could provide. Assume I have a 4 page form which gathers user information, address information and company information. I would like to give the user the opportunity to upload a logo

El empty check

2003-03-09 Thread Mohan Radhakrishnan
Hi, I want to check for emptiness with JSTL. I declare a variable like this Then it is set like this The check would be <%=0%> <%=1%> Now it prints both values. What is wrong here? Moh

RE: Multiple forms with same format and validation problem.

2003-03-09 Thread Jason Long
I have seen this solution, but it is not exactly what I am looking for: http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] he.org&msgNo=67489 I have no way of knowing all of the forwards. The pages are generated dynamically when a new inventory is uploaded. I just need a way to specify this in