How can we prevent viewing the source code  of JSP by the user

Dear sirs,
how can we prevent viewing the source code by the user ( from the browser for the Viwe Sorce option) for a JSP file that use struts frame work.
infact i don't wan the user to view the javascript that in incorporated in the JSP for various purpose...
thanks and regards...
Sudheesh K S
INDIA

Dear sirs,
how can we prevent viewing the source code by the
user ( from the browser for the Viwe Sorce option)
for a JSP file that use struts frame work.
infact i don't wan the user to view the javascript
that in incorporated in the JSP for various
purpose...
thanks and regards...
Sudheesh K S
INDIAJSP and Servlets are programs/scripts that run on the server. The user/clients only sees the HTML output generated by the server. If you want to hide JavaScript from casual users then you can put the JavaScript code in a seperate file. This file can however be read from the Cache.

Similar Messages

  • How can we call java control source methods within jsp

    Hi guys!
              How can we access java control source methods that are defined in java control projects within jsp.I am getting error when I tried to call java control source's methods in scriptlet of JSP page.Any help/suggestion is appreciated.
              Thanks
              -Chandu

    Uh, what?
    (And you are sure that it's not a Weblogic-specific question?)

  • How can I execute a existing source code in visual studio 2012?

    My friend sent me a mini project(ASP.Net) through mail in a zipped folder. I extracted it and it contains source code and databases. I don't know how to execute it in visual studio 2012. I read that I can do it by choosing Project from existing code option
    from the file menu.But I don't find the option.Kindly help me how to execute that project which I received through mail in visual studio 2012. 

    In case of ASP Web Sites, which do not require solution and project files, go to FILE
    à Open
    à Web Site, then select the folder from File System.
    If nothing work, then perhaps you do not have the required version of Visual Studio. Then give more details or clarify it with your friend. The database probably requires some preparation steps too.

  • How to convert the source code in JSP,HTML&BEANS into executable files?

    Sir,
    We are developing one s/w product in JSP,HTML&BEANS.Now we are in the implementation phase.During the time of Installation,without copying our source code in the customer's site I want to copy the executable files of the entire source codes? Is it possible in JSP,HTML&BEANS?

    In theory you can do it even with JSP but the you will be unable to run it on the standard JSP engine. :-)
    From other hand, all critical logic should be in the Java Beans or at least in custom tags but not in the JSP code. Then you can protect that code and leave JSP open because there is nothing to steal or break.

  • How can I remove default auth source prefix that's prepended to user/group name

    Any ideas how I can remove the default auth source prefix that's prepended to user/group name after import? There's a way to do it without going into to config.xml file as we did in admin class but can't remember what was done.
    Thanks
    -Jason

    If it's slow on startup it would be extensions loading or LaunchDaemons starting up. 
    You should have a look in:
    /Library/LaunchDaemons
    /Library/Extensions
    You can count out anything in your home folder and it shouldn't put anything in /System as that's reserved for Apple. 

  • How can I prevent apps from reopening files on startup of the app?

    For most of my working day I stay with OS 10.6.8 because it has what I need and hasn't introduced things that interfere with my work flow. However, sometimes I must use Mavericks and find that the tendency for previously opened files to be reopened by an app when I restart that app is very annoying. I've tried to turn off all instances that I could find that enabled a "re-open previously opened files" but it still happens. Is this a "feature" of OS 10.9.5 or something that is happening within the individual apps themselves? Any idea how I can eliminate this activity?

    System Preferences/General - check 'Close windows when quitting an app'.

  • How can I prevent web pages from automatically reloading, such as The Druge Report, etc.

    Several web sites I frequent automatically reload their front page whenever they want to...not when I manually refresh...interrupting streaming videos, etc. I do not want these pages to do this, only I want the ability to manually refresh a web page.

    Yes, many sites need JavaScript to be enabled to work properly.<br /><br />
    This site will most likely not work and in the Knowledge Base you see the content for all Firefox versions and platforms.<br />
    So you shouldn't disable JavaScript globally, but you can do that selectively on a specific tab or based on websites.
    *Content Preferences: https://addons.mozilla.org/firefox/addon/4066
    You can block and allow scripts selectively for websites with an extension like NoScript or YesScript.
    *NoScript: https://addons.mozilla.org/firefox/addon/noscript/
    *YesScript: https://addons.mozilla.org/firefox/addon/yesscript/

  • How do I see the source code in a Digital Edition doc?

    First let me say that as an author, I'm a huGe fan of DRM and anything else that protects my ability to feed my family by allowing me to control who can sell my copyrighted works.
    But.....I'm creating a book that I hope will eventually be accessed through Adobe Digital Editions and I would like to see what the books look like from the backside. Usually I go into Sigil to have a look at the coding of books whose layout I like.... but because of DRM I can't see the source code in any of the books in my Digital Library.  So, is there a way to take a peek at the coding of a Digital Library book? I don't care about the content, only how the CSS and HTML are done.
    Thanks
    RS

    You're welcome

  • Where can I find the source code of Java web start demos program?

    When I watch these demos, I think this program is very good to start to learn Java. Is there anywhere to find the source code?

    By trawling the approprite forum
    http://forum.java.sun.com/forum.jsp?forum=38

  • Can any solve this exception when compiling the source code

    when i compile the source code . i am getting the following exceptions
    1.java.lang.classnotfoundException and javax.jnlp.UnavailableServiceException
    BadFieldException[ The field <jnlp>codebase has an invalid value: $$context/adempiereHome,$$context/adempiereHome]
         at com.sun.javaws.jnl.XMLUtils.getAttributeURL(Unknown Source)
         at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    looks like you're using java web start to run app. am i right? personally i don't have much expertise in this area but i've had to deal with it before, essentially what your problem looks to me is that the codebase in your jnlp file is set up wrong
    under my definition (vague) the codebase points to where java should look at to find your files and run them
    do a search and read more about running apps. through web start if that's your case

  • Is it possible to see the source code

    is it possible to see the source code when u know the transaction code for the same?

    hi Dhakshu,
    it possible,
    u run the t.code and there go to system-> status, there u can see the prog name for tht t.code, u double click on tht , u get the source code for thr t.code
    \[removed by moderator\]
    regards,
    chandu
    Edited by: Jan Stallkamp on Jun 25, 2008 1:17 PM

  • Why are there tiles of recent sites on my homepage? How can I prevent it?

    Every site I visit leaves a tile on my home page. I do not want them. How can I prevent it?

    If you want to disable the thumbnails on the about:newtab page then create a new Boolean pref <b>browser.pagethumbnails.capturing_disabled</b> on the <b>about:config</b> page and set the value to <i>true</i>.
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config
    You can also set another page as the new tab page.
    See this article about the New Tab page (about:newtab):
    *https://support.mozilla.org/kb/new-tab-page-show-hide-and-customize-top-sites

  • How can I view the source code of chrome://browser/content/browser.xul?

    How can I view the source code of chrome://browser/content/browser.xul of mobile FireFox?
    In my desktop version I just open this page in new tab and view webpage source, but there is no option for FF mobile to view source code.
    Best regards.

    Does the view-source: protocol work on mobile?
    *view-source:chrome://browser/content/browser.xul

  • Where is View Source? How can the source code of a website be viewed?

    Where is View Source? How can the source code of a website be viewed?
    View Source used to be accessed via a drop-down menu, but no longer. Why?
    I'm using Firefox 24.0.

    1.)Get into Firefox.
    2.)open any page that you want to see the source code.
    3.)After complete opening of the page do"right click"then you can see view page source,click it to see Source of the page.
    Thank you.

  • How to view the source code for Native Method

    hi
    i am using some native methods in to my code ;
    can anybody tell me how to view the source code for the same ;
    nik

    Buy/acquire a C/C++/assembly code disassembler and run the shared library through it.

