Hi,

can you try

#{facesContext.externalContext.request.contextPath}

never tryed, but according to the spec 5.3.1.2 i think this should do it.

Regards,
 Volker

2007/2/19, madan chowdary <[EMAIL PROTECTED]>:

Hi David,

none of them working,

There is no implicit object as " request " in Tobago.

If there are some objects set which hold the environmental then it would be
helpful in such kind of situations .

ok, coming to my question,

Is there any other way to invoke the servlet other then Absolute URL
invokation ?

Regards,
Madan


----- Original Message ----
From: David Delbecq <[EMAIL PROTECTED]>
To: MyFaces Discussion <[email protected]>
Sent: Monday, 19 February, 2007 7:39:00 PM
Subject: Re: [ Tobago ] Invoke Servlet from jsp page


En l'instant précis du 02/19/07 14:38, madan chowdary s'exprimait en ces
termes:
>
>
> is there any means of doing as such with tobago
>
> <%=request.getContextpath()
> %>/downloadServlet?id=${content.contentImageId}
>
Did you try

"#{request.contextPath}/downloadServlet?id=#{content.contentImageId}"



Or even better
"http://#{request.serverName}:#{request.serverPort}/#{request.contextPath}/downloadServlet?id=#{content.contentImageId}";;


 ________________________________
 Here's a new way to find what you're looking for - Yahoo! Answers

Reply via email to