This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Questions" Watch "Struts Questions" New topic
Author

Struts Questions

Krishna Attravanam
Greenhorn

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(window.open(something.do?id=" + <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

~K
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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Struts Questions