Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

Tiles and Struts problem

Thread view: 
Giox - 28 Oct 2006 17:44 GMT
Hello everybody, I'm a newbye in JSP and I need some helps.
As exercise I'm trying to implement a simple portal with two different
kind of user (admin and normal one) and depending to which one access
the system I show different pages.
In order to avoid security lack (this is simply training for me, so if
this is wrong please let me know) I placed the registration page in the
more external level, while other pages can be accessed only through the
findForward action of Action Form because they are stored in WEB-INF
folder.
At present time I'm starting Tiles, and I decided to implement a menu
tile to allow the user to access pages that resides in its "profile".
However I cannot use html:link because the pages reside in the limited
access zone. How can I perform this action? I'm not able to understand
how to create this menu, but I see on the web many application with
such a structure. Is there some simply way or I have to move the
reserved pages out of WEB-INF and to control access to them through
session attributes?
Any help will be appreciated
Wouter Beheydt - 29 Oct 2006 08:57 GMT
> Hello everybody, I'm a newbye in JSP and I need some helps.
> As exercise I'm trying to implement a simple portal with two different
[quoted text clipped - 14 lines]
> session attributes?
> Any help will be appreciated

I think you can call a struts action from the html:link tag. In the
action you do what you want. If no more processing is needed, just
forward to the intended page.

Something like this :
<html:link styleClass="menu" page="/your_action.do">

Wouter
Giox - 30 Oct 2006 08:01 GMT
Well, I have to improve my knowledge, but I would like to call a tile
window, that contains a menu and a main page.
I will try to act as you suggested.
Gio

Wouter Beheydt ha scritto:

> > Hello everybody, I'm a newbye in JSP and I need some helps.
> > As exercise I'm trying to implement a simple portal with two different
[quoted text clipped - 23 lines]
>
> Wouter
Wouter Beheydt - 30 Oct 2006 13:13 GMT
> Well, I have to improve my knowledge, but I would like to call a tile
> window, that contains a menu and a main page.
> I will try to act as you suggested.
> Gio

Giovanni,

That should be no problem. From a struts action you can forward to
anything you like : a page, another action or a tiles layout.
If you don't succeed, please mail me privately (I don't think this
interests everybody here) and I'll send you a set of files as an
example. I don't pretend to have perfect applications but they work ...

Wouter


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.