OK, I'm clearly missing something key, because I can't get the following
extremely simple modification to the extremely simple "registration" example to
work, and I've been at it for hours now.
Suppose all I want to do is add, say, a "debug" String that's set somewhere
RegisterAction.register(), and then printed out registered.jsp using an EL
expression like "#{debug}". What's the minimal set of changes I'd need to make
to the example to make that happen?
Adding something like "@Out String debug;" to RegisterAction and then "debug =
new String("howdy");" in register() doesn't seem to work: attempting to
reference "#{debug}" in the jsp silently fails and the reference becomes an
empty string in the output, while attempting to reference "#{register.debug}"
results in a PropertyNotFoundException. Mucking with the "scope" argument of
the @Out annotation doesn't seem to make any difference; neither does changing
RegisterAction to @Stateful...
Why doesn't "#{register.debug}" resolve? (If I neglect to set debug to a
non-null value inside register(), I get exceptions complaining about how the
register.debug output wasn't set, so clearly the @Out annotation is doing
*something*...)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942382#3942382
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942382
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user