Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-10 Thread Amitkumar_J_Malhotra
thanx a lot for the concept, great work rick. regards, amit malhotra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Problems with multibox and checkbox

2003-03-10 Thread Jason Long
I orginally thought the problem was with struts, but it seems to be an xsl problem I am having. I am generating many struts forms using jsp/xml syntax and struts. It is working quite nicely so far. I am using ,,... with no problems, but for some reason my xsl style sheet renders or without ht

[ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-10 Thread Rick Reumann
I created a web site that walks new Struts users step by step through the development of three VERY simple web applications in three lessons. Each lesson adds a few more features so that they build upon each other yet each stands alone such that if you follow the steps in any lesson you'll have bui

RE: [OT] computer performance with jsp/servlets/struts

2003-03-10 Thread du Plessis, Corneil C
I would suggest you try to tune Tomcat memory by using -mx as a JVM parameter, I may help reduce the swapping. -Original Message- From: Dan Allen [mailto:[EMAIL PROTECTED] Sent: 11 March, 2003 06:09 To: Struts-User List Subject: [OT] computer performance with jsp/servlets/struts I only a

RE: Web sites using struts

2003-03-10 Thread Damm, Gary
Thanks, this is a great thread. Gary -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 10:36 AM To: Struts Users Mailing List Subject: RE: Web sites using struts Check out http://marc.theaimsgroup.com/?l=struts-user&m=104627418203266&w=2. Sri

relative path problem

2003-03-10 Thread bobd
This is a rather silly problem I have been putting off and now I really need to fix it... In my Struts app, bean classes are parsing and writing XML files on disk. These files are currently being pulled in using a full directory path! (i.e. "/usr/local/...) Attempts to use relative paths (from t

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Craig R. McClanahan
On Tue, 11 Mar 2003, Andrew Hill wrote: > Date: Tue, 11 Mar 2003 11:06:01 +0800 > From: Andrew Hill <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: RE: The Back button on on multi-page forms ?? > > Has

Problems with multibox and checkbox

2003-03-10 Thread Jason Long
I have tried both of the following, but I can not get this to work. I have a group of checkboxes that I would like to have filled after a validation attempt. If I add either of the following I get the following rendered to the browser. I have radio, and text fields working fine. What am I m

RE: [OT] computer performance with jsp/servlets/struts

2003-03-10 Thread David Graham
Linux is *a lot* faster than Windows for compiling/running Java. When I installed Linux on my Windows box I immediately noticed Linux was faster at most everything :-). David _ The new MSN 8: smart spam protection and 2 months FREE*

RE: [OT] computer performance with jsp/servlets/struts

2003-03-10 Thread Raible, Matt
I'm using a 2GHz with 512MB RAM (Win2K) and I can undeploy/clean/compile/deploy (using Ant) my entire project in just under 30 seconds. The project has about 250 .java files and generates a bunch more using XDoclet. A pretty resource intensive build. The biggest difference I'd say is the CPU. I

RE: [Q] how to Sort on JSP without calling server side?

2003-03-10 Thread Andrew Hill
JSP Tags - including the tags suppolied with struts - are executed on the server side. ...however those tags may render javascript to the response - javascript is of course executed on the client side. You might be able to find a tag that renders some javascript that sorts something. You might not.

Re: [OT] computer performance with jsp/servlets/struts

2003-03-10 Thread Dan Allen
Another thing that could be causing the problem. I am using Ant to reload just the application and not tomcat by using the manager that comes with Tomcat. I notice that each time I reload it throws Exception Errors that the sessions could not be recovered. Whenever I am swapping and exception er

Re: [Q] how to Sort on JSP without calling server side?

2003-03-10 Thread Dan Allen
Maybe OT, but is there a way to sort with JSP tags, or struts tags? Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, <[EMAIL PROTECTED]> http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "If you still don't like it, that

Re: [OT] computer performance with jsp/servlets/struts

2003-03-10 Thread Dan Allen
Kwok Peng Tuck ([EMAIL PROTECTED]) wrote: > It seems from your email that you are experiencing a lot of swapping , > an indication that you are running low on memory. Of course more Mhz > doesn't hurt :) . > I'm currently using a PIV in the office with about 392 MB of memory and > tomcat appl

Re: [OT] computer performance with jsp/servlets/struts

2003-03-10 Thread David Graham
P3 1Ghz., 512MB RAM and Tomcat starts in about 10 seconds. Obviously don't need to restart Tomcat for JSP changes which load in about 5 seconds. David From: Dan Allen <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts-User List <[EMAIL PROTECTED]> Subject

Re: [OT] computer performance with jsp/servlets/struts

2003-03-10 Thread Kwok Peng Tuck
It seems from your email that you are experiencing a lot of swapping , an indication that you are running low on memory. Of course more Mhz doesn't hurt :) . I'm currently using a PIV in the office with about 392 MB of memory and tomcat application reloads and jsp reloads are no where near the

[OT] computer performance with jsp/servlets/struts

2003-03-10 Thread Dan Allen
I only ask this to see if I can make my life easier. I have a PII 333MHz laptop with 216MB Ram and I am running Tomcat, JDK 1.4.1 and some struts applications. Just now it took ant 6 min 56 sec to reload my application after making changes. If I were to go and get a decent Athlon XP or PIV compu

Re: [Q] Log Viewing tool for Windows environment?

2003-03-10 Thread Chris Halverson
"Jeff Smith" <[EMAIL PROTECTED]> writes: > In the UN*X world, I had the tail command for such purposes. But I've never > seen anything like this for Windows. You can also try GnuWin32: http://gnuwin32.sourceforge.net/ Totally free, works great. They also have links to other similar sites: htt

Re: [OT] Log Viewing tool for Windows environment?

2003-03-10 Thread Kwok Peng Tuck
You mean cygwin will not be free anymore ? Jeff Kyser wrote: Grab Cygwin - a 'nearly' unix environment for winderz that will make you feel very much at home. tail -f works great and at least the betas are/were free. - To unsubs

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Bueno Carlos M
I may be way off here, but how about coding defensively? This isn't some special java-struts problem; it's the price of maintaining the illusion of a session over HTTP. Form tokens are a good idea but the user can and will click that pesky back button to change what they inputted. One of two thing

Re: [OT] Log Viewing tool for Windows environment?

2003-03-10 Thread Jeff Kyser
Grab Cygwin - a 'nearly' unix environment for winderz that will make you feel very much at home. tail -f works great and at least the betas are/were free. -jeff On Monday, March 10, 2003, at 09:22 PM, Jeff Smith wrote: To date I have been using the brute-force log viewer: notepad. Is anybody aw

[Q] Log Viewing tool for Windows environment?

2003-03-10 Thread Jeff Smith
To date I have been using the brute-force log viewer: notepad. Is anybody aware of a Windows app that monitors text log files (like output from log4j) and automatically refreshes and scrolls to the end of the file? Such functionality would make my test-debug cycle less mouse intensive. :-) In the

RE: ActionServlet Action caching problem

2003-03-10 Thread Mohan Radhakrishnan
Hi, Ours is not exactly the same problem because it is diagnosed as a cache problem. Sometimes when the session times out and a particular action URL menu.addMenuItem("Menu","location='test.action'"); was the last one to be executed and we log out and log in, this URL somehow gets stuck

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Andrew Hill
Hasnt got to that stage yet, but Im guessing that the js trick wont be particularly 'appreciated'. Of course that code is centralised in one javascript file, so can be changed once Ive had a chance to get tokens working, but Im going to need some fancy code to handle the situation where the url of

RE: Dynamic Image Loading from ByteArray

2003-03-10 Thread Steve Vanspall
It's cool I solved the problem, basically if I place a counter in the nested:iterate tag, I can add a paramater like index=<%=count%> to the URL and the browser treats it as a completely different image. Regards Steve -Original Message- From: Steve Vanspall [mailto:[EMAIL PROTECTED] Se

Re: DynaActionForm

2003-03-10 Thread Craig R. McClanahan
On Mon, 10 Mar 2003 [EMAIL PROTECTED] wrote: > Date: Mon, 10 Mar 2003 17:07:29 -0700 > From: [EMAIL PROTECTED] > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > Subject: DynaActionForm > > Hi, > We are creating a derivitive of DynaA

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread David Graham
Yeah, maybe if you have no-cache setup the browser will contact the server again. That javascript trick is truly evil. I'm guessing you have some pretty upset users. I really hate it when sites break my back button and/or remove my navigation buttons. That's one reason why I strictly use Ope

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Andrew Hill
Remember that the back button does not contact the server Some do sometimes - but Im not sure under what cicumstances - probably depends on what sort of caching setting you have set up in your browser - and what browser it is - and the alignment of neptune and saturn etc.. (ie: nothing you can r

Re: [NEWS] Struts Hibernate Example 0.01

2003-03-10 Thread Ted Husted
Sorry. Long day ... http://sourceforge.net/projects/struts James Mitchell wrote: Perhaps I missed where the examples are. Did you mean to give us a link? -- James Mitchell Software Developer/Struts Evangelist http://jakarta.apache.org/struts "People demand freedom of speech to make up for the fr

Dynamic Image Loading from ByteArray

2003-03-10 Thread Steve Vanspall
Hi there, here is what I am trying to do. A user can select to upload two image that will eventually get stored into the databasa. Now rather than write them to files in a tmp directory, which could potentially get messy, I want to be able to display in my images from the byte array that the For

RE: Request scope beans problem

2003-03-10 Thread michael . korolyov
try remove scope="request" use just could be just misspelling Best Regards. Michael. -Original Message- From: Matthew Denner [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 3:25 PM To: [EMAIL PROTECTED] Subject: Request scope beans problem Hi, I know I've probably done somethi

Re: [OT]: Struts, Web Development, J2EE, and what is too much?

2003-03-10 Thread Tony Baity
Aaron, Try not to think just in terms of EJBs. Instead picture the scenario of persistence management in general. Throw CMPs, BMPs, JDO, Session Beans, Etc. out on the table and consider what each is buying you. In some cases the benefit is in providing a JNDI lookup for other Apps to use if yo

DynaActionForm

2003-03-10 Thread khalim
Hi, We are creating a derivitive of DynaActionForm that needs to add FormPropertyConfigs to the FormBeanConfig at runtime however are running into this frozen config thing. How can we get around this and why does Struts prevent this in the first place? Thank you!

Re: Request scope beans problem

2003-03-10 Thread Matthew Denner
Zheng, Gang wrote: Make sure you do not use "redirect" when you forward from your action to the JSP. This is defined in your struts-config.xml. You should use something like: When you redirect the browser will initiate a whole new HTTP request, so anything stored in original request was lost. Tha

RE: Request scope beans problem

2003-03-10 Thread Zheng, Gang
Make sure you do not use "redirect" when you forward from your action to the JSP. This is defined in your struts-config.xml. You should use something like: When you redirect the browser will initiate a whole new HTTP request, so anything stored in original request was lost. Hope this is helpful

Request scope beans problem

2003-03-10 Thread Matthew Denner
Hi, I know I've probably done something really stupid but I can't get request scope beans working at all! Here's what I have: - an Action class that does 'request.setAttribute("foo", "bar")' and then forwards to a JSP - the JSP does a All I ever see is: org.apache.jasper.JasperException: Ca

Re: [Design Pattern]FormBean in Model Layer

2003-03-10 Thread Peter A. Pilgrim
Craig R. McClanahan wrote: On Mon, 10 Mar 2003, Puneet Agarwal wrote: Date: Mon, 10 Mar 2003 11:31:29 - From: Puneet Agarwal <[EMAIL PROTECTED]> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>, Puneet Agarwal <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Su

Re: [OT]: Struts, Web Development, J2EE, and what is too much?

2003-03-10 Thread Mark Zeltser
Aaron, There is no right answer to your question. Read Chapter 1 of 'J2EE Design and Development' book by Rod Johnson. Mark. Aaron O'Hara wrote: > I know this question has probably been asked before, and that biased > publications have had their opinions on it, but I wanted to get some > feedba

RE: [Q] how to Sort on JSP without calling server side?

2003-03-10 Thread Steve Armstrong
Hi, By JSP side I assume you mean client side which means JavaScript. Here is one possibility if you're displaying your list of beans (well,their properties)in a table: http://www.mattkruse.com/javascript/sorttable/ Cheers, -Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMA

Re: [OT]: Struts, Web Development, J2EE, and what is too much?

2003-03-10 Thread nash e. foster
I use Jboss. It works quite well with struts. EJBs have made my application EASIER and LESS complex for me, but I don't know any SQL or database technologies at all. If you're comfortable with managing your own database widgets, you may be frustrated with how slow J2EE is on your hardware and y

[Q] how to Sort on JSP without calling server side?

2003-03-10 Thread michael . korolyov
Hello, I'm passing a List to JSP that has list of beans. How I may implement Sorting on JSP side only? any examples would be very helpful. tnx Best Regards. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [OT]:Hiding layers in HTML

2003-03-10 Thread Raible, Matt
Demo at: http://www.raibledesigns.com/resume/ (click on Toggle README link below login box) JavaScript: /* Function for showing and hiding elements that use 'display:none' to hide */ function toggleDisplay(targetId) { if (document.getElementById) { target = document.getElementById(tar

RE: [OT]:Hiding layers in HTML

2003-03-10 Thread Richard Mixon
Matt Raible's "struts-resume" application has a neat combination of style-sheet and javascript/DHTML that might do what you want. It's a small toggle control that alternately hides/displays the README.txt for the application. It could easily be adapted to be triggered by a checkbox. HTH: Its at: h

Re: [OT]: Struts, Web Development, J2EE, and what is too much?

2003-03-10 Thread David Graham
I've never used EJBs but Struts doesn't need to know about them at all. The actions could talk to a service interface that may be implemented by EJBs or just normal Java classes. David From: "Aaron O'Hara" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'St

[OT]: Struts, Web Development, J2EE, and what is too much?

2003-03-10 Thread Aaron O'Hara
I know this question has probably been asked before, and that biased publications have had their opinions on it, but I wanted to get some feedback regarding some "real user experience" regarding the use of EJB in a web application used along with Struts. I am creating a web application and I have

Re: [OT] How bad is to use DB ids on links??

2003-03-10 Thread Dan Allen
> >Subject says it all. How bad is to use links like > >http://.../myproject/news/view.do?id=1356 > > > >where id is real id of the DB row. I have tried to get around this by > >caching result in list and show indexes. > >But that looks like it is going to be hard to maintain. If user opens > >two

SV: Sort a collection in alphabetic order

2003-03-10 Thread Søren Blidorf
Thanks a million. You just made my day. Soren -Oprindelig meddelelse- Fra: Yan, Charlene [mailto:[EMAIL PROTECTED] Sendt: 10. marts 2003 23:12 Til: Struts Users Mailing List Emne: RE: Sort a collection in alphabetic order Try this: import org.apache.commons.beanutils.BeanComparator;

Re: peer design to generate list

2003-03-10 Thread Dan Allen
Dave Newton ([EMAIL PROTECTED]) wrote: > On Mon, 2003-03-10 at 17:10, Dan Allen wrote: > > I would start by adding a join I guess in the doSelectAll(). I > > guess my question is, people say to leave the implementation of the > > business logic out of the Action, which would mean no Criteria > >

Re: [OT] How bad is to use DB ids on links??

2003-03-10 Thread David Graham
It's not bad to use ids in links unless you allow the user to do something with that information. David From: awc <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: [OT] How bad is to use DB ids on links?? Da

RE: struts database application

2003-03-10 Thread Marco Tedone
Hi, maybe you are interested in joining my project on Sourceforge. Have a look at: http://sourceforge.net/projects/xml-op/ We have urgent needs for a web master > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, March 10, 2003 11:19 AM > To: [EMAIL

[OT] How bad is to use DB ids on links??

2003-03-10 Thread awc
Hi All, Subject says it all. How bad is to use links like http://.../myproject/news/view.do?id=1356 where id is real id of the DB row. I have tried to get around this by caching result in list and show indexes. But that looks like it is going to be hard to maintain. If user opens two search windo

[OT] How bad is to use DB ids on links??

2003-03-10 Thread awc
Hi All, Subject says it all. How bad is to use links like http://.../myproject/news/view.do?id=1356 where id is real id of the DB row. I have tried to get around this by caching result in list and show indexes. But that looks like it is going to be hard to maintain. If user opens two search windo

Re: peer design to generate list

2003-03-10 Thread Dave Newton
On Mon, 2003-03-10 at 17:10, Dan Allen wrote: > I would start by adding a join I guess in the doSelectAll(). I > guess my question is, people say to leave the implementation of the > business logic out of the Action, which would mean no Criteria > objects in the Action. So who owns this criteria

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread David Graham
Then that is a browser specific issue. When I hit the back button in Opera, all of the form fields are just how I entered them. Remember that the back button does not contact the server so Struts has nothing to do with this. David From: "Ron Day" <[EMAIL PROTECTED]> Reply-To: "Struts Users

Re: [OT]:Hiding layers in HTML

2003-03-10 Thread Dan Allen
> Thank you all for your replies. I think I will have to get some good hold on > regular expressions > > I found a site which lists possible regular expressions . This should help > me, anyway even buying book should do > > http://demo.freshwater.com/SiteScope/docs/regexp.htm > > Now I have anot

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Ron Day
sorry, I think we are going in circles. This is a multipage form (3 to be exact but with only one actionform), BUT my whole original issue was: When they hit the back button the original form content IS either absent or different to their last entries (I do a reset in the actionform0. Am I d

RE: Sort a collection in alphabetic order

2003-03-10 Thread Yan, Charlene
Try this: import org.apache.commons.beanutils.BeanComparator; Collections.sort(people, new BeanComparator("lastname")); Charlene -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 4:33 PM To: 'Struts Users Mailing List' Subject: SV: Sort a coll

peer design to generate list

2003-03-10 Thread Dan Allen
Assume that I have a member database with 3 different tables, one for members, one for companies and one for addresses. I want to display a list that is something like Member Name Company Phone/Fax E-mail Naturally I would want to prepare an ArrayList of member objects to be iterated o

RE: Oracle Data Source Config

2003-03-10 Thread Marco Tedone
If Weblogic release a connection pool under a jndi name, you can get a connection from the pool. I've done it with Jboss. > -Original Message- > From: Austin Lowry [mailto:[EMAIL PROTECTED] > Sent: Monday, March 10, 2003 4:09 PM > To: [EMAIL PROTECTED] > Subject: Oracle Data Source Config

Re: dynamic generated controls

2003-03-10 Thread nash e. foster
I've used code like this in my Action class execute/perform method: String inputs[] = request.getParameterValues(s); for (int x = 0; x < inputs.length; x++) { String oneInput = inputs[x]; dosomething(oneInput); } This seems to work quite well, assuming all the form tags ar

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread apachep2
If this is a multi-page form, save token in the first load action, check token on every page and reset token after final submission. -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: March 10, 2003 4:49 PM To: [EMAIL PROTECTED] Subject: RE: The Back button on on multi-

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread apachep2
There are two issues regarding your post. 1. How to prevent Back and double-submission. 2. How to validate. For issues one, token is a better approach. For issues two, you can always display validation errors on the same submission page instead of going into next page. -Original Message---

Validating conditionaly required fields?

2003-03-10 Thread Greg Hess
Hi All, I am adding some new validation to a form that is currently being managed by the validation framework. My form has several properties that are now optional. The user is to supply a URL and a corresponding label. The user has the option to enter 1-6 Label/URL combinations. I need to requir

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread David Graham
If this is a multi-page form, then don't use tokens and let them use the back button to correct the data. If it's a single page form, use tokens and provide an update form where they can correct any mistakes they made on the add form. The difference is that the multi-page form will be accumula

DynaValidatorForm and dynamic ImageButtonBean instances

2003-03-10 Thread Ken Pelletier
I've been unable to locate and example, faq or post to this list that addresses this exactly. I'd like to be able to create a form that has a set of dynamically-generated image buttons, each associated with an item in a list. I'd like to associate the image buttons with the items by the items'

Strange DynaValidatorForm behaviour during FIRST submit

2003-03-10 Thread Zsolt Koppany
Hi, I have inherited (extended) a DynaValidatorForm. I don't know whether this is the reason but the FIRST time when I submit such a form from IE (Windows-XP a couple of days old, IE gives feedback in the progress bar but the form will never be submitted until I click on the submit button again. T

[OT]:Hiding layers in HTML

2003-03-10 Thread Vinay
Thank you all for your replies. I think I will have to get some good hold on regular expressions I found a site which lists possible regular expressions . This should help me, anyway even buying book should do http://demo.freshwater.com/SiteScope/docs/regexp.htm Now I have another question , whi

[NEWS] Struts Hibernate Example 0.01

2003-03-10 Thread Ted Husted
An early release of the Struts-Hibernate Examples application is available for download. The initial posting includes a port of the Hibernate eg1 servlet to a Struts application. Struts-Hibernate is a growing suite of example applications and utilities about using the Hibernate persistence tool

Re: ActionServlet Action caching problem

2003-03-10 Thread nash e. foster
I've had problems with references to beans on instance variables in an Action object getting stale. I'm on Jboss and in my experience the stale references hork a nice fat RMI exception. Can you turn debug logging on in your execute / perform method and see if that's ever getting called? In my c

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Ron Day
I'm not relying on the back button. Believe me, I wish it wasn't there. It is and the user will use it.. i'm trying to recover from it in a reasonable way. R -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 3:34 PM To: Struts Users Mail

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Ron Day
I completely understand your example and how validation works. In my example, the error is not a validation error, it is a user error (as my example said a wrong phone number) Say he/she typed in a home phone number and wants to go back and change it to his work phone. The user instinctively w

dynamic generated controls

2003-03-10 Thread miguel angel rojas aquino
hi, i'm creating a html form that dinamically adds new rows to a html table via javascript, so it goes to the server only when the user ends the data capture, like a jtable control in a swing app, so the problem now is, how can i map all this dynamic controls to the corresponding ActionForm? is

SV: Sort a collection in alphabetic order

2003-03-10 Thread Søren Blidorf
Sorry, but I can't get it to work. Does any body have a simple example I can look at? Soren -Oprindelig meddelelse- Fra: nash e. foster [mailto:[EMAIL PROTECTED] Sendt: 10. marts 2003 19:27 Til: Struts Users Mailing List Emne: Re: Sort a collection in alphabetic order You could have

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Dave Newton
On Mon, 2003-03-10 at 16:07, Ron Day wrote: > So, how can they correct a user error (i.e wrong phone number) on the > previous page, and resubmit the form? Show 'em a "is this info correct?" page and take it from there. Relying on the "back" button to do anything useful is a bad idea--how would yo

Re: ActionServlet Action caching problem

2003-03-10 Thread David Graham
Does that Action contain member variables? Maybe 2 threads are overwritting member data and causing the Action to fail. David From: "Whitmire, Jeffrey" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Subject: ActionSe

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread David Graham
1. User submits form with invalid data. 2. Form bean's validate() method returns ActionErrors 3. Struts *forwards* the request back to the input page with errors 4. Input page displays errors. 5. User submits form again, if invalid goto step 1. There is no valid reason for the user to use the back

RE: when will the reset method be called

2003-03-10 Thread apachep2
Can you search archive? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: March 10, 2003 3:57 PM To: [EMAIL PROTECTED] Subject: when will the reset method be called Hi, When does the reset method of the formbean get called. and why?? It is getting called automa

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Ron Day
So, how can they correct a user error (i.e wrong phone number) on the previous page, and resubmit the form? R -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 3:01 PM To: [EMAIL PROTECTED] Subject: RE: The Back button on on multi-page forms

RE: Sort a collection in alphabetic order

2003-03-10 Thread Damm, Gary
Keep in mind Strings implement Comparable. So if the lastName field of your PeopleBean is a String it makes the local sorting that much easier (no need to make changes to the PeopleBean). You can just do the comparisons based on the lastName field (or any other field that implements Comparable

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Ron Day
I'm not sure I am explaining my problem correctly. 1) a Jsp page displays a form with text boxes, radio and checkboxes. 2) Form is filled out and submitted. 3) if validated, the next part of the form is dispayed with a second jsp page. 4) But, User hits the browser back button 5) First form is re-

ActionServlet Action caching problem

2003-03-10 Thread Whitmire, Jeffrey
I've got a weird one. I'm hoping that somebody else has encountered this before and can help. We are in the midst of load testing our app before rolling it out to production. I have one action class (only one) that starts failing well over an hour into the test. It appears that the instance of

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread David Graham
Pressing the back button does not contact the server and thus cannot post any information. When the user submits the form again, their token will be invalid and your action will prevent a duplicate post. David From: "Ron Day" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL

RE: Sort a collection in alphabetic order

2003-03-10 Thread David Haynes
Although I don't know anything about Soren's specific problem, I have had times where the database is protected by a bean and the process of having a new data access method on the bean is simply too complex to be believed (i.e. you have about a gazillion review processes to go through). In these ca

when will the reset method be called

2003-03-10 Thread Rajesh . Jayabalan
Hi, When does the reset method of the formbean get called. and why?? It is getting called automatically before coming into my action (second time) how do I stop calling reset.? Regards Rajesh J - To unsubscribe, e-mail: [EM

RE: Sort a collection in alphabetic order

2003-03-10 Thread apachep2
Comparable is always a good idea. But I am curious to know why you are unable to do a re-SELECT statement? -Original Message- From: David Haynes [mailto:[EMAIL PROTECTED] Sent: March 10, 2003 3:49 PM To: 'Struts Users Mailing List' Subject: RE: Sort a collection in alphabetic order Since

RE: Sort a collection in alphabetic order

2003-03-10 Thread David Haynes
Since you are in a while(rs.next()) context, why not sort on insertion? Just pop your results into a Vector (or other collection) in sort-order. Depending upon the number of elements expected, you could speed the insertion using a number of methods. If your lists are relatively small, it may be eff

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread apachep2
If token is invalid, nothing can be submitted. -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED] Sent: March 10, 2003 3:41 PM To: Struts Users Mailing List Subject: RE: The Back button on on multi-page forms ?? Maybe I'm dumb, but it is not apparent to me how the "token" is

Re: Regular Expressions

2003-03-10 Thread Dan Allen
> Not that I have seen per se. There is a site that has some pre-built > regexs but Im sorry I cant remember the URL. Your best bet is to go buy > the Oreilly book "Mastering Regular Expressions" It is pretty much the > bible of regex and well worth the investment. KDE 3.1 has an awesome regula

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Ron Day
Maybe I'm dumb, but it is not apparent to me how the "token" is used to make the back button post the correct form information. R -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:48 PM To: [EMAIL PROTECTED] Subject: RE: The Back button on on

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread apachep2
If someone still think token is hard to understand, let me elaborate it a bit. For my application, what I am doing is 1. saveToken in my load action 2. Load page, struts will automatically puts a hidden field on the page. 3. Click button 4. In my action class, I check isTokenValid 5. If invalid, I

Re: Nested tag problem

2003-03-10 Thread Yaron Sela
Dear David Thanks a lot for your help. Yaron - Original Message - From: "David Graham" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 8:23 PM Subject: Re: Nested tag problem > We already provide FAQ pages on the Struts site. Unfortunately, this > particular is

Re: Sort a collection in alphabetic order

2003-03-10 Thread Vic Cekvenich
http://edhill.its.uiowa.edu/display-0.8/ Robert Taylor wrote: Do it in the query. select ID, FIRSTNAME, LASTNAME from people order by LASTNAME, FIRSTNAME robert -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 1:17 PM To: [EMAIL PROTECTED] S

Re: JavaServer Faces - Is it OK to use it now?

2003-03-10 Thread Mete Kural
Thanks for you advice. Do you have any vague estimates on how long it will take JSF to become suitable for Struts-based production applications? a) 2-3 months b) 4-6 months c) 6-12 months d) more than 1 year Thanks, Mete - To

Re: Regular Expressions

2003-03-10 Thread Dave Patton
Not that I have seen per se. There is a site that has some pre-built regexs but Im sorry I cant remember the URL. Your best bet is to go buy the Oreilly book "Mastering Regular Expressions" It is pretty much the bible of regex and well worth the investment. Dave Patton On Mon, 2003-03-10 at 10

Re: Sort a collection in alphabetic order

2003-03-10 Thread Dave Patton
I concur with Nash. Use a Comparator Object for this. Itis in the java.util package. Dave Patton On Mon, 2003-03-10 at 10:27, nash e. foster wrote: > You could have your PeopleBean implement Comparable, which is pretty > easy, and then use TreeSet to create a sorted set using your compareTo

Validating conditionaly required fields?

2003-03-10 Thread Greg Hess
Hi All, I am adding some new validation to a form that is currently being managed by the validation framework. My form has several properties that are now optional. The user is to supply a URL and a corresponding label. The user has the option to enter 1-6 Label/URL combinations. I need to requir

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread David Graham
You'll notice that I also pointed you to the struts-example app that shows you how to use the methods you found in the javadoc. David From: "Ron Day" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: RE: T

RE: The Back button on on multi-page forms ??????

2003-03-10 Thread Ron Day
Khalid I will share anything I find. Have not got too much help so far. I am digging into the "tokens" Javadoc does not say much !! Ron -Original Message- From: Khalid K. [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:25 PM To: [EMAIL PROTECTED] Subject: Re: The Back b

Re: JavaServer Faces - Is it OK to use it now?

2003-03-10 Thread David Graham
JSF isn't final yet so I wouldn't use it for any production projects. David From: "Mete Kural" <[EMAIL PROTECTED]> Reply-To: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: JavaServer Faces - Is it OK to use it now? Date: Mon, 10 Mar 2003 10:39:19 + Hello, I'm beginning a new Struts-b

RE: Web sites using struts

2003-03-10 Thread Sri Sankaran
Check out http://marc.theaimsgroup.com/?l=struts-user&m=104627418203266&w=2. Sri -Original Message- From: Damm, Gary [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:35 PM To: [EMAIL PROTECTED] Subject: Web sites using struts I know this has been asked before but I'm getting e

  1   2   >