We are using the following piece of code..

=========================================

Class MyTag extends *TagSupport {*
public int doStartTag() throws JspException {
--
--
*constructTitle*(list)
--
--
}

private String *constructTitle*(List titleElements) {
StringBuffer titleValue = new StringBuffer();
for(int i=0; i < titleElements.size(); i++) {
titleValue.append(titleElements.get(i));
if (i != titleElements.size() - 1) {
titleValue.append(SPACE);
titleValue.append(*delimiterSymbol*);
titleValue.append(SPACE);
}
}
return titleValue.toString();
}

public void *release*() {
* delimiterSymbol *= null;
super.release();
}

-----------

The above release() method is called ONLY in Tomcat 9.0.96 but not in
9.0.95 or earlier thus causing the delimiter to be set to *null*. Not sure
of the real reason though - any help would be appreciated.

Maybe we can reset it back (or comment it) but we would like to understand
the behavioral difference with various tomcat versions.


Thank you

On Wed, Oct 30, 2024 at 4:55 AM Chuck Caldarale <n82...@gmail.com> wrote:

>
> > On Oct 29, 2024, at 09:08, somasani nikhil <somasaninik...@gmail.com>
> wrote:
> >
> > Thanks for the response.
> >
> > Page title text until tomcat 9.0.95 shows it properly as “site1 > page1”
> on
> > the browser tab. Where as it shows as “site1 *null* page1”
> >
> > Please let me know if that’s clear now.
>
>
> Exactly what code is used to generate the page title?
>
>   - Chuck
>
>
> > On Tue, 29 Oct 2024 at 6:27 PM, Chuck Caldarale <n82...@gmail.com>
> wrote:
> >
> >>
> >>> On Oct 29, 2024, at 02:26, somasani nikhil <somasaninik...@gmail.com>
> >> wrote:
> >>>
> >>> We have a webapp deployed on the tomcat application server and we have
> >> recently updated the tomcat from earlier versions to 9.0.96 (latest).
> The
> >> following issue is seen with browser title tag when the title contains
> >> symbol >
> >>>
> >>> Please see the attached screenshots -
> >>>
> >>> - Tomcat 9.0.96
> >>>
> >>> - Tomcat 9.0.95 or earlier
> >>>
> >>> Kindly review and let me know if anything is missing from the
> >> configuration or is it a regression ?
> >>
> >>
> >> Read this again:
> >> https://tomcat.apache.org/lists.html#tomcat-users
> >>
> >> You’ve ignored the following item under Important in the description of
> >> the tomcat-users mailing list usage:
> >>
> >> 8. Please format your messages as plain text, not HTML. Do not send
> >> attachments, as they are likely to be removed and ignored by the mailing
> >> list server.
> >>
> >> I’ve never understood the compulsion to use screen shots of text rather
> >> than the actual text in a message.
> >>
> >>  - Chuck
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: dev-h...@tomcat.apache.org
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>
>

Reply via email to