A robust starter web application to ease Java webapp development.

Home | Tutorials | Demos | Issues

what reason cause "${pageContext.request.contextPath}" cant be resolved?

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

what reason cause "${pageContext.request.contextPath}" cant be resolved?

by oliver.appfuse :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
hi,all
 
i found all my jsp page's EL cant be resolved,after run the mvn jetty:run-war

for example
 
<a href="${pageContext.request.contextPath}/presidents.run">examples</
a>.
 
will be replaced by,actually it should be /jmesa/mycontxtname/presidents.run
 
/jmesa/$%7BpageContext.request.contextPath%7D/presidents.run
 
at runtime.
 
and my jetty plugin configuration:
 
<plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <configuration>
          <contextPath>/jmesa</contextPath>
          <scanIntervalSeconds>10</scanIntervalSeconds>
          <webApp>${basedir}/target/jmesa-test.war</webApp>
        </configuration>
</plugin>
 
sorry for question not related to appfuse, but i hope can find answer from here!!
 
thanks a lot !  best wishes!
 

oliver.lee
2008-06-30

Re: what reason cause "${pageContext.request.contextPath}" cant be resolved?

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What version of AppFuse are you using? Which web framework are you using?

Matt

On Mon, Jun 30, 2008 at 3:16 AM, oliver.appfuse
<oliver.appfuse@...> wrote:

> hi,all
>
> i found all my jsp page's EL cant be resolved,after run the mvn
> jetty:run-war
> for example
>
> <a href="${pageContext.request.contextPath}/presidents.run">examples</
> a>.
>
> will be replaced by,actually it should be /jmesa/mycontxtname/presidents.run
>
> /jmesa/$%7BpageContext.request.contextPath%7D/presidents.run
>
> at runtime.
>
> and my jetty plugin configuration:
>
> <plugin>
>         <groupId>org.mortbay.jetty</groupId>
>         <artifactId>maven-jetty-plugin</artifactId>
>         <configuration>
>           <contextPath>/jmesa</contextPath>
>           <scanIntervalSeconds>10</scanIntervalSeconds>
>           <webApp>${basedir}/target/jmesa-test.war</webApp>
>         </configuration>
> </plugin>
>
> sorry for question not related to appfuse, but i hope can find answer from
> here!!
>
> thanks a lot !  best wishes!
>
> ________________________________
> oliver.lee
> 2008-06-30

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