This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
How to create objects in jsps using struts tags?
Joined: Sep 15, 2009
Oct 25, 2011 05:37:22
I am developing a
based application on google app engine. I am using google's user service to allow users to log into my application.
When the user is signed into his google account and opens my application, my application must not ask to sign in again. Suppose the homepage of my application is index.jsp, it should say
To do so, I have to check whether there is a current user or not like this
<% UserService userService = UserServiceFactory.getUserService(); User user = userService.getCurrentUser(); if(user == null) //login link else //Welcome message & logout link %>
But I am not supposed to use scriptlets in my application. I have to achieve this using struts tags.
Any help is greatly appreciated. Thank you all in advance and good day.
Love all, trust a few, do wrong to none.
subject: How to create objects in jsps using struts tags?
Keeping current logged user.
How to create object and call a method in jsp using struts 2 tags
Property binding error
Spring dependency injection in a Struts Plugin
N tier architecture
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014