You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Evgeny Gesin <ev...@yahoo.com> on 2004/02/25 15:26:04 UTC

jsp:plugin and codebase

This is JSP rather than Tomcat question, but I hope
for a reply.

I have a JSP with the following jsp:plugin code:

<jsp:plugin type="applet"
code="com.package.Applet.class"
codebase="/application1/applets/" width="50"
height="50">
</jsp:plugin>

Web applications, which run this applet, specify
different codebase attribute, such as application2,
application3 and so on.

Unfortunatelly JSP specification doesn't allow dynamic
codebase in jsp:plugin and we create a new JSP for
each new web domain to specify another hardcoded
codebase attribute.

Could you please advice a trick to generate codebase
attribute at run-time, to deploy the same JSP in all
applications.

Evgeny Gesin
Javadesk

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: jsp:plugin and codebase

Posted by BAO RuiXian <ru...@pp.inet.fi>.

Evgeny Gesin wrote:

>This will not work because of applet's security
>restrictions. Waiting for more replies.
>  
>
Care to explain what are the exact "applet's security restriction"? 
Applets are supposed to be downloaded to the client machine to run. So 
that I think you put it in anywhere inside your server's space except 
the the directory /WEB-INF and its subdirectories. I suppose you have 
only one applet shared by all your applications[1,2,3...], right?

Best

Bao

>Evgeny Gesin
>Javadesk
>
>
>--- BAO RuiXian <ru...@pp.inet.fi> wrote:
>  
>
>>Evgeny Gesin wrote:
>>
>>    
>>
>>>[snip...]
>>>
>>><jsp:plugin type="applet"
>>>code="com.package.Applet.class"
>>>codebase="/application1/applets/" width="50"
>>>height="50">
>>></jsp:plugin>
>>>
>>>Web applications, which run this applet, specify
>>>different codebase attribute, such as application2,
>>>application3 and so on.
>>> 
>>>
>>>      
>>>
>>Can you then put your applet outside of any your
>>applications[1,2,3...]? 
>>For example, in TOMCAT_ROOT directory, then the code
>>base should be same 
>>all the time.
>>
>>Best
>>
>>Bao
>>
>>    
>>
>>>Unfortunatelly JSP specification doesn't allow
>>>      
>>>
>>dynamic
>>    
>>
>>>codebase in jsp:plugin and we create a new JSP for
>>>each new web domain to specify another hardcoded
>>>codebase attribute.
>>>
>>>Could you please advice a trick to generate
>>>      
>>>
>>codebase
>>    
>>
>>>attribute at run-time, to deploy the same JSP in
>>>      
>>>
>>all
>>    
>>
>>>applications.
>>>
>>>Evgeny Gesin
>>>Javadesk
>>>
>>>      
>>>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: jsp:plugin and codebase

Posted by Evgeny Gesin <ev...@yahoo.com>.
This will not work because of applet's security
restrictions. Waiting for more replies.

Evgeny Gesin
Javadesk


--- BAO RuiXian <ru...@pp.inet.fi> wrote:
> 
> 
> Evgeny Gesin wrote:
> 
> >[snip...]
> >
> ><jsp:plugin type="applet"
> >code="com.package.Applet.class"
> >codebase="/application1/applets/" width="50"
> >height="50">
> ></jsp:plugin>
> >
> >Web applications, which run this applet, specify
> >different codebase attribute, such as application2,
> >application3 and so on.
> >  
> >
> Can you then put your applet outside of any your
> applications[1,2,3...]? 
> For example, in TOMCAT_ROOT directory, then the code
> base should be same 
> all the time.
> 
> Best
> 
> Bao
> 
> >Unfortunatelly JSP specification doesn't allow
> dynamic
> >codebase in jsp:plugin and we create a new JSP for
> >each new web domain to specify another hardcoded
> >codebase attribute.
> >
> >Could you please advice a trick to generate
> codebase
> >attribute at run-time, to deploy the same JSP in
> all
> >applications.
> >
> >Evgeny Gesin
> >Javadesk
> >
> >
> >  
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: jsp:plugin and codebase

Posted by BAO RuiXian <ru...@pp.inet.fi>.

Evgeny Gesin wrote:

>[snip...]
>
><jsp:plugin type="applet"
>code="com.package.Applet.class"
>codebase="/application1/applets/" width="50"
>height="50">
></jsp:plugin>
>
>Web applications, which run this applet, specify
>different codebase attribute, such as application2,
>application3 and so on.
>  
>
Can you then put your applet outside of any your applications[1,2,3...]? 
For example, in TOMCAT_ROOT directory, then the code base should be same 
all the time.

Best

Bao

>Unfortunatelly JSP specification doesn't allow dynamic
>codebase in jsp:plugin and we create a new JSP for
>each new web domain to specify another hardcoded
>codebase attribute.
>
>Could you please advice a trick to generate codebase
>attribute at run-time, to deploy the same JSP in all
>applications.
>
>Evgeny Gesin
>Javadesk
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org