Re: client-side validation not working

2004-02-15 Thread Niall Pemberton
James, In your validation configuration file you have not set the date pattern variable - there are two forms of it - datePattern and datePatternStrict. formset form name=ActivityViewForm field property=starting depends=date arg0

RE: corporate hierarchy

2004-02-15 Thread McCormack, Chris
Write it using DHTML. I have written a few things that sound similar to what you are trying to achieve all using DHTML. Populate your divs using jstl and style them nicely using css. Write a few simple reusable javascript functions to show/hide the divs and you are away. If you need any more

Re: [OT] - Request against Session

2004-02-15 Thread Mark Lowe
On 14 Feb 2004, at 20:12, Craig R. McClanahan wrote: Quoting Michael McGrady [EMAIL PROTECTED]: Now let us assume that the ActionForm for the record editing form needs to go in session scope (nb: in request scope there is not a problem so if the design can be done practically with request

persistent data storage - the right way

2004-02-15 Thread Ben Turner
hello, i have been looking (in vain) for a description how to implement database access in struts correctly. i would like to use the DAO (data access object) pattern in combination with datasources for connection pooling. however, i am having a hard way figuring out how to implement the whole and

Re: [OT] Display TagLib Struts

2004-02-15 Thread Oliver Thiel
I allready got it working! But anyway thanks for your replay. The only thing that does not for for me are the export types - I can (automatically) create the links (XML Excel CVS) But i always get a linke to a *.jsp instead of e.g. an *.xls file. Have you/someone also experience something like

Re: persistent data storage - the right way

2004-02-15 Thread Oliver Thiel
Hi, you can use iBatis [http://www.ibatis.com/] and take a look at this example/tutorial: http://www.reumann.net/do/struts/ibatisLesson1 (using: Struts - DAO - iBatis ) I think this is what your looking for. Oliver hello, i have been looking (in vain) for a description how to implement

Re: [OT] - Request against Session

2004-02-15 Thread Michael McGrady
At 04:20 AM 2/15/2004, you wrote: You Said: During a payment process one may want to collect various details about a user, likewise in other parts of a system you perhaps want to do the same albeit in a different order. Hiding form values from a previous view would lock you into always needing

nested tag problem - image not shown

2004-02-15 Thread lixin chu
hi, i am trying the nexted MOnkey example, everything works fine except that the image is not shown. In my TreeNode.jsp: nested:image src=/images/tree/km_plus.gif property=toggle/ The only difference is that TreeNode is a Tile now. I am using IE 6.0, Win XP, Struts 1.1 thanks in advance, li

Re: [OT] - Request against Session

2004-02-15 Thread Mark Lowe
On 15 Feb 2004, at 14:02, Michael McGrady wrote: At 04:20 AM 2/15/2004, you wrote: You Said: During a payment process one may want to collect various details about a user, likewise in other parts of a system you perhaps want to do the same albeit in a different order. Hiding form values from a

way off topic

2004-02-15 Thread Martin Gainty
Forgive the way off topic query where is the commons/lib folder for Sun One AppServer. ie. where do you keep tools.jar?? Thanks, -Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: client-side validation not working

2004-02-15 Thread Niall Pemberton
Actually, I just tried it out and it has to be the datePatternStrict version for Struts 1.1 var var-namedatePatternStrict/var-name var-valuedd/MM//var-value /var The javascript functions have moved to commons and appear to now cater

html:link passing multiple parameters

2004-02-15 Thread phortonpeg
Hi, I have a situation where I need to pass several parameters in an html:link tag. From what I've read, I know that I must use a HashMap to send as a param which would contain the values I want to send to the URL. I first display the values in a table using logic:iterate and an arrayList

RE: html:link passing multiple parameters

2004-02-15 Thread Nick Faiz
I did something along those lines using Struts-EL. c:set var=concernType value=${project.progressConcernType} scope=request/ jsp:useBean id=paramMap class=java.util.HashMap / c:set target=${paramMap} property=projectIdentifier value=${project.projectIdentifier} / c:set target=${paramMap}

Re: [OT] - Request against Session

2004-02-15 Thread Michael McGrady
You [Mark Lowe] said: Having additional fields that may not related to the given form I'd say at least would confuse a site builder who comes along and has to work out what's going on. For example a bunch of user details in a credit card form would (IMO) cause a whole bunch of problems in

Re: client-side validation not working

2004-02-15 Thread Jim Anderson
Niall, You're absolutely right! Adding the elements you show below did the trick. It never occurred to me to revisit my validation.xml file since server-side validation was working fine. Thanks very, very much! jim On Feb 15, 2004, at 1:33 PM, Niall Pemberton wrote: Actually, I just tried

Re: client-side validation not working

2004-02-15 Thread Niall Pemberton
Yes, that was the confusing bit - on the server side it defaults to the date short form if you don't specify a pattern. It would be better if either the javascript defaulted in the same way or blow up on the server side if the patterns missing - easier to spot it then. Niall - Original

Re: persistent data storage - the right way

2004-02-15 Thread lixin chu
is Hibernate another good alternative ? --- Oliver Thiel [EMAIL PROTECTED] wrote: Hi, you can use iBatis [http://www.ibatis.com/] and take a look at this example/tutorial: http://www.reumann.net/do/struts/ibatisLesson1 (using: Struts - DAO - iBatis ) I think this is what your

Re: PageFlow within a Tile?!

2004-02-15 Thread lixin chu
this sounds like a Velocity-like feature. dun if Struts supports this with Tiles --- Dominik Stöttner [EMAIL PROTECTED] wrote: Hi, I am trying to write a webapp with struts and tiles that is similar to the portlet-technology. The tiles-documentation example provided with struts is very

Session Validation

2004-02-15 Thread hhlow
Hi, I am sorry if this question have been asked before. How can i check session validation? to check whether if the user is authenticated on each page. I read somewhere about Filters but i still do not know how to implement it. Currently I use a LoginAction to check the user details against the

Re: html:link passing multiple parameters

2004-02-15 Thread Adam L
There's also the use of c:url. The catch there is that if you incude the resulting url in a html:link, it will be double contexted, which means you should use a standard href tag and use a c:out to spit out the final url. - Original Message - From: Nick Faiz [EMAIL PROTECTED] To:

RE: persistent data storage - the right way

2004-02-15 Thread David Friedman
I use hibernate so, yes, I think it is a good alternative. :) Regards, David -Original Message- From: lixin chu [mailto:[EMAIL PROTECTED] Sent: Sunday, February 15, 2004 8:56 PM To: Struts Users Mailing List Subject: Re: persistent data storage - the right way is Hibernate another good

RE: html:link passing multiple parameters

2004-02-15 Thread Nick Faiz
Thanks Adam - that's good to know. -Original Message- From: Adam L [mailto:[EMAIL PROTECTED] Sent: Monday, 16 February 2004 2:10 PM To: Struts Users Mailing List Subject: Re: html:link passing multiple parameters There's also the use of c:url. The catch there is that if you incude the

Re: Session Validation

2004-02-15 Thread Niall Pemberton
I'm not an expert on security but as I understand you have two choices. You can either implement container managed security - where the servlet container controls logging on and ensures that only authenticated users can have access to the resources you specify OR you can control it yourself within

RE: [OT] - Request against Session

2004-02-15 Thread Andrew Hill
snip My recommendation is to *always* use request scope form beans if you can. /snip Yes. Having done it both ways and experiencing the various tortures that session scoping inflicts apon us I would definately agree that if one can use the request scope (and with a little thought this should be

RE: Session Validation

2004-02-15 Thread Andrew Hill
Main problem with CMA is that its configuration is container dependent. If your writing an app that needs to be deployed straight to many different containers CMA can be troublesome. btw: if you are doing your own session based security - dont - put check tags in the JSP. Follow Niall's suggestion

Java Script

2004-02-15 Thread Ramachandran
Hi All, i have this form to upload a document to a folder on the server. i have a field where you browse the files on your computer to upload to the server. once that field is chosen i would like another field to be populated automatically with only the document's name, without the path extension

Error Start Tag Exception

2004-02-15 Thread Betty Koon
Any one has any idea why this exception happens? I am using 1.2 nightly build currently. My jsp is simply using the following: logic:messagesPresent html:errors / /logic:messagesPresent java.lang.ClassCastException at

Can I access an ActionForm JavaBean with a session scope?

2004-02-15 Thread Gregg Williams
I am continuing work on an extremely simple (2 web pages) Struts application. In the first page (entryPage.jsp), you enter data into a form and click the submit button. This takes you to the second page (displayPage.jsp), which displays the data from the form; and clicking the submit button on

Problem using split() method in java script

2004-02-15 Thread Ramachandran
Hi, I am facing problem in java script, using spilt() methos. Here i want to split the strings using '\' this separator. Here it is separating the strings. Bu it is displayed in the zeroth index array. But i want to display in each index. But not Working. Any body having idea please maile me.

Re: Can I access an ActionForm JavaBean with a session scope?

2004-02-15 Thread cnd
You don;t use the name quoted you place the Object in the session and then retrieve it by name. session.setAttribute(yourbean,the name you give it); Object mybean = session.getAtribute(the name you give it); I think you have to cast myObject cos it is untyped. Chris On Sun, 15 Feb 2004, Gregg