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?
- Origi
Try to include in your JSP:
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 everything?
>
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
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: <[EMAI
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 p
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 rever
I chose that path also. I serialize the form bean to a hidden field into the
page, and de-serialize it when it comes back.
More here, follow the thread.
http://marc.theaimsgroup.com/?l=struts-user&m=100041688818929
--Renaud
- Original Message -
From: "Andy Noble" <[EMAIL PROTECTED]>
. 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
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,
is your friend.
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 ty
Try using "&" instead of "&" in your path.
- Original Message -
From: "chiji nwankwo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 20, 2001 8:17 AM
Subject: GLOBAL FORWARDS
> Hi,
>
> Can anyone see what I am doing wrong?
>
>
>
> Application developer (ibm) se
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 the
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.
serializing and encoding the
> form bean?
>
>
> - Original 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. The
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. Grr.
At this point I think I'm going to write my own encoding...
- Original Message -
From: "Renaud Waldura" <[E
readObject();
}
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
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 Mes
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 URLEncoder.en
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 befor
19 matches
Mail list logo