On 02/22/2011 01:30 PM, Emi Lu wrote:
> Hi Naveen,
>
>> String sortColParam = paramEncoder.encodeParameterName(TableTagParameters.
>>
>> /PARAMETER_SORT/);
>>
>> String columnName = (String)req.getParameter(sortColParam);
>
> How do you get "paramEncoder"?
>
> request.getParamEncoder?
I tried the following:
String sortColParam = new
ParamEncoder("row_rec").encodeParameterName(TableTagParameters.PARAMETER_ORDER);
String columnName = (String)req.getParameter(sortColParam);
The result is column number "1, 2, 3..."
Thank you,
--
Lu Ying
>
>> Thanks,
>> Naveen.
>>
>> On Tue, Feb 22, 2011 at 10:29 AM, Emi Lu<[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> > Is there a way, we can retrieve "column name" but not column
>> index when
>> > doing order by?
>> >
>> > String sort_index = req.getParameter((new
>> >
>>
>> ParamEncoder("row_rec")).encodeParameterName(TableTagParameters.PARAMETER_SORT));
>> >
>> > Could you provide
>>
>> I mean:
>> String sort_col_name = req.getParameter((new
>>
>> ParamEncoder("row_rec")).encodeParameterName(TableTagParameters.PARAMETER_NAME))
>>
>> Thank you,
>> --
>> Lu Ying
>>
>>
>> ------------------------------------------------------------------------------
>> Index, Search& Analyze Logs and other IT data in Real-Time with Splunk
>> Collect, index and harness all the fast moving IT data generated by your
>> applications, servers and devices whether physical, virtual or in
>> the cloud.
>> Deliver compliance at lower cost and gain new business insights.
>> Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
>> _______________________________________________
>> displaytag-user mailing list
>> [email protected]
>> <mailto:[email protected]>
>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>>
>>
>
>
--
Emi Lu, ENCS, Concordia University, Montreal H3G 1M8
[email protected] +1 514 848-2424 x5884
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user