Maybe you are looking for

  • 20G iPod not recognized by iTunes or My Computer on PC running on XP

    I've just gotten a refurbished 20G colour iPod, bought online directly through Apple. When I received it I fully charged it and connected it to my computer, which refused to recognize it. After going through troubleshooting on my own and talking with

  • For Loop in OSB(ALSB)

    I have a variable in alsb: $destinations = <destinations> <destination>      <DESCRIPTION>      URL1      </DESCRIPTION> </destination> <destination>      <DESCRIPTION>      URL2      </DESCRIPTION> </destination> </destinations> I have for each loop

  • BT studio Plus 5100

    Dear Friends/ BT Team/ Keith Beddoe Hi! Re the above, after having charged the unit and connecting same to the phone line , we find that the display reads "SEARCHING", and there in no dial tone on the hand set.  I rechecked whether the phone line was

  • Set attribute value using plugins

    Hi Experts, I am facing error when setting the value of attribute in the event "OnInvestigationStartedEvent". Any suggestion to fix the issue code:             Session ses = onInvestigationStartedEvent.getSessionContext().getInterviewSession().getRul

  • How to remove several versions of firefox remotely

    I have several versions of firefox, i want to uninstall all of them to install from sccm the last one in all computers. is there a msi or an universal uninstaller? Thans a lot,