Re: Collection for ResultSet

2002-06-27 Thread Renaud Waldura
Somebody wrote a DataListHandler pattern to handle large result sets. http://www.theserverside.com/resources/article.jsp?l=DataListHandler All the solutions mentioned so far are good, simple, and easy to implement. But they don't scale: what if your ResultSet doesn't fit in memory? -

Re: changing from *.do to /do/* screws up everything?

2002-02-27 Thread Renaud Waldura
Try to include in your JSP: head html:base/ /head That should fix your relative links. - Original Message - From: Rob Breeds [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 27, 2002 9:39 AM Subject: changing from *.do to /do/* screws up

Re: Iterate Design Question

2001-11-30 Thread Renaud Waldura
Use a cursor. MySQL does it with: SELECT name FROM customers LIMIT 5, 10 Yes, it's optimized. http://www.mysql.com/doc/L/I/LIMIT_optimisation.html All databases can do that, maybe differently. --Renaud - Original Message - From: John M. Corro [EMAIL PROTECTED] To: [EMAIL

Re: Removing all beans from a session

2001-11-30 Thread Renaud Waldura
session.invalidate() @see http://java.sun.com/j2ee/j2sdkee/techdocs/api/javax/servlet/http/HttpSession .html#invalidate() - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 10:38 PM Subject: Removing all beans

Re: How to iterate in reverse order

2001-11-26 Thread Renaud Waldura
How about making your bean return a reversed collection? Collections.reverse() is your friend. - Original Message - From: Stefano Mancarella [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, November 26, 2001 6:28 AM Subject: How to iterate in reverse

Handling MaxLengthExceededException when uploading

2001-11-26 Thread Renaud Waldura
How am I supposed to handle the MaxLengthExceededException raised when someone attempts to upload a file bigger than the maximum size? This exception is raised inside RequestUtils.populate(), AFAIK way before I'm given a chance of handling it. Am I missing something obvious here? How else can I

Re: GLOBAL FORWARDS

2001-10-20 Thread Renaud Waldura
Try using amp; instead of in your path. forward name=viewClipStreamHigh path=/do/search?action=ViewClipamp;streamMode=High / - Original Message - From: chiji nwankwo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 20, 2001 8:17 AM Subject: GLOBAL FORWARDS

Re: Problem populating form bean with multiple parameters of same name

2001-10-20 Thread Renaud Waldura
Have you tried declaring your property as an array of strings? private String propertyName[]; public String[] getPropertyName() { ... } public void setPropertyName(String[] propertyName) { ... } It may just work. In general I've found Struts to be amazingly flexible with properties and their

Re: incrementing a number

2001-10-20 Thread Renaud Waldura
If the only thing you need to do is increment a variable, I think your way is still the best way. But usually people increment counters to access arrays or lists. In that case, if you have a list, an array, or any collection of objects you need to access and display in the page, logic:iterate is

Re: XML include hack to split struts-config.xml + Struts Digester

2001-10-20 Thread Renaud Waldura
of config files for the config init-param. If you have any questions let me know. -james [EMAIL PROTECTED] http://www.ejcenter.com/struts/ --- Vaughan Jackson [EMAIL PROTECTED] wrote: Hi, A while ago (Sept 10), Renaud Waldura posted this issue, saying that the only way

Re: Request / Session Scoped Beans, Best Practices

2001-09-30 Thread Renaud Waldura
Hi Stephen, I read your comments with interest. What alternatives are there to session scoped beans? One could use hidden variables to pass along simple data items, but that becomes awkward for storing lots of fields, or whole objects, as you have to unpack them in the JSP and pack them

Re: Radio Button..in struts..

2001-09-16 Thread Renaud Waldura
You could also iterate over a collection of your company numbers (if you have many). E.g. below I'm iterating over a collection of platforms (I previously prepared a collection named platforms). The radio buttons let me choose one platform; this is equivalent to a pop-up menu widget.

Re: Serializing form beans

2001-09-15 Thread Renaud Waldura
Message - From: Renaud Waldura [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 14, 2001 2:28 PM Subject: Re: Serializing form beans Take that back. There's still an issue with the encoding. My guess is that URLEncoder and/or String() constructor don't convert full bytes

Re: multibox and reset()

2001-09-14 Thread Renaud Waldura
The signature for reset() is the following: void reset(ActionMapping, HttpServletRequest) I don't know whether setting the array reference is null is enough, or you truly need to create a zero-length array like in your example below. I set mine to null, it seemed to work. - Original

Re: Serializing form beans

2001-09-14 Thread Renaud Waldura
(); } finally { if (in != null) in.close(); } return form; } - Original Message - From: Renaud Waldura [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 13, 2001 2:32 PM Subject: Serializing form beans I'm attempting to serialize a form bean to a hidden

Serializing form beans

2001-09-13 Thread Renaud Waldura
I'm attempting to serialize a form bean to a hidden field, but having a hard time doing it right. Looks like the serialized data is not encoding properly. Once I have serialized my bean, what encoding should I apply, if any, to have it transmitted back to me in good shape? I'm using

XML include hack to split struts-config.xml

2001-09-10 Thread Renaud Waldura
I found out about the XML include hack that can be used to split the struts-config.xml in more manageable portions: http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQuestionAnswer /action/SetAll/project_id/2/faq_id/16/topic_id/196/question_id/752 It's been mentioned many times