This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes running it all... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "running it all..." Watch "running it all..." New topic

running it all...

ryan headley
Ranch Hand

Joined: Jun 28, 2000
Posts: 156
I've been part of a Java Lab that my company has started. We run Apache,Tomcat, and MySQL as well as the IBM WebSphere and DB2 products on another machine. We've written an application for our sales folks to use and we have built in security into this app. What we want to do is limit access to certain pages. Our first solution works fine: Check the users role from the servlet, based on that role, dynamically build the HTML that will only show them what they need to see. However, it does NOT stop them from first logging in then direclty going to the URL via the address bar. Therefore we've placed the following code at the top of all of our JSP's that need this security.

Now, that code works on all pages except one. The only difference is the amount of data we are querying. On the page that isn't working correctly, we get the failure page but it only appears after some the the HTML code is actually read and displayed. Meaning our output will show actual HTML Tags, (i.e."font-size: 10pt"> and it also interprets four buttons that we have on that page.
The problem only appears in Jakarta Tomcat, not in the IBM WebSphere tools...
Any ideas...

Ryan Headley<br /><a href="" target="_blank" rel="nofollow"></a>
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Try to increase the bufersiz on <@page directive and see.
maha anna
ryan headley
Ranch Hand

Joined: Jun 28, 2000
Posts: 156
We actually got it...we were missing an else {
thanx anyway...
I agree. Here's the link:
subject: running it all...
jQuery in Action, 3rd edition