The moose likes Struts and the fly likes Hide Source Code in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Hide Source Code in Struts" Watch "Hide Source Code in Struts" New topic

Hide Source Code in Struts

Yaddif Medina

Joined: Oct 05, 2005
Posts: 23

I want to hide my JSP code for the user when it does right click - View Source in the page. How can i do it? .... I am using struts.

Thanks in advance.
praveen Shangunathan
Ranch Hand

Joined: Sep 06, 2005
Posts: 65
Scott Dunbar
Ranch Hand

Joined: Sep 23, 2004
Posts: 245
That, or this one works too

<a href="" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
Yaddif Medina

Joined: Oct 05, 2005
Posts: 23
Thanks guys.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

We also have a Struts forum here, and I am going to move this post to that forum, even though it has been answered.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2591

I haven't seen what the above links say, but let me assure you that there is nothing you can do to hide the source of your page. No matter what you do, there are still workarounds. Don't you know how ppl disected google suggest?

- Manish
I agree. Here's the link:
subject: Hide Source Code in Struts
It's not a secret anymore!