File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Initial request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Initial request" Watch "Initial request" New topic

Initial request

gerry mundo

Joined: Sep 09, 2008
Posts: 1
Hi Guys

JSF newbie here! Can anyone help me with this one?
I have an app that can get 3 types of request: create, update, read
I need to get the params off the request and display the appropriate page.
Currently I am doing this in a scriplet in index.jsp.
code looks like:

This is no good (probably for a number of reasons) mainly because I can't test it. I had envisaged using a managed bean and UrlParameterListener.

I have that declared in faces-config.xml and configured in
url-parameter-configuration.xml. I have a bean with an action method thus:

When I sent a request localhost:8888/Customer?action=update&customerid=1298
I get a blank page, index.jsp which has no content.

Can anyone tell me where I am going wrong??

thanks and regards

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63874

"gerry sixteen", please check your private messages for an important administrative matter.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Initial request
It's not a secret anymore!