Hi Vanessa,
See inline comments below...
----- [EMAIL PROTECTED] wrote:
> Hi,
>
>
>
> I’m using Appfuse 1.9.4, Struts framework. I’ve made a few basic
> appearance changes and just want to know whether it was the correct
> way to go about it. Also have some questions at the same time.
>
>
>
> Seems correct now, but you never know how the wrong way of doing
> things will affect later on.
>
>
>
> 1) On the login page, I didn’t want the ‘Main Menu’ link showing up.
> So, I added the role attribute to the MainMenu item in
> menu-config.xml. It helped but is it the correct way to resolving my
> issue?
There probably is no one "correct way". The way you described sounds very
reasonable to me. And more importantly, it seems like something logical to
check if you needed to change it back at some point.
> 2) I wanted to control access to a particular method
> ‘viewInstallations’. I added the appropriate value to
> objectDefinitionSource property of methodSecurityInterceptor. However,
> it didn’t really work until I added roles to the @struts.action in
> InstallationAction.java. Am I correct here or have I messed up
> somehow?
That all sounds good to me too...
> 3) I have a question about menus. There are so many menu pages out
> there….menu-config.xml, menu.jsp, mainMenu.jsp. Why are all these
> necessary?
Each of those files serve a different function and they are all used by AppFuse
out of the box, but they may not all be necessary depending on the needs of
application you are developing.
menu-config.xml - the config file for Struts Menu
menu.jsp - the file that sitemesh uses to insert the menu into most pages
mainMenu.jsp - this is more of a "home page" than a "menu"... it is the
default page users see after logging on if no specific page is requested.
> 4) appConfig à I know that there is a string constant ‘CONFIG’ in
> Constants.java which is set to this value. Looking at login.jsp and
> some other pages, I see a url ( c:url
> value=’/styles/${appConfig[“csstheme”]}/layout-1col.css ’) that uses
> it as a variable. I did a search, but couldn’t really find where it is
> set. Is it the same as CONFIG?
I don't have an app open in front of me, but I believe the "csstheme" is set in
web.xml.
> Thanks in advance for any answers to my questions.
>
> Vanessa Pacheco
> Programmer
> Bowman Systems L.L.C
> 318.213 .8780x307
>
Enjoy,
Nathan :)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]