A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
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-2015