File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts Questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Questions" Watch "Struts Questions" New topic

Struts Questions

Krishna Attravanam

Joined: Oct 21, 2004
Posts: 16
1) I think I had raised this before...but still to be clear I am trying to do something similar to this..And i am damn sure i am making some kind of a syntax error. Cant figure out what

<a href=javascript:void(" + <bean:write name="names" property="ID"/> + "','Link','location=0,status=0,scrollbars=0,width=480,height=400'));>

2) I have a webapp which has two different login permissions

There r two types of users Primary and Secondary

The secondary can access only 1 page out of all the 15 pages.. whereas the Primary can access only one.

How can i do this in struts

Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
1) make sure to properly quote everything, including the javascript call

2) Both secondary and Primary may only access one of the 15 pages? What are the other pages for? (hehe) Anyway, my solution is to place a userbean in the user's session and check the user's access level on every page and during every Action.
Krishna Attravanam

Joined: Oct 21, 2004
Posts: 16
Sorry for the typo

The primary can access all and the secondary can access only 1
I agree. Here's the link:
subject: Struts Questions
It's not a secret anymore!