You need to use , so the answer is that you have to use the
taglibs unless you do some serious coding changes to the framework.
Why do you want to use the form but not the taglibs? If you just want
to do that, build your own ActionForm with your own autopopulation
classes, etc.?
What you are try
Hello,
Can we use struts without using its taglibs ? We will
just write plain JSPs. If yes how do we get the
values into and from our ActionForms ?
regards,
Nitin
__
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://s
M Murali wrote:
Thank you very much. I am confused, Is there any way I can use the taglibs with
out using table tag. I already have a table designed, some columns have check
boxes,some have edit boxes ..etc. I don't want to change the table display.
Just needed some thing which suports paging wi
Thank you very much. I am confused, Is there any way I can use the taglibs with
out using table tag. I already have a table designed, some columns have check
boxes,some have edit boxes ..etc. I don't want to change the table display.
Just needed some thing which suports paging with out effecting
i have one doubt. Connection Pooiling only possible thro' JSTL
Greg,
thanks for the advise. However I don't think those
are the causes of the problem. I tried changing them
and it didn't make a difference. I still got the
NullPointerException.
--- Greg Pelly <[EMAIL PROTECTED]> wrote:
> I think you have 2 errors in the HTML below
>
> 1. try changing acti
I think you have 2 errors in the HTML below
1. try changing action="/viewProjects" to action="viewProjects" (not sure if
this is necessary)
2. you need to use rather than an
--
--
Greg
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday,
Hi folks,
I am using a DynaActionForm with an Action. I have
the following exception when the form is submitted.
but if I use a regular ActionForm it's ok... what's
wrong? thanks in advance
my form-bean:
my action-mapping:
hi,
I am trying to use . In my Action
class I added an error with the key login.failure. My
question is where should I specify the key=value pair.
I specified it in the default message-resource file.
My struts-config:
but the key was not recognized. what's wrong?
thanks in advance.
You're in luck! There's a number of tag libraries to simplify this:
http://displaytag.sf.net
http://valuelist.sf.net
http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
Demos: http://raibledesigns.com/page/rd?anchor=there_s_a_new_sorting
Matt
On Mar 10, 2005, at 5:22 PM, M Murali
Does any one know, how the navigation can be done. I just want to have a
dynamic pages generation depending on number of rows in recordset , Pave Prev
--- Page Next
Is there any good sample how this can be implemented or any jar files
Thanks
_
wo_shi_ni_ba_ba wrote:
do struts developers usually store user as an object
in session?
Yes, that is typical.
or does struts have additional framework
for handling user management.
No. But there is container managed security, which has its own concept
of a "user" (typically represented by a ja
After having deployed my struts/tiles web application on a Struts/Tiles
hosting site,
I now find that the CSS style sheet for the application can't be found.
All elements are layed out in a linear fashion, without so much as a
hint of any posinitioning. Also, when I click on a link to a struts
do struts developers usually store user as an object
in session? or does struts have additional framework
for handling user management.
thanks in advance
__
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.y
thank you all for the elaborate explaination!
--- Günther Wieser <[EMAIL PROTECTED]> wrote:
> as long as you don't have a clustered environment or
> session persistence
> enabled in your servlet container, there shouldn't
> be much difference in
> adding an object to a session or request.
>
> but
as long as you don't have a clustered environment or session persistence
enabled in your servlet container, there shouldn't be much difference in
adding an object to a session or request.
but it doesn't make sense to put it in session scope if you don't use it is
session scope, but only in request
No, it's all memory. But, you have to remember that session attributes
stay in memory for the life of the session (which typically spans many
requests and perhaps all day long), whereas request attributes stay in
memory for the life of the request. In other words, requests don't
really require
servlet.getServletContext() should work.
Matt
On Mar 10, 2005, at 2:44 PM, Omar Didi wrote:
is there a way to either get or from
web.xml inside an Action class.
i know within a jsp or servlet i can use
getServletContext().getInitParameter("com.index"). this method doesn t
work inside an Action
In terms of performance, does storing an attribute
into the session cost more than storing it into the
request? how significant is the overhead?
__
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/
Hi,
I have a list which I am iterating and displaying data in each row.
I have check box for each row.
For the value of check box I am sending the objectID for each row.
I have 2 buttons delete, update.
When these buttons are clicked, I need to send ids.
I neew ids only and not status in the acti
is there a way to either get or from web.xml
inside an Action class.
i know within a jsp or servlet i can use
getServletContext().getInitParameter("com.index"). this method doesn t work
inside an Action class.
thanks.
-
To un
Thanks for the link & the offer, Leon. I was actually able to fix our issues
once I realized that the root of problem was an apparently-well-know flaw in
IE.
In case anyone is interested, the flaw is that IE auto-adjusts box elements if
contents of the box are wider than it's defined size (F
Ok, Now I believe. I traced to code back to the Java Core and it will
only take a file :(
But I am going to try using a controller to dump the file from the
database into a directory before it is "inserted" as a way around
this.
The reason for all of this is that we provide a web application for
If you are talking about 'Struts: The Complete Reference' then I vote
for that one, reall straight forward and easy to read.
Ted Husted wrote:
For newbies, I like Struts for Dummies. :)
(Really, I do!)
Struts Cookbook (ORA) is quite good for the pragmatic programmer ready
to fine tune a basic app
For newbies, I like Struts for Dummies. :)
(Really, I do!)
Struts Cookbook (ORA) is quite good for the pragmatic programmer ready
to fine tune a basic application. Struts Recipes (Manning) is good for
more advanced topics. The cool part is that neither of these "source
books" overlap much. You
My next project looks like it will be a portal-type app to display
information about our operation. Different people will be allowed to see or
will choose different things, based on what they do within the organization.
So I asked Google about Struts and Tiles and Portal, and, well, didn't find
m
On Thu, 10 Mar 2005 13:46:09 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "wo_shi_ni_ba_ba" <[EMAIL PROTECTED]>
>
> > this might be a silly question, but how do I find out
> > what version of struts I am using.
>
> Look inside struts.jar at the META-INF/manifest.mf file.
>
> > 2.what ar
So, what is your favorite ide?
I love these debates.
Some of you guys have some really wacky ideas and to be honest it's
entertaining.
It's a crazy world out their and i'm glad i have all you nutcases to
share it with.
To be honest there are three persistence solutions that I would
currently u
That's right. It's quiet a luxury not to deal with legacy shit...
But even if. As long as the guy/gal who made up the DB is not fully
incompetent.
GreetZ
Nils
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 10, 2005 10:20 PM
To: Struts Users Mail
That's right. It's quiet a luxury not to deal with legacy shit...
But even if. As long as the guy/gal who made up the DB is not fully
incompetent.
GreetZ
Nils
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 10, 2005 10:20 PM
To: Struts Users Mail
From: "wo_shi_ni_ba_ba" <[EMAIL PROTECTED]>
> this might be a silly question, but how do I find out
> what version of struts I am using.
Look inside struts.jar at the META-INF/manifest.mf file.
> 2.what are the significant changes from 1.1 to 1.2.
> Can someone point me the the source or give
With Rational Application Developer, it's version 1.1 so I'm assuming
it would be the same for Web Developer.
Richard.
On Thu, 10 Mar 2005 11:25:50 -0800 (PST), wo_shi_ni_ba_ba
<[EMAIL PROTECTED]> wrote:
> hi folks,
> Two questions:
> 1.
> this might be a silly question, but how do I find out
> w
Hi
If you define validate=false in the struts config file then your form will not
be validated when you click either PREV or NEXT buttons. Then if you want to
validate on clicking the NEXT button, you can validate the form by explicitely
calling the validate method like
ActionErrors errors= for
Another recommendation:
http://www.csszengarden.com/
> Our biggest issue right now is that the ultra-cool dropdown
> menus we developed a while ago look great in IE, but are
> practically unusable in Firefox.
Send me the code or an example i will pass it to our web designer.
> (Some days, you
Another recommendation:
http://www.csszengarden.com/
> Our biggest issue right now is that the ultra-cool dropdown
> menus we developed a while ago look great in IE, but are
> practically unusable in Firefox.
Send me the code or an example i will pass it to our web designer.
> (Some days, you
So basically there is no way that I can construct a
struts tag(or jsp tag in general) on the fly and
render it fully?
thanks
--- "Fogleson, Allen" <[EMAIL PROTECTED]>
wrote:
> Nope,
>
> Part of the problem here is that the struts tag
> is
> rendered as
>
> The other part is that you would
Nils Liebelt wrote the following on 3/10/2005 3:10 PM:
- You make up your model. I use UML.
- Look for a case tool where you can generate some code. Poseidon is
great.
- Put in the your xdoclet tags for the mapping.
- Put in your xdoclet tags for the form beans.
- May be write a couple conversio
From: "Greg Pelly" <[EMAIL PROTECTED]>
> I am having trouble with the ActionForm reset() method. I am using the
> method to handle prepopulating form values.
The reset method gets called every time the form is populated from the
request params. You typically only want to prepopulate a form once,
I am using it in a tile, it's mainly for reusability
and efficiency. I created a jsp template that takes
some tile parameters and fill them in and tries to
create form elements on the fly. But i guess it wont'
work
--- Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "wo_shi_ni_ba_ba" <[EMAI
Hi all,
Here's is a comment from a first time OJB user. I had to do a web project
with a quiet large entity relationship model. Many 1toN and MtoN relations.
So what do you do?!
- You make up your model. I use UML.
- Look for a case tool where you can generate some code. Poseidon i
Hi all,
Here's is a comment from a first time OJB user. I had to do a web project
with a quiet large entity relationship model. Many 1toN and MtoN relations.
So what do you do?!
- You make up your model. I use UML.
- Look for a case tool where you can generate some code. Poseidon i
On 10 Mar 2005, at 13:48, NetSQL wrote:
Ex#2: you can create a cursor to give everyone in NYC a raise, and go
by row by row. Or you can do a set operation in one command. I
allways avoid row by row, and allways try to go for set, as per
direction by Celko and others. Your millage may vary.
Okay
From: "wo_shi_ni_ba_ba" <[EMAIL PROTECTED]>
> I want to have tags like the following:
> property=""/>
That's a new one...
When you're writing a JSP, in what situation would you NOT know what kind of
form element you want to display for a particular form property?
--
Wendy Smoak
I am having trouble with the ActionForm reset() method. I am using the
method to handle prepopulating form values. My Struts app uses the Struts
Validator's DynaValidatorForm (which extends ActionForm via the
DynaActionForm class). I am attempting the following behavior in a class I
call "BaseAct
Scott Lamb wrote:
NetSQL wrote:
(RowSet is realy a ArrayList of
HashMaps. Rows of Columns)
What does a ArrayList of HashMaps get you over a java.sql.ResultSet?
Collections are lighter and easier to SoA.
I look at it like this:
-SQL is a Set oriented lang.(row by row processing is exponentialy
On 10 Mar 2005, at 11:55, Scott Lamb wrote:
- consistent dynamic sql (from what I see, there are different ways
for altering the order and the where clauses..are there others?)
There's also the , which is similar to your iterator.
Ahh, lost a later draft with more here.
There's no general-purpose
Nope,
Part of the problem here is that the struts tag is
rendered as
The other part is that you would have to write some kind of preprocessor
for the page that basically acts as a web container to process your
tags, then pass the preprocessed page to the jsp compiler.
Its not "un-doable" but
hi folks,
Two questions:
1.
this might be a silly question, but how do I find out
what version of struts I am using. It came bundled
with my websphere v6 rational web developer. how do I
find out the version number for struts?
I took note of struts-html.tld
http://java.sun.com/j2ee/dtds/web-jsptagl
The SecurtiyFilter package
(http://sourceforge.net/projects/securityfilter/) uses a servlet filter
and allows you to still use the request.isUserInRole stuff as well. I'm
not familiar with Acegi so I'm not sure how the two stack up against
each other feature-wise, but I was able to get a worki
I've actually handled this in a previous project by writing a class that
implements the ResultSet interface (well, *some* of it anyway).
Internally the data gets stored as an ArrayList of HashMaps, so it's
completely disconnected, and it's a drop-in replacement any place we would
have used a Resul
On Thu, 10 Mar 2005 12:56:04 -0600, Scott Lamb <[EMAIL PROTECTED]> wrote:
> NetSQL wrote:
> > Even silly JSF uses RowSet as DTO. (RowSet is realy a ArrayList of
> > HashMaps. Rows of Columns)
>
> What does a ArrayList of HashMaps get you over a java.sql.ResultSet?
The major disadvantage of using
NetSQL wrote:
Even silly JSF uses RowSet as DTO. (RowSet is realy a ArrayList of
HashMaps. Rows of Columns)
What does a ArrayList of HashMaps get you over a java.sql.ResultSet?
I'll tell you a big disadvantage: it keeps everything in memory. What if
the result set is large?
I look at it like th
Along those lines, I've added an entry to the iBatis Wiki
(http://wiki.apache.org/ibatis/). Select "3rd Party Contributions" and review
the section "Convert ResultSet to JSTL Result". You can think of JSTL's Result
interface as something *similar* to JDBC's CachedRowSet and BeanUtils'
RowSetDynaCla
I want to have tags like the following:
property=""/>
My goal is to pass in attribute whose value can be
used again to construt struts tags dynamically. Is
this doable? for example, passing in the right struts
html tag and concatenate it with other struts tags to
form a new struts tag.
but when
Joe Hertz wrote:
The point is... I use ArrayList of Maps now for my DTO,VO and ever as a
message object for WS/SOA.
Wherever I used to use a bean, now I use a collection, and I like
DynaMaps.
I think I'm buying what you say in a big kinda way.
Cool.
I worked for years in an architecture that esc
Kelly,
I think you have conflicting requirements. You can't rely on strings outside
the database for I18N support and then rely on them for sorting within the
database. I think this leaves you with two options:
1. Create a 2nd table which contains your text messages. Join to this table
and pull o
I would use the aforementioned suggestion and use a Filter with a
RequestWrapper to mimic the request.isUserInRole stuff - then you can
use the "role" attribute in your action-mappings, your tiles
definitions, and with .
This is what Acegi Security does:
http://cvs.sourceforge.net/viewcvs.py
This isn't necessarily a Struts-specific question, but I'm hoping I can get
some good ideas from this group.
I'm working on a Struts-based web app that has various i18n requirements.
Struts handles the localization quite well and for the most part makes the
need to support a new language pretty tr
This isn't necessarily a Struts-specific question, but I'm hoping I can get
some good ideas from this group.
I'm working on a Struts-based web app that has various i18n requirements.
Struts handles the localization quite well and for the most part makes the
need to support a new language pretty tr
Quid pro quo for answering my CSS post... :-)
Just surround your pattern with start-of-line (^) and end-of-line ($)
chars and you should get the behavior you desire:
time
^((?:0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9])$
Incidentally, I came across this useful uti
I use http://www.experts-exchange.com for a lot of CSS and JavaScript
issues and it works quite well. I think you have to pay to ask
questions now - but it's worth it.
Matt
On Mar 10, 2005, at 11:17 AM, Scott Piker wrote:
Hey all,
Sorry for the OT post, but I know a number of folks here are qui
Hey all,
Sorry for the OT post, but I know a number of folks here are quite
skilled with CSS. We're having some really annoying cross-browser CSS
formatting issues and I was wondering if someone could direct me to a
good site/forum where I could find common compatibility issues between
IE and oth
Matt,
Thanks for the info. We already have our own Authentication mechanism. I
am just thinking about how is it to make use of current role information to
determine what get shown on the UI. Does that mean I have to write custom
tag lib to deal with this.
For isUserInRole, does this only com
I'm trying to validate that the proper format has been used to enter a
24 hour time. I'll admit I'm not a regex expert, but I thought the
following would work. Actually, I got it from a regex expert friend,
so I'm just assuming it should work.
time
((?:0?[0-9
Thanks, I'll look at Velocity. I also know that I can achieve what I
want using Freemarker, but really this doesn't seem like much of a
stretch for Tiles.
The tag already puts together seveal pieces of JSP code
before the servlet is generated by reading from a file. All I really
want to do is han
If I understand correctly struts provide both client
side and server side validation so that for someone
reason a validation error got slipped by the client
the server validation would still be able to catch it,
am I right?
thanks
--- Niall Pemberton <[EMAIL PROTECTED]>
wrote:
> The client side J
On 10 Mar 2005, at 07:59, Larry Meadors wrote:
Disclosure: I am an iBATIS developer, so I'd like to offer another
opinion on the comparison.
Cool!
I might add an appendix to my documentation with this comparison. When
I do, I'll give you another opportunity to complain. :)
- iBATIS does database
You could look at using the Acegi Security Framework. I've used it to
replace J2EE container authentication in AppFuse - and didn't have to
change any code. Works with request.isUserInRole and all that + it
allows you more fine grained control on the internals.
http://acegisecurity.sourceforg
Betty,
Feel free to use a Filter which wraps the HttpServletRequest (see
HttpServletRequestWrapper) and provides the implementation for isUserInRole
for your custom role model.
Thanks,
Paul
-Original Message-
From: Betty Koon [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 10, 2005 12:5
> Hi all,
>
> Anyone has any good strategy or pointers for doing
> user/role delegation with struts. We are not using
> J2EE container authentication. We will have our own
> role model. I will like more fine grain control on
> turning on and off visual elements with different
> role
> informati
thank you
--- Niall Pemberton <[EMAIL PROTECTED]>
wrote:
> The client side JavaScript thats generated includes
> a "bCancel" var - which
> if set to "true" causes the validation to be
> skipped. So for your "previous"
> processing, you can just set this variable to "true"
> and submit the form.
>
Vic writes:
> :snip:
> The point is... I use ArrayList of Maps now for my DTO,VO and ever as a
> message object for WS/SOA.
>
> Wherever I used to use a bean, now I use a collection, and I like
> DynaMaps.
>
> maybe one day you guys catch up;-)
I think I'm buying what you say in a big kinda way
Vic writes:
> :snip:
> The point is... I use ArrayList of Maps now for my DTO,VO and ever as a
> message object for WS/SOA.
>
> Wherever I used to use a bean, now I use a collection, and I like
> DynaMaps.
>
> maybe one day you guys catch up;-)
I think I'm buying what you say in a big kinda way
Larry Meadors wrote:
- iBATIS has a lot of options to use JavaBeans, which I don't find
useful. I just take parameters in a java.util.Map and return a
java.sql.ResultSet directly. (I'm a DynaActionForm kind of guy, so using
a form bean form this would be a little out of place.)
OK, now I have to
Since I didn't get a response from the list, I did what any self-respecting
java programmer would do. I dug into the struts code.
From FormTag.java:
/**
* Renders the action attribute
*/
protected void renderAction(StringBuffer results) {
HttpServletResponse response =
(HttpServlet
Hi karthikeyan,
Stick with SQL based persistent frameworks like iBATIS. The learning curve is
minimal, expertise is easily available and your application will stand the test
of time. Relational databases and SQL are'nt going away any time soon. OR
mapping tools are like EJBs, full of hype. They
Bob Arnott wrote the following on 3/10/2005 10:04 AM:
Use the srcKey attribute on the tag to specify the property
in your resource bundle that you want to use:
http://struts.apache.org/userGuide/struts-html.html#img
Darn it Bob:) You made me look at the html:img tag again, and now I
realize it
haim wrote:
> HI.
>
> Please forgive me if this is a stupid question , I failed
> to find an answer for this issue.
>
> How do I place a message into an attribute of a taglib.
> For example lets assume that I want to place the src of
> an image from a recourse bundle. Using the
> tag.
>
> I th
Hi
I dont think you can do that,
--- haim <[EMAIL PROTECTED]> wrote:
> HI.
>
> Please forgive me if this is a stupid question , I
> failed to find an
> answer for this issue.
>
> How do I place a message into an attribute of a
> taglib.
> For example lets assume that I want to place the src
> of
Erik,
I implemented it in this way: thank you for your help!
Jan-Jaap
Erik Weber wrote:
Well, this is not great nice solution in my opinion, but it does seem
to be popular. This requires you to have a form on screen A and to use
POST instead of GET to request screen B. Also, it requires JavaScrip
HI.
Please forgive me if this is a stupid question , I failed to find an
answer for this issue.
How do I place a message into an attribute of a taglib.
For example lets assume that I want to place the src of an image from a
recourse bundle. Using the tag.
I thought that this should work
But i
I agree with Rick.
SQL has been around for years and years. IMO, it will outlive most
languages we are writing with today because of its wide acceptance.
Before using iBATIS, I used Hibernate. In my experience with it, it
made the simple things simple, and the difficult things all but
impossible.
On Wed, 09 Mar 2005 15:48:52 -0600, Scott Lamb <[EMAIL PROTECTED]> wrote:
> karthikeyan balasubramanian wrote:
> > I looked at iBATIS, it seems to be simple and easy to use. I will
> > also check out
> > others and let you know my thoughts.
>
> I'll add one to your list: Axamol SQL Library
>
Take a look at http://docs.codehaus.org/display/AW/AOP+Benchmark
Result shows Spring AOP to be slower than all other tested AOP
frameworks. They're lot's of comment on this bench on the net
(http://www.theserverside.com/news/thread.tss?thread_id=30238), ant
Spring seems to be "as quick as using
The client side JavaScript thats generated includes a "bCancel" var - which
if set to "true" causes the validation to be skipped. So for your "previous"
processing, you can just set this variable to "true" and submit the form.
- Original Message -
From: "wo_shi_ni_ba_ba" <[EMAIL PROTECTED
Remember that ultimately, a JSP is a servlet, albeit one which is
automatically created and compiled by transforming JSP syntax into
Java.
You would need to intervene in this sophisticated and low-level
process in order to store JSP code in a database and still have it
work. It's probably pos
Hi,
You can checkout archived messages on this issue at
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15779.html
answered by Ted himself.
Before preceeding do once again verify these things.
1. struts-config.xml has an entry for 'Message Resource Defintion'
Ex:
Nicolas,
Can you provide any metrics for the benchmarks when comparing Spring to
AspectWorks? What exactly does "not good for Spring" mean?
/robert
Nicolas De Loof wrote:
I get such a case recently : we are using Spring as IoC container. On
some situation we use a simple AOP interceptor.
Our cu
Thank you very much, Rick :")
- Original Message -
From: "Rick Reumann" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Thursday, March 10, 2005 5:07 AM
Subject: Re: [Help] I need tutorial which tells us how to integrate Struts
and Hibernet
Pham Anh Tuan wrote the following o
Hi,
I am getting an exception error when I try to display error messages from my
jsp file. The error I get is,
'Cannot find message resources under key org.apache.struts.action.MESSAGE'.
What is this error mean?
In my action, I have saveMessages(request, messages) where 'messages' is an
object of
On Mar 10, 2005, at 10:36, Rikesh Balan Krishnan wrote:
But all this methods are applicable only if the model class extends the
comparator interface.
No. If your "model class" do not implement java.lang.Comparable, you
can provide your own java.util.Comparator to
java.util.Collections.sort() an
The model class in this case Plan does not 'implement' the comparator
interface. That is the whole point, you are writing a comparator to inspect
the object.
-Original Message-
From: Rikesh Balan Krishnan [mailto:[EMAIL PROTECTED]
Sent: 10 March 2005 09:37
To: Struts Users Mailing List
Su
But all this methods are applicable only if the model class extends the
comparator interface.I too had a similar problem,but I was not able to
use the collection.sort because if the model class doesn't extend the
comparator interface, it will give a class cast exception.finally I had
to settle for
Hi All,
I am just coming up to speed on tiles and I have searched the archive
and not found the answer to this one.
I want to import JSP "files" into my layout which are stored in a
database. The key issue is that there are JSP tags in the "file"
stored in the database that need to be evaluated a
sort it in the private method readPlanObjectFromDB... in the query DB
select * from my_table ORDER BY .
|-+>
| | "Krishna Mohan |
| | Radhakrishnan" |
| | <[EMAIL PROTECTED]|
| |
Krishna,
The below example uses a comparator which orders a collection of objects
based on a property. You can make the criteria more complicated if you wish.
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
public class Test {
public static void ma
Use Collections.sort(list, new Comparator() {...});
or Collections.sort(list) if your Plan class implements Comparable
Nico.
Krishna Mohan Radhakrishnan a écrit :
Hi all,
I have a doubt regarding sorting in array List.
I have an array List which contains array list objects of type Plan.
The Plan o
Hi all,
I have a doubt regarding sorting in array List.
I have an array List which contains array list objects of type Plan.
The Plan object contains 3 variables : plantitle ,plandescription and
planname.
I have to sort the arraylist based on the plantitle first and then based
on the plandesc
I don't know if it is correct or not, but it is the way the internal
datasource manager in Struts behaves.
Anyway I wrote a plugin that "should" behave better:
http://sdsmanager.sourceforge.net/
I must say that using DataSource as part of a web application is not a
good practice (though I don't thi
99 matches
Mail list logo