| View previous topic :: View next topic |
| Author |
Message |
janir
Joined: 31 Jul 2009 Posts: 7
|
Posted: Thu Nov 05, 2009 3:11 pm Post subject: navigation to servlet in faces-config |
|
|
Hi!
Does anyone know how to setup navigation to a servlet in faces-config.xml ?
I have tried by just adding the servlet name to the to-view tag but
there is an error saying that FileNotFound exportToExcel.xhtml does not
exist
when I return the export string in the action
<navigation-rule>
<from-view-id>/start.iface</from-view-id>
<navigation-case>
<from-outcome>export</from-outcome>
<to-view-id>/exportToExcel</to-view-id>
</navigation-case>
</navigation-rule>
The servlet is configured in the web.xml
I have a case where I set to the request with setAttribute few objects
which I then pick up in the servlet with getAttribute
I have been successful in calling the servlet directly from the JSP code
but I need to set a few attributes before calling so it has to be done
from the java code
I have also tried with RequestDispatcher forward method but there is an
error message saying "Use navigation rules instead"
Please help!
Thanks,
Jani |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|