struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marty Phee <>
Subject [shale] Backing view
Date Wed, 14 Jun 2006 17:20:02 GMT

I'm using Shale with tiger.

JSP, subscribe (example from somewhere) that does a save.  All this 
works fine, but I made a change so that the return should send it to a 
"Success" page. 

I kept getting a 500 error:
12:11:39,292 ERROR [faces]:253 - Servlet.service() for servlet faces 
threw exception
java.lang.IllegalStateException: No WebApplicationContext found: no 
ContextLoaderListener registered?

I then created a Success bean
@Bean(name="success", scope= Scope.SESSION)
public class Success

And then everything worked.  Do I always need a View behind my jsp's or 
am I doing something wrong?

@Bean(name="subscrHandler", scope = Scope.REQUEST)
public class SubscriberHandler {
    private Subscriber subscriber;

    public void setSubscriber(Subscriber subscriber) {
        this.subscriber = subscriber;

    public String saveSubscriber( ) { );
        return "success";

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message