FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

navigation to servlet in faces-config

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
janir



Joined: 31 Jul 2009
Posts: 7

PostPosted: Thu Nov 05, 2009 3:11 pm    Post subject: navigation to servlet in faces-config Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB