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?
-
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
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
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
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
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
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
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
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
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
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
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.
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
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
();
}
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
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
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
17 matches
Mail list logo