I have to agree, I think the tag library is definitely Struts 2's weakest
link.  We really need an analog to the old Struts 1 HTML taglib for Struts
2.  With that and the JSTL tags, we're good to go.

P.S.  Thanks, I just shot coke out of my nose

  (*Chris*)

On Thu, Sep 11, 2008 at 2:07 PM, <[EMAIL PROTECTED]> wrote:

> I mean, what's wrong with OGNL other than that list! :)  Yeah, I think I
> have suffered through it so long that I am numb to the idiosyncracies.
> Actually, I hate the entire struts custom tag library and prefer JSTL.
> You're right, the StrutsRequestWrapper makes either expression language fair
> game.  Now if we can just figure out how to explain that ${} inside
> struts.xml.
>
> P.S. You seem like a real sharp guy -- now go buy my book.
>
> Peace,
> Scott
>
>
>
>
> On Thu, Sep 11, 2008 at 1:40 PM, Chris Pratt <[EMAIL PROTECTED]>wrote:
>
>> Trying to bring new developers up to speed with OGNL is nearly
>> impossible.  Consider this, you can use ${} in any tag library, unless it's
>> the <s: struts tags because they use OGNL so you have to use %{}, but you
>> don't necessarily have to use that for an OGNL expression if you don't want
>> to.  Unless you're in struts.xml, then when you use ${} you're actually
>> using OGNL not JSTL-EL.  Try to teach that to an entry level programmer or a
>> web developer, it's frustrating and unnecessary.
>>
>> There's no reason the Struts tags can't safely allow both JSTL-EL and
>> OGNL, they just have to do the JSTL inside the taglib and not rely on the
>> container to do the work.  I have a tag library that uses this technique and
>> works fine.
>>
>> I have the old Manning "Webwork in Action" but I definitely need to get
>> the new "Struts 2 in Action" since a lot has changed since Webwork.
>>
>> I'm actually in Northern California.
>>   (*Chris*)
>>
>>
>> On Thu, Sep 11, 2008 at 11:33 AM, <[EMAIL PROTECTED]> wrote:
>>
>>> Sweet!  I recently co-authored Struts 2 In Action for Manning.  What do
>>> you dislike about OGNL?  I am in St. Louis, how about you?
>>>
>>>
>>> On Wed, Sep 10, 2008 at 9:49 PM, Chris Pratt <[EMAIL PROTECTED]>wrote:
>>>
>>>> I've been using it for about 9 mo.  I didn't find the documentation they
>>>> had online too bad, but then again, it's not that great either.
>>>>
>>>> We're using Struts 2 riding on top of Spring with Tiles 2 for the view
>>>> and jQuery as the JavaScript library (and DisplayTag for tabular data,
>>>> obviously).  Other than OGNL, I love the whole stack.  We've been able to
>>>> easily extend the system where needed and pump out lots of pretty complex
>>>> application code very quickly.
>>>>    (*Chris*)
>>>>
>>>>
>>>> On Wed, Sep 10, 2008 at 6:46 PM, <[EMAIL PROTECTED]> wrote:
>>>>
>>>>> Thanks Chris --
>>>>>
>>>>> Have you used this tag library very long?  It seems like a neat tag but
>>>>> other than you, I haven't been able to get help anywhere.  I have read all
>>>>> the docs I can find, but they are pretty sketchy.  Do you know where 
>>>>> "good"
>>>>> examples/docs are?
>>>>>
>>>>> P.S. What web framework are you using?
>>>>>
>>>>> Peace,
>>>>> Scott
>>>>>
>>>>>
>>>>> On Wed, Sep 10, 2008 at 4:12 PM, Chris Pratt <[EMAIL PROTECTED]>wrote:
>>>>>
>>>>>> Hmmm, I've never used that feature, the documentation seems to
>>>>>> indicate that the number will be maintained by DisplayTag using the
>>>>>> following algorithm:
>>>>>>
>>>>>>  (Integer.parseInt(request.getParameter((new 
>>>>>> ParamEncoder(tableId).encodeParameterName(TableTagParameters.PARAMETER_PAGE))))
>>>>>>  - 1) * pageSize;
>>>>>>
>>>>>>
>>>>>> But I'm not sure what good that knowledge will do you =8^)
>>>>>>   (*Chris*)
>>>>>>
>>>>>>
>>>>>> On Wed, Sep 10, 2008 at 11:06 AM, <[EMAIL PROTECTED]> wrote:
>>>>>>
>>>>>>> Hey Chris --
>>>>>>>
>>>>>>> I don't have a paginated list!  I simply have a Struts 2 action where
>>>>>>> I have get/set over pageSize and totalSize.  Is there a pageNumber that 
>>>>>>> I
>>>>>>> can set?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Scott
>>>>>>>
>>>>>>>  <display:table name="employees" id="row" size="${totalSize}"
>>>>>>>
>>>>>>> pagesize="${pageSize}" partialList="true"
>>>>>>>
>>>>>>> requestURI="/hr/employeeAction_page">
>>>>>>>
>>>>>>> <display:column sortable="true" title="Row Number">${row_rowNum}</
>>>>>>> display:column>
>>>>>>>
>>>>>>> <display:column sortable="true" title="Employee Number">
>>>>>>> ${row.employeeNumber}</display:column>
>>>>>>>
>>>>>>> <display:column sortable="true" title="Name">${row.name}</
>>>>>>> display:column>
>>>>>>>
>>>>>>> </display:table>
>>>>>>>
>>>>>>> On Wed, Sep 10, 2008 at 11:16 AM, Chris Pratt <
>>>>>>> [EMAIL PROTECTED]> wrote:
>>>>>>>
>>>>>>>> My guess would be that your implementation of getPageNumber() from
>>>>>>>> PaginatedList is always returning 1.
>>>>>>>>   (*Chris*)
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Sep 10, 2008 at 8:12 AM, stanlick <[EMAIL PROTECTED]>wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> 1,528 items found, displaying 1 to 10.
>>>>>>>>> [First/Prev] 140, 141, 142, 143, 144, 145, 146, 147 [Next/Last]
>>>>>>>>>
>>>>>>>>> I have a situation where I maintain a maximum of 10 items in my
>>>>>>>>> collection
>>>>>>>>> at any one point.  I have coded the paging myself and it works fine
>>>>>>>>> (and
>>>>>>>>> fast).  The problem I have is that regardless of the page
>>>>>>>>> displayed, the
>>>>>>>>> text always reads 1,528 items found, displaying 1 to 10.  Has
>>>>>>>>> anyone seen
>>>>>>>>> this before?
>>>>>>>>>
>>>>>>>>> Peace,
>>>>>>>>> Scott
>>>>>>>>> --
>>>>>>>>> View this message in context:
>>>>>>>>> http://www.nabble.com/1%2C528-items-found%2C-displaying-1-to-10.-tp19414805p19414805.html
>>>>>>>>> Sent from the DisplayTag - General mailing list archive at
>>>>>>>>> Nabble.com.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -------------------------------------------------------------------------
>>>>>>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>>>>>>>> challenge
>>>>>>>>> Build the coolest Linux based applications with Moblin SDK & win
>>>>>>>>> great prizes
>>>>>>>>> Grand prize is a trip for two to an Open Source event anywhere in
>>>>>>>>> the world
>>>>>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>>>>>>> _______________________________________________
>>>>>>>>> displaytag-user mailing list
>>>>>>>>> displaytag-user@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -------------------------------------------------------------------------
>>>>>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>>>>>>> challenge
>>>>>>>> Build the coolest Linux based applications with Moblin SDK & win
>>>>>>>> great prizes
>>>>>>>> Grand prize is a trip for two to an Open Source event anywhere in
>>>>>>>> the world
>>>>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>>>>>> _______________________________________________
>>>>>>>> displaytag-user mailing list
>>>>>>>> displaytag-user@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -------------------------------------------------------------------------
>>>>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>>>>>> challenge
>>>>>>> Build the coolest Linux based applications with Moblin SDK & win
>>>>>>> great prizes
>>>>>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>>>>>> world
>>>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>>>>> _______________________________________________
>>>>>>> displaytag-user mailing list
>>>>>>> displaytag-user@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> -------------------------------------------------------------------------
>>>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>>>>> challenge
>>>>>> Build the coolest Linux based applications with Moblin SDK & win great
>>>>>> prizes
>>>>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>>>>> world
>>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>>>> _______________________________________________
>>>>>> displaytag-user mailing list
>>>>>> displaytag-user@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------------
>>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>>>> challenge
>>>>> Build the coolest Linux based applications with Moblin SDK & win great
>>>>> prizes
>>>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>>>> world
>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>>> _______________________________________________
>>>>> displaytag-user mailing list
>>>>> displaytag-user@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>>>>>
>>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------------
>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>>> challenge
>>>> Build the coolest Linux based applications with Moblin SDK & win great
>>>> prizes
>>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>>> world
>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>> _______________________________________________
>>>> displaytag-user mailing list
>>>> displaytag-user@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>>>>
>>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>> world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> displaytag-user mailing list
>>> displaytag-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>>>
>>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> displaytag-user mailing list
>> displaytag-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>>
>>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to