How to figue out whether a form field is required when redering the JSP output?

2004-07-07 Thread Zsolt Koppany
Hi, I would like to mark (for example with a red star) mandatory (required) input fields somehow that the user sees them? I understand that I can configure which fields are required in validation.xml but that might change to customer to customer (a customer wants for example to configure mobile nu

RE: Multiple File Upload using Struts (number of files dynamic)

2004-07-07 Thread Prasad, Kamakshya
Hi, In the form bean keep an array list of FormFile and use it similarly as dynamic list control. KP -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 3:01 PM To: Struts Users Mailing List Cc: Ketan_Bhat Subject: Multiple File Upload using St

Re: Form bean scope question

2004-07-07 Thread Dirk Markert
Hello John, have you tried *** JM> Hi, JM> I hope someone can help me get my head around a scoping question here. JM> I have a multi-page wizard, used for purchasing. There are five pages in JM> all and I'm trying to factor out a

Multiple File Upload using Struts (number of files dynamic)

2004-07-07 Thread Viral_Thakkar
Hi, We are trying to implement uploading file via struts framework using form bean. According to our requirement we have two scenarios' in which we require uploading of our file. 1) Uploading single file (single html:file control and a single upload button in jsp page) 2) Uploading mul

RE: some best practices questions

2004-07-07 Thread ravi.vedala
I think, performance wise File I/O is not the right idea. What do you say ? -Original Message- From: Christina Siena [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 8:16 AM To: Struts Users Mailing List Subject: Re: some best practices questions I have an idea how to persist th

Re: [Fwd: Faces Struts Tiles]

2004-07-07 Thread Craig McClanahan
Hubert Rabago wrote: There's an old IBM article illustrating this. http://www-106.ibm.com/developerworks/java/library/j-integrate/ Keep in mind this article was written before the final release of JSF. If you're looking for the nightly build of the struts-faces integration library, there's an open

Re: some best practices questions

2004-07-07 Thread Christina Siena
I have an idea how to persist the data that I currently place in session scope but I need to run it by someone. Recall when I said that placing data in session scope is frowned upon by some members of my team? Well no one said anything about not using Java serialization. Why couldn't I serializ

Re: some best practices questions

2004-07-07 Thread Christina Siena
Your idea about creating a new scope sounds like an idea that might help. Can you tell me more about it? - Original Message - From: Michael McGrady To: Struts Users Mailing List Sent: Tuesday, July 06, 2004 11:59 PM Subject: Re: some best practices questions Ever thought a

Re: some best practices questions

2004-07-07 Thread bryan
I myself get caching with hibernate which I am using for persistance but I wanted the more fine grained control like this so that I could page back and forth using displaytag.org. here is my jsp code for paging, hope this shows why I am doing it. I guess my code is more for implimenting a clie

multi-porterties problem

2004-07-07 Thread cliff
Hi, I have encountered a problem in applying multi-properties. Multi-properties is used in my company's system. Bundle is set. I can use the message in xxx.jsp but not validation form thought I have set bundle. http://jakarta.apache.org/commons/dtds/validator_1_1.dtd is used in validation.xml

Re: Form action relative path

2004-07-07 Thread atta-ur rehman
How about: ATTA - Original Message - From: "toto2004b2000" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 07, 2004 1:34 AM Subject: Form action relative path > Hello, > > My application is "toto" and with this struts tag > > the generated HTML code is > > > I n

Form action relative path

2004-07-07 Thread toto2004b2000
Hello, My application is "toto" and with this struts tag the generated HTML code is I need to use relative path (without application context), like Is it possible ? Any help would be appreciate. Kind of regards - To unsub

Re: using Constants from JSTL .....

2004-07-07 Thread Rick Reumann
On Wed, 07 Jul 2004 20:12:02 +0200, Bryan Hunt <[EMAIL PROTECTED]> wrote: And it works fine, but really what I am trying to get here is the value of using Constants in both my Actions and my ( JSTL based ) jsp's. You need to have all your Constants in a Map that is in application scope. Kris

Re: OT: RE: Spring or Tapestry Framework

2004-07-07 Thread Joe Germuska
At 4:19 PM -0400 7/7/04, [EMAIL PROTECTED] wrote: Also, I'm sure Rod's new book includes solutions that leverage Spring: http://www.bookpool.com/.x/h9a6d8t7p6/ss/1?qs=EJB+without+J2EE&Go.x=0&Go.y=0&Go=Go BTW, BookPool has this book at 50% off, saving 7.19 over Amazons price. That's just crazy.

Setting the action attribute for nested:form

2004-07-07 Thread Vinuta Nagaraddi
Hello, I am trying to set the action attribute for the nested:form tag dynamically. I want to achieve this by using a property called 'url' from the form (or maybe someone can suggest a better way). I was unsuccessful using the nested:write tag. Any help would be appreciated. Thanks, Vinuta

Re: Session facade

2004-07-07 Thread Lucas Gonzalez Pearson
Zhang, It depends on what you want. Using session facade gives your architecture forward compatibility towards EJB technologies and maybe new technologies that might come in ... the overhead of using this pattern isn´t that important and you will have a clearer separation of areas... Regards, Luc

RE: [OT] Session facade

2004-07-07 Thread Hubert Rabago
--- "Zhang, Larry (L.)" <[EMAIL PROTECTED]> wrote: > Thanks all. I especially like " Firstly, just in case that EJBs will be > introduced in subsequent phases." > > However, before the discussion goes far from what I initially wanted, let > me ask you this: is your Facade the same as my Session Fa

RE: [OT] Session facade

2004-07-07 Thread gdeschen
Well. In my case I used the Facade pattern without the Session. I did have a discussion with a friend as to determine if it is closer to a Delegate or a Facade. Facade... eventhough it does not adhere to the J2EE Pattern 100%. "Matthias Wessendorf" <[EMAIL PROTECTED]> 07/07/2004 04:45 PM Ple

RE: [OT] Session facade

2004-07-07 Thread Matthias Wessendorf
yes it should be a SessionEJB however, if you are new to EJB look here, for generating EJBs http://xdoclet.sf.net and a Xdoclet-Petstore-Sample http://xpetstore.sf.net and Struts and EJBs http://developers.sun.com/events/techdays/codecamps/ THE LINK: Struts and Core J2EE Patterns Together De

RE: [OT] Session facade

2004-07-07 Thread Zhang, Larry \(L.\)
Thanks all. I especially like " Firstly, just in case that EJBs will be introduced in subsequent phases." However, before the discussion goes far from what I initially wanted, let me ask you this: is your Facade the same as my Session Facade? I am reading http://java.sun.com/blueprints/corej2e

Career Opportunity in Vienna VA

2004-07-07 Thread Willard, Lee
Position: Senior J2EE Developer Needs: STRUTS Done Deployment Worked with Patterns Used Business Objects Pay is 45hr-55hr.. Depending on Experience.. 6 month contract.. Company has not let go of any of it's contractors since it started... Email me if you would like more information.. Lee W

Re: [OT] Session facade

2004-07-07 Thread klute
Agree with Bill here. Also... the Constants file is (or can be) quite 'C' as well. There is a temptation to put all of your constants in one place and before you know you end up putting all of your constants encountered within your app there. So totally unrelated stuff gets piled up into one place

RE: RE: Spring or Tapestry Framework

2004-07-07 Thread Robert Taylor
I got it (Expert one-on-one J2EE Design and Development) used on Amazon for $8.50 including shipping. It arrived looking brand new. He's got a new one coming out in November, "Professional Java Development with the Spring Framework". http://www.amazon.com/exec/obidos/tg/detail/-/0764574833/qid=108

RE: Strange double-submissions

2004-07-07 Thread Ivan Vasquez
Thanks Jim, Yes, we found it to be an oddity in IE6 but mostly an error on our part. The html:submit onchange method was actually submitting the form (as any other control does). Doing this is wrong to begin with, and it turns out that Mozilla and IE handle it differently. Now the page contains a

OT: RE: Spring or Tapestry Framework

2004-07-07 Thread DGraham
Also, I'm sure Rod's new book includes solutions that leverage Spring:  http://www.bookpool.com/.x/h9a6d8t7p6/ss/1?qs=EJB+without+J2EE&Go.x=0&Go.y=0&Go=Go BTW, BookPool has this book at 50% off, saving 7.19 over Amazons price.  That's just crazy. Dennis "Ricardo Cortes" <[EMAIL PROTECTED]>

RE: Spring or Tapestry Framework

2004-07-07 Thread Jim Barrows
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 07, 2004 12:53 PM > To: [EMAIL PROTECTED] > Subject: Spring or Tapestry Framework > > > I'd like to thank both Robert and Jim for yesterdays help > with my "Request > bean is lost". > After

Re: [OT] Session facade

2004-07-07 Thread gdeschen
:) Perhaps I could have used Exceptions but well at least I use a Constant file a little better! The more I think about the better it seems to get damn I have some code rewriting to do... Thanks Bill. Bill Siggelkow <[EMAIL PROTECTED]> Sent by: news <[EMAIL PROTECTED]> 07/07/2004

Re: [OT] Session facade

2004-07-07 Thread Bill Siggelkow
Glenn, I was with you until the part about the "return code" ... I think it would be better to translate the DAOException to some BusinessServiceException or something similar instead of a "return code". Generally, I try and avoid the "method returns a -1 to indicate that the operation failed" k

RE: Spring or Tapestry Framework

2004-07-07 Thread Ricardo Cortes
Ooops. One more link: http://www.hibernate.org/110.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 3:53 PM To: [EMAIL PROTECTED] Subject: Spring or Tapestry Framework I'd like to thank both Robert and Jim for yesterdays help with

RE: Spring or Tapestry Framework

2004-07-07 Thread Ricardo Cortes
I'm not sure about Tapestry's integration with Hibernate but Spring provides a good amount of integration with Hibernate out of the box. Plus, it's quite easy to get going with the examples they provide. Check out these URLs to get your feet wet: http://www-106.ibm.com/developerworks/library/j

Spring or Tapestry Framework

2004-07-07 Thread gdeschen
I'd like to thank both Robert and Jim for yesterdays help with my "Request bean is lost". After a small 30 Km bike ride I decided to go with the hidden field to track the First time the page is accessed. But I digress... Espresso time! I decided to start another discussion... I am in the process

RE: Session facade

2004-07-07 Thread Robert Taylor
+1 I would also add that the Facade should be an interface where the implementation can change without affecting the client code. I would also recommend looking at the Spring framework. It provides declarative transaction management without using EJB. I also provides a declarative way to "plug-i

RE: Session facade

2004-07-07 Thread gdeschen
my 2 cents... I am using the Facade in my current project. Firstly, just in case that EJBs will be introduced in subsequent phases. Secondly, the DAO throws exceptions of DAOException & a FatalException. Say that a Stored Procedure returns an application error (invalid parameter in a SP); this

Re: OT: exporting data as .csv in Struts webapp

2004-07-07 Thread klute
Bill and Dennis, Thanks a lot for the info. VERY helpful! James --- http://www.devbistro.com --- Bill Siggelkow <[EMAIL PROTECTED]> wrote: > Ooh ... I was just reminded that the values between > the commas should be > quoted in case there are internal commas ... > > > out.write("\"Ev

Re: Session facade

2004-07-07 Thread klute
It will make sense. You'd let the j2ee container take care of managing dao manager instances and you'll get transaction support (if you need it). Plus, if you decide to move your persistence layer to another server it will be nicely packaged within the .ear that contains your ejb session facade. B

RE: Session facade

2004-07-07 Thread Ricardo Cortes
I would assert you don't need the Session Facade as one of the advantages of the Session Facade is it's ability to abstract the low level operations of the Session EJBs from upper layers of your architecture. You could probably have your actions talking to a Business Delegate layer or your DAO

Re: OT: exporting data as .csv in Struts webapp

2004-07-07 Thread Bill Siggelkow
Ooh ... I was just reminded that the values between the commas should be quoted in case there are internal commas ... out.write("\"Every\",\"good\",\"boy\",\"does\",\"fine\"\r\n"); out.write("\"face\",\"in\",\"the\",\"space\",\"dude\"\r\n"); Bill Siggelkow wrote: Try something like

OT: Re: Session facade

2004-07-07 Thread DGraham
Maybe. "Zhang, Larry \(L.\)" <[EMAIL PROTECTED]> 07/07/2004 02:58 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "Struts Users Mailing List" <[EMAIL PROTECTED]> cc Subject Session facade It seems session facade design pattern is becoming ubiqu

Re: OT: exporting data as .csv in Struts webapp

2004-07-07 Thread Bill Siggelkow
Try something like this little servlet: import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class CsvServlet extends

RE: Strange double-submissions

2004-07-07 Thread Jim Barrows
> -Original Message- > From: Ivan Vasquez [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 07, 2004 11:31 AM > To: [EMAIL PROTECTED] > Subject: Strange double-submissions > > > Hi, > > We have a form whose last two controls are an html:select and a submit > button. The form posts to a

Session facade

2004-07-07 Thread Zhang, Larry \(L.\)
It seems session facade design pattern is becoming ubiquitous. My question is that if we are not going to use EJB(but we do have DAO-data access object), does it still make sense to use session facade? Thanks. - To unsubs

Strange double-submissions

2004-07-07 Thread Ivan Vasquez
Hi, We have a form whose last two controls are an html:select and a submit button. The form posts to an Action to insert records into a database. Changing the select control causes a page refresh (posting to the same Action) in order to display other options. We notice that, if the user submits

Re: using Constants from JSTL .....

2004-07-07 Thread Bryan Hunt
Just as an addition I can do this And it works fine, but really what I am trying to get here is the value of using Constants in both my Actions and my ( JSTL based ) jsp's. Perhaps this is just something that never occured to the writers of the JSTL spec ? --b Bryan Hunt wrote: Ok, t

using Constants from JSTL .....

2004-07-07 Thread Bryan Hunt
Ok, tearing my hair out right now and extremely confused. If you look at the Java Technology Forums you will see a rather nice little pattern that someone called evnafets has created, it allows you to use a single Constants class both in your Actions and in your JSP pages ... It uses reflection

RE: OptionsCollection and select tag

2004-07-07 Thread Wendy Smoak
> From: Naresh Sharma [mailto:[EMAIL PROTECTED] > I am not very clear how OptionsCollection tag works, I wish > to know when we supply a Collection element to > OptionsCollection tag, how it determines which element of > this collection should come as selected element while > rendering a drop

Re: OT - How to add icon in browser url field

2004-07-07 Thread Matt Bathje
David - this isn't really a struts question - but from what I know of the favicon.ico icons: They MUST be 16x16 pixels The only work in IE after the page has been bookmarked They only work in Mozilla versions greater than 1.3 (Don't know about other browsers) For tomcat, you may need to add someth

Re: EXTERNALIZE SQL QUERIES

2004-07-07 Thread Van
iBATIS and Hibernate will both allow you to externalize your SQL queries. If all you are looking for right now is a way to place your SQL statements in separate data files that allows you to insert values dynamically at run time, iBATIS is a much simpler solution which easily handles that for you.

Re: OT: exporting data as .csv in Struts webapp

2004-07-07 Thread DGraham
My suggestion is to get the source for displayTag (http://displaytag.sourceforge.net) and look at TableTag.doExport() and CsvView. Dennis klute <[EMAIL PROTECTED]> 07/07/2004 10:28 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To Struts Users Mailing List <[E

Issue related to Form tag's action attribute value

2004-07-07 Thread Gopinath
Hi All, I have an application which is using Struts and is deployed on weblogic server say myApp. The application is working fine for a client directly hitting the weblogic server. But we have an application environment wherein the iPlanet web server(redirectServer) is providing virtual di

RE: Form bean scope question

2004-07-07 Thread Paul McCulloch
org.apache.struts.taglib.html.BEAN is used internally by the Struts tags to hold a reference to the form bean. sets it's value & enclosed tags like access the form bean by looking for an attribute with that name. So, you could get that by having a null form bean, or by using an tag outside an

Re: Form bean scope question

2004-07-07 Thread John Moore
Michael McGrady wrote: The problem is that, no matter what that is causing the problem. The error report tells you that is the problem. The problem is that you are not seeing what the error tells you is not being seen. So, track it back. If the "taglib" line is there, then the URI might be set

Re: EXTERNALIZE SQL QUERIES

2004-07-07 Thread Navjot Singh
look into ibatis, hibernate, torque on and on -Original Message- From: Shailender Jain [mailto:[EMAIL PROTECTED] Sent: 07 July 2004 04:48 To: [EMAIL PROTECTED] Subject: EXTERNALIZE SQL QUERIES Hi, I am using struts framework for the development of my application. I want to externali

Re: some best practices questions

2004-07-07 Thread Michael McGrady
I, for one and one only, think that this sort of thing is directly addressing the most common recurrent question on this list. So, if anything, this de-spams the list. Thanks for the suggestion. At 04:57 AM 7/7/2004, you wrote: Sorry if this is considered spamming the list Speaking of sto

Re: some best practices questions

2004-07-07 Thread Rick Reumann
On Wed, 07 Jul 2004 13:57:23 +0200, Bryan Hunt <[EMAIL PROTECTED]> wrote: For instance if I want to page through it ( using displaytags.org (10 out of 10)) or simply if I don't want to fetch from the database time and time again. By default the data expires on an hourly basis. And if a differe

RE: problem using Commons Validator. please Help

2004-07-07 Thread Alvin Antony
Hi, thank you for the reply. That with the webserver is a good idea, i am gonna try it out. I also wondor that, why the struts-config and tiles-config is working. just for a try i removed the network cable and this time it throws exception only from validator module ie. struts and tiles are

OT: exporting data as .csv in Struts webapp

2004-07-07 Thread klute
Hi All, I am looking for some best practices advice on handling this task: I have a web application (written in Struts) that talks to some database. A browser user will be able user to export tabular data from the db in a comma delimited file and get a save as dialog box prompting to name the re

RE : OT - How to add icon in browser url field

2004-07-07 Thread David Gagnon
I'm using WebSphere here at work. I tried putting favicon.ico in the root directory of my .war file and it didn't work. Is understand how I can make it work on a web server like apache but what about Tomcat? The best for me will be to have a different favicon.ico per web application (i.e.: .war

Re: more: Re: almost OT - html4.0 buttons don't work in IE 6 SP 1 ??

2004-07-07 Thread Mark Lowe
Nothing wrong with LookupDispatch action, just needs a base action that extends it, and have all the common behavior for all executes in there. Also need to create support for nested form buttons. I've hacked in an index retriever to get indexed form buttons working, but i'd like to support key

OptionsCollection and select tag

2004-07-07 Thread Naresh Sharma
Hi all,   I am not very clear how OptionsCollection tag works, I wish to know when we supply a Collection element to OptionsCollection tag, how it determines which element of this collection should come as selected element while rendering a drop down box.   Please suggest.   Regards

Re: some best practices questions

2004-07-07 Thread Bryan Hunt
Sorry if this is considered spamming the list Speaking of storing stuff in session scope. I've developed what I think is a handy class which I think it useful for when I want to store something like a search in a session variable. For instance if I want to page through it ( using displaytags

Re: EXTERNALIZE SQL QUERIES

2004-07-07 Thread Peng Tuck Kwok
Or use hibernate :D . On Wed, 07 Jul 2004 09:56:06 +0300, Andrew Stepanenko <[EMAIL PROTECTED]> wrote: > ÐÑÐ, 2004-07-07 Ñ 06:48, Shailender Jain ÑÐÐ: > > Hi, > > > > I am using struts framework for the development of my application. > > I want to externalize the sql queries written in my a

RE: OT - How to add icon in browser url field

2004-07-07 Thread Guillermo Meyer
And if your image is in other place than in the root or it isn't called "favicon.ico", you can place this tag in the index.jsp page: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Martes, 06 de Julio de 2004 05:46 p.m. To: [EMAIL PROTECTED] Subject: RE: OT -

RE: EXTERNALIZE SQL QUERIES

2004-07-07 Thread Marco Mistroni
Hello there, I am doing a similar thing following an article that appeared on javaWorld (that's about XML and JDBC) http://www.javaworld.com/javaworld/jw-11-2000/jw-1110-xmlreflection.html I am not actually using 'variables' like you plan to use ($id, $name). I am instead following anot