You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Bender, James" <Ja...@53.com> on 2004/03/30 22:00:13 UTC
OFF Topic -- beginner's custom tag question
I am new to Custom tags and am totally confused that "A" works and "B"
doesn't (below). I'm looking for a way to make "B" work if possible, so I
don't have to use a scriptlet or declaration to keep my presentation code
cleaner. Is this possible? Thanks!
A:
<%
String searchTitle = request.getAttribute("searchTitle").toString();
%>
<ams:groupBox title="<%=searchTitle%>">
B:
<ams:groupBox title="<%=request.getAttribute("searchTitle").toString()%>">
error thrown:
JSPG0069E: Attribute searchTitle has no value'
Thanks again!,
Jim
-----Original Message-----
From: Adolfo Miguelez [mailto:pelly69@hotmail.com]
Sent: Tuesday, March 30, 2004 2:44 PM
To: user@struts.apache.org
Subject: Re: OFF-TOPIC - Paging Results
A question that I wondered for long. AFAIK, there are 2 paging policies:
- paging in app server memory, in session scope to enable paging in
clustered environments, or
- paging in dababase, using scrollable resulsets or related.
I guess, paging in app server, can overload server memory if query results
are long, so database paging should be better, in such a cases. However, I
do not know if state of arts in database paging is technologically ready.
I would appreciate comments further on this first impressions.
Regards,
Adolfo.
>From: Craig McClanahan <cr...@apache.org>
>Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
>To: Struts Users Mailing List <us...@struts.apache.org>
>CC: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
>Subject: Re: OFF-TOPIC - Paging Results
>Date: Tue, 30 Mar 2004 10:01:07 -0800
>
>Joao Batistella wrote:
>
>>Hello!
>>
>>Sorry for the off-topic message.
>>
>>I would like to know if you recommend any good component for paging
>>results
>>and presenting it in a JSP page. I'm using struts, so if you know a
>>component that integrates well with struts, that's perfect.
>>
>>Thanks for your help.
>>
>>
>>
>For working directly with Struts, Matt Raible's display tag is quite
>popular.
>
> http://displaytag.sourceforge.net
>
>If you are using the JavaServer Faces integration library with Struts, the
>standard <h:dataTable> component handles paging quite nicely. In addition,
>it lets you do input fields in the table, not just output.
>
> http://java.sun.com/j2ee/javaserverfaces/
> http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/
>
>Craig
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: OFF Topic -- beginner's custom tag question
Posted by Craig McClanahan <cr...@apache.org>.
Bender, James wrote:
>I am new to Custom tags and am totally confused that "A" works and "B"
>doesn't (below). I'm looking for a way to make "B" work if possible, so I
>don't have to use a scriptlet or declaration to keep my presentation code
>cleaner. Is this possible? Thanks!
>
>A:
><%
>String searchTitle = request.getAttribute("searchTitle").toString();
>%>
><ams:groupBox title="<%=searchTitle%>">
>
>B:
><ams:groupBox title="<%=request.getAttribute("searchTitle").toString()%>">
>
> error thrown:
>
> JSPG0069E: Attribute searchTitle has no value'
>
>
>
In your "B" caes you're trying to nest double quotes inside double
quotes, which is not valid syntax. change the outer set to single
quotes and this should work fine.
Craig
>Thanks again!,
>
>Jim
>
>
>-----Original Message-----
>From: Adolfo Miguelez [mailto:pelly69@hotmail.com]
>Sent: Tuesday, March 30, 2004 2:44 PM
>To: user@struts.apache.org
>Subject: Re: OFF-TOPIC - Paging Results
>
>
>A question that I wondered for long. AFAIK, there are 2 paging policies:
>
>- paging in app server memory, in session scope to enable paging in
>clustered environments, or
>
>- paging in dababase, using scrollable resulsets or related.
>
>I guess, paging in app server, can overload server memory if query results
>are long, so database paging should be better, in such a cases. However, I
>do not know if state of arts in database paging is technologically ready.
>
>I would appreciate comments further on this first impressions.
>
>Regards,
>
>Adolfo.
>
>
>
>
>
>
>
>
>
>>From: Craig McClanahan <cr...@apache.org>
>>Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
>>To: Struts Users Mailing List <us...@struts.apache.org>
>>CC: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
>>Subject: Re: OFF-TOPIC - Paging Results
>>Date: Tue, 30 Mar 2004 10:01:07 -0800
>>
>>Joao Batistella wrote:
>>
>>
>>
>>>Hello!
>>>
>>>Sorry for the off-topic message.
>>>
>>>I would like to know if you recommend any good component for paging
>>>results
>>>and presenting it in a JSP page. I'm using struts, so if you know a
>>>component that integrates well with struts, that's perfect.
>>>
>>>Thanks for your help.
>>>
>>>
>>>
>>>
>>>
>>For working directly with Struts, Matt Raible's display tag is quite
>>popular.
>>
>> http://displaytag.sourceforge.net
>>
>>If you are using the JavaServer Faces integration library with Struts, the
>>standard <h:dataTable> component handles paging quite nicely. In addition,
>>
>>
>
>
>
>>it lets you do input fields in the table, not just output.
>>
>> http://java.sun.com/j2ee/javaserverfaces/
>> http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/
>>
>>Craig
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>
>_________________________________________________________________
>Tired of spam? Get advanced junk mail protection with MSN 8.
>http://join.msn.com/?page=features/junkmail
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org