• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Display firstName and lastName in banking example

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's the trick to displaying firstName and lastName in the Jakarta Struts Banking example. If you login as 123, your firstName and lastName should be set to John Doe. How do you display that? I've used code from the store front example app, but it's doesnt work. Here is the code I'm using.

<logic:present name="UserContainer" property="userView" scope="session">
<b>Welcome <bean:write name="UserContainer" property="userView.firstName" scope="session"/></b>
</logic:present>
[ May 20, 2004: Message edited by: Jeremy Taylor ]
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which example you are referring to? Where can I get the whole example?

In addition, could you tell us what is the error? or problems you are encountering?

Nick
[ May 20, 2004: Message edited by: Nicholas Cheung ]
 
Jeremy Taylor
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nick,
It's the banking example app in Chapter 3 in the "Programming Jakarta Struts" book. The app isn't throwing an error, it just isn't displaying the firstName. Here is the link to the banking app. The login is hard coded to 123/456.

http://examples.oreilly.com/jakarta/banking.war
http://examples.oreilly.com/jakarta/banking-dev.zip
[ May 20, 2004: Message edited by: Jeremy Taylor ]
[ May 20, 2004: Message edited by: Jeremy Taylor ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic