I did what you said but that still does not go, here the code of my page
JSP.
I would have forgotten something?
%@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic %
script src=sortTable.js/script
html:form action=/myLookupDispatchAction.do method=GET
%-- Add a vertical scroll bar to the
This kind of HTML code works with me... What error(s) do your brower
display ?
html
head
titletest/title
/head
body
table id=table0 cellspacing=2 cellpadding=5
align=center bgcolor=black
tr
tdFirst Name/td
I placed your code in my JSP page, I can view
the table but I didn't see the name of the column
(header name) and I can't sort the table.
Do you have an idea ?
-Original Message-
From: Thomas CORNET [mailto:[EMAIL PROTECTED]]
Sent: 16 January 2003 09:46
To: Struts Users Mailing List
Try this...
At 10:21 16/01/2003 +0100, you wrote:
I placed your code in my JSP page, I can view
the table but I didn't see the name of the column
(header name) and I can't sort the table.
Do you have an idea ?
-Original Message-
From: Thomas CORNET [mailto:[EMAIL PROTECTED]]
Sent: 16
Hi Sandra.
For each column header you need a link that gives the required
parameters to your Action.
You can add 1 static and one dynamic parameter.
If you need more dynamic parameters, you need to add a map.
Without map:
html:link page=/sortmyRecords.do?staticparameterName=columName
Hi Marcus,
I don't understand why you speak about a tag html:link
page=/sortmyRecords.do?,
the aim of the script sortTable.js, is to update the page at the client side
no request
is done to the server. Isn't it ?
If we use an action to sort the list, a request is sent to the server and
the web
Oh - so you want to sort at the client side.
Well then your in the wrong mailinglist! ;-)
I mean you asked how to do it in struts.
that's always on the server side.
Of course you can do that with java script,
but imho java script sucks! ;-)
marcus
[EMAIL PROTECTED] schrieb:
Hi Marcus,
2003. január 16. 14:55 dátummal Marcus Biel ezt írtad:
I mean you asked how to do it in struts.
that's always on the server side.
Maybe but in this thread there was a script which did this, so that's the
reason it is discussed here.
Of course you can do that with java script,
but imho java
I finally found where to put the command onLoad='initTable(table0);' when
we work with Tiles components. It is in fact in the jsp file which is used
as model in which one definite inevitably a tag body. I thus put this JS
command but the element table0 is defined in another jsp. is it possible?
To resolve your problem, here is what you can do : write
scriptinitTable(table0);/script
after the tag /table of your table. The script only needs the
contents of the table to be loaded. Putting the code on the onLoad event of
the body make sure the script is executed after the
10 matches
Mail list logo