users@glassfish.java.net

Re: jsp component name in admin console

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Fri, 22 Jan 2010 14:46:26 -0800

On 01/21/10 02:45 AM, glassfish_at_javadesktop.org wrote:
> How can I give my JSPs a name that shows in the admin console component name ?
> Ie an equivalent to
> @WebServlet(name="Hello World"})
> in a servlet
>

You could use something like this in your web.xml:

    <servlet>
        <servlet-name>Your_name_here</servlet-name>
        <jsp-file>/your.jsp</jsp-file>
    </servlet>

    <servlet-mapping>
        <servlet-name>Your_name_here</servlet-name>
        <url-pattern>/your.jsp</url-pattern>
    </servlet-mapping>

 
Jan

> (probably an easy question, but searching for terms like "jsp" "name" etc is impossible)
>
> Andrew
> [Message sent by forum member 'andco42' (andrew.connick4_at_virgin.net)]
>
> http://forums.java.net/jive/thread.jspa?messageID=382121
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>