facelets el pageContext.request.requestUri problem

View: New views
3 Messages — Rating Filter:   Alert me  

facelets el pageContext.request.requestUri problem

by Fırat KÜÇÜK :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
i cannot use "pageContext.request.requestUri" in facelets.
my facelets package version is: 1.1.14

test.xhtml

<?xml version='1.0' encoding='UTF-8' ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
  <body>
    ${pageContext.request.requestURI}
  </body>
</html>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: facelets el pageContext.request.requestUri problem

by Ken Paulsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Firat,

Try: #{request.requestURI}

The JSP page context does not exist (and is not needed) outside JSPs.

Good luck!

Ken

Fırat KÜÇÜK wrote:

> Hi,
> i cannot use "pageContext.request.requestUri" in facelets.
> my facelets package version is: 1.1.14
>
> test.xhtml
>
> <?xml version='1.0' encoding='UTF-8' ?>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:h="http://java.sun.com/jsf/html">
>   <body>
>     ${pageContext.request.requestURI}
>   </body>
> </html>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: facelets el pageContext.request.requestUri problem

by Fırat KÜÇÜK :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

thanks Ken.

2009/5/29 Ken Paulsen <Ken.Paulsen@...>:

>
> Hi Firat,
>
> Try: #{request.requestURI}
>
> The JSP page context does not exist (and is not needed) outside JSPs.
>
> Good luck!
>
> Ken
>
> Fırat KÜÇÜK wrote:
>>
>> Hi,
>> i cannot use "pageContext.request.requestUri" in facelets.
>> my facelets package version is: 1.1.14
>>
>> test.xhtml
>>
>> <?xml version='1.0' encoding='UTF-8' ?>
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml"
>>      xmlns:ui="http://java.sun.com/jsf/facelets"
>>      xmlns:h="http://java.sun.com/jsf/html">
>>  <body>
>>    ${pageContext.request.requestURI}
>>  </body>
>> </html>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>



--
FIRAT KÜÇÜK
TÜBİTAK MAM BTE
GEBZE / TÜRKIYE

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...