[jboss-user] [JBoss Seam] - Re: Querystring param from remote application
monkeyden
do-not-reply at jboss.com
Thu Oct 12 15:24:44 EDT 2006
Thanks Norman. I found that in the process of digging.
Everything works fine and I'm able to log the user in, however, I can't seem to redirect to the first screen of the application (user-search.jsp). The URL looks like this:
http://localhost:8080/myapp/login.seam?id=dKGvK69gCCxqbM9Ud1RS30mhXYBOI08e
The create method of that login component looks like this:
@Create
| public String login() {
| //decode userkey
| //query for user
| if(user == null){
| return "/login.jsp";
| }else{
| //go to first page
| return "/private/user-search.jsp";
| }
| }
While debugging, it gets to the else condition but always goes to login.jsp instead of user-search.jsp. This appears to be how Seam is designed to work. The question is, can I go to a some other Seam action, other than the originally requested view-id from the create method? I only want the user to go to the requested view-id if there was a problem (not able to log in), otherwise they can pass through.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977983#3977983
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977983
More information about the jboss-user
mailing list