• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Initial request

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

Gerry16
 
Sheriff
Posts: 67620
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"gerry sixteen", please check your private messages for an important administrative matter.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic