HTML Comment Vs JSP Comment

HTML Comment : <!-- Comment -->
JSP Comment : <%-- --%>
1) What is the different between HTML Comment and JSP comment.
2) How the web container will treat these two comments??
Regards
Dhinesh

Hi,
JSP comments are used for documenting JSP code and are not visible client-side (using browser's View Source option) where as HTML comments are visible.
cheers,
k

Similar Messages

  • JSP comments

    hi ,
              We have around 150 JSPs in our web application.
              Lot of commenting code has gone inside these JSPs.
              Though it is essential for maintenance purpose that we preserve the comments, it has been found that the comments appear on client side if client sees the HTML - View Source.
              It is not a good idea to show the client the comments which divulge un-necessary details.
              Can someone throw some light on how to prevent this?
              Also suggest some ideas to reduce the final HTML o/p page size for faster loading.

    hi ,
              I guess you are using the html comments in your JSPs, which obviously go to client side and are a part of page size.
              I will recommend use of JSP comments instead which can solve the issue of security and also the reduction of page size automatically.
              Well, other methods for size reduction may be removing formatting characters. I am not sure whether it helps.
              Can you try using zip streams? just a wild guess..

  • [svn:fx-trunk] 10157: Fixed HTML tag in ASDoc comment.

    Revision: 10157
    Author:   [email protected]
    Date:     2009-09-11 09:26:03 -0700 (Fri, 11 Sep 2009)
    Log Message:
    Fixed HTML tag in ASDoc comment.
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/ChannelFaultEvent.as

    Welcome back everyone.
    Hope you all had good holidays.
    Cheers
    glenn
    tinylion development & design

  • [svn] 2537: Fix two HTML errors in ASDoc comments

    Revision: 2537
    Author: [email protected]
    Date: 2008-07-21 07:59:01 -0700 (Mon, 21 Jul 2008)
    Log Message:
    Fix two HTML errors in ASDoc comments
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/sandbox/IChildAccess.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/sandbox/ISandboxBridgeAccess.as

    Welcome back everyone.
    Hope you all had good holidays.
    Cheers
    glenn
    tinylion development & design

  • Shared Review: Can't Check for New Comments or Publish Comments

    I am having a problem with a network file share (SMB) Shared Review.  I am not able to Check for New Comments or Publish Comments.  When I click those buttons all I get is the green circle continuously spinning forever.  Other members of my team are able to check for and post new comments.  I am able to connect to the SMB file share outside of Acrobat just fine.  I am using Acrobat Pro XI with the latest update 11.0.03.

    Try the following steps :
    1. Keep the review file closed and remove the review enty from the Tracker. For this "Go to View->Tracker. Choose the review file under the Review->Joined node and from right click options choose 'Remove review from Tracker'."
    Note: Do not remove the reviews which you had initiated i.e. those under Sent node. Otherwise, the review will removed from the server also.
    Alternatively, you can delete the Collab and Synchronizer folder from the following location:
    /users/+username+/Library/Application Support/Adobe/Acrobat/+version+/
    2. Sign out from Adobe.com comment. For this "Go to Preferences->Adobe Online Services". and click sign out.
    3. Now open the review PDF again and login with the correct credentials.
    Hope, this will resolve your issue.

  • How to include HTML file in JSP using HTML elements or Javascript?

    Hi,
    I have around 15000 static html files one for each item which we display each upon invoking an item.The HTML file should be part of a JSP file.
    Please note that the name of the HTML file is determined dynamically
    Placing all the HTML files within the web application does not give us good performance so i would like to put all of them in the webserver.
    I am not able to include the file in the JSP using the jsp:include attribute if i place the HTML files in the webserver ,
    in order to do that i think should use either HTML element or javascript to include the HTML in the JSP.is there any alternative to <Jsp:include>
    Does anyone have an idea how to include the HTML file and take advan tage of webserver?
    Any ideas are appreciated

    What you need to do is simply read the HTML file from the disk and dump it out to the outputstream. It really is that simple.
    There's no reason you need to include all 15000 files in the actual WAR, you can place those files any place handy that is easy for the application to see (in another directory, or accessible from a file server if you have multiple front ends).
    Then, just write a utiility function that takes the output stream (i.e. the 'out' JSP variable), and the file name, read the file, and write it to the stream.
    If you start noticing performance issues, then you can try doing some caching, but truth is your OS should be doing that for you.
    But, truth be told that's the only practical way to do it.
    Another solution would be to use JavaScriipt and XMLHttpRequest (i.e "AJAX") to load the file at the client side, and simply replace a tag with the results.
    That's also pretty trivial to write, any web site talking about AJAX should give you hint there.
    Of course, that won't work for folks who have JavaScript turned off, or some other incompatible browser, whereas the server side solution obviously works everywhere.

  • How can i render a dynamic html file in jsp page

    Hi everybody,
    i am trying to render a dynamic html file in jsp page with the result of querying a database.
    The response of the query is a xml document. And i have a stylesheet to transfer it to html.
    How can i render the html in a jsp file?

    I am using below code for HTML files
    private var appFile:String="index.html";
    if (StageWebView.isSupported)
                        currentState = "normal";
                        webView.stage = stage;
                        webView.viewPort = new Rectangle( 10, 130, (stage.stageWidth)-20, 750 );
                        var fPath:String = new File(new File("app:/assets/html/aboutus/"+ appFile).nativePath).url; 
                        webView.loadURL(fPath);
                        addEventListener(ViewNavigatorEvent.REMOVING,onRemove);
                    else {
                        currentState = "unsupported";
                        lblSupport.text = "StageWebView feature not supported";
    above code is working fine for me.

  • Referencing static html pages from jsps...

              Hi,
              This is probably a very simple thing to solve, but I'm having problems with referencing
              html pages from jsps under Weblogic.
              I get Error 404 - not found, whenever I try something like this in a JSP...
              <frame name="title" src="title.html" scrolling=no>
              The title.html file has definitely been copied into my ear file, and yet it isn't
              found. I can solve the problem by turning title.html into a jsp and registering
              it in web.xml. But this seems like serious overkill with static content!!
              Am I missing something really simple here?
              

              I've worked it out - directory mistake...
              Thanks,
              Chris
              "Matt Krevs" <[email protected]> wrote:
              >it sounds like a relative pathing problem
              >
              >is title.html reachable if you enter its address in the browser?
              >
              >is title.html in the same directory as your jsp?
              >
              >perhaps you could post your web.xml file?
              >
              >"Chris Sceats" <[email protected]> wrote in message
              >news:3d9c41b5$[email protected]..
              >>
              >> Hi,
              >>
              >> This is probably a very simple thing to solve, but I'm having problems
              >with referencing
              >> html pages from jsps under Weblogic.
              >> I get Error 404 - not found, whenever I try something like this in
              >a
              >JSP...
              >>
              >> <frame name="title" src="title.html" scrolling=no>
              >>
              >> The title.html file has definitely been copied into my ear file, and
              >yet
              >it isn't
              >> found. I can solve the problem by turning title.html into a jsp and
              >registering
              >> it in web.xml. But this seems like serious overkill with static content!!
              >>
              >> Am I missing something really simple here?
              >
              >
              

  • Conditional HTML in a JSP page?

    I've been scouring the help and web for about 2 hours and haven't found a way to do this yet.
    What I'm trying to do is to conditionally generate attributes to a html tag via JSP, but everything I've tried (even stuff that's valid JSP) won't pass the JDeveloper HTML checks and it won't compile the JSP page.
    Specifically, I'm trying to add a bgcolor attribute to a <tr> tag if conditions are met in data in the row, but everything I've tried to get the added data in the tag results in some error.
    I've tried something like this in the HTML:
    <tr <%= color %> >
    and this from the java side:
    if (rowCont > 20) {
    out.prinln("<tr bgcolor=\"#c0c0c0\">);
    else {
    out.prinln("<tr>");
    Both methods result in lots and lots of HTML errors and JDeveloper won't even compile the page. The hmtl way resutls in "name expected" errors, and the java way results in a bunch of "end tag doesn't match start tag" errors.
    Any clues on ways to do this?
    Thanks

    Can you send me a larger snippet of code from your JSP? I do pretty much the exact same thing in all of our JSP's in our app. If you have a uix:form tag, you'll need to wrap all html inside uix:rawText tags.
    String colText = "class=\"OraTableCellText\" style=\"border-left:1px solid #CCCCCC;border-bottom:1px solid #CCCCCC\"";
    <td <%=colText%> >Text here </td>
    <td <%=colText%> >More Text </td>
    -Teri
    [email protected]

  • How to call HTML page through JSP ?

    i want to know Hw to call Automaticly a HTML page through JSP.
    example :-
    have u seen yahoo login wen u put your ID & pass & Clock on login button it will chack ID & pass in the database & if it is correct then It will call A Mail Home Page.
    that's same i want to do.
    i have a jsp page which chacks the userID & Pass & call the first.html page
    but i dont know how to call html page automaticly.
    Any one can help me
    what i think is this
    tell me is it right or not
    suppose i have made a variable
    String add = "first.html"
    after chacking userID & pass
    if(idpass == true)
    add;
    if(idpass == false)
    erre;
    it will work or not pl tell me

    If you do the redirect with javascript, the user cannot resubmit his login when he presses the refresh button. When he does press refresh, he only refreshes the redirect, not the form post that was before it. When he presses back the redirect will also kick him back in stead of going back to the login page. A simple javascript redirect page would look like this:
    <html>
    <body onload="document.location.href='myhtmlpage.htm';">
    </body>
    </html>But that is only if you care about resubmits of course.

  • Urgently Need Code for Copy & Paste from Html Table in JSP to Excel file

    I am creating a html table in JSP file .
    I need code for 'Cut,Copy,Paste' functions ie. if someone wants to copy data from my table to excel file or from excel file to html table he shud be able to do that.
    Can someone give me code for 'Cut,Copy and Paste' i.e. some javascript functions which can do cut, copy and paste which i can put in my jsp file
    Thanks
    Message was edited by:
    javatechguru2007

    package com.chinmayananda
    public class Tetris{
    // complete here
    code]
    public abstract class AbstractTetris {
       public abstract void start();
       public abstract void stop();
    }nearly done

  • How to upload an html file using jsp and jdbc

    Hi,
    im trying to upload an html page using JSP and jdbc. but of no success.
    my aim is to keep some important html pages in the database.the file size can vary.the file has to be selected from a local machine (through the browser) and uploaded to a remote machine(where the databse resides).
    any help/sample code or pointer to any helpful link is appreciated.
    thanks in advance
    javajar2003

    When uploading a file, I use a byte array as a temporary buffer..
    So, you should then be able to store the byte array in the
    database as binary data.
    example>
    //Temporary Buffer To Store File
    byte[] tmpbuffer = new byte[860];
    //Some Code To Upload File...
    //File Should Now Be In Byte Array
    //Get DB Connection and execute Prepared Statement
    Connection con=//GET DB CONNECTION;
    String sql=insert into TABLE(page) values(?);
    PreparedStatement ps=con.prepareStatement(sql);
    ps.setBytes(1,tempbuffer);
    ps.executeUpdate();
    //Close PS and Free DB Connection
    ..... and this method looks like you dont even have
    to store the file in a byte array, you can just give
    it the input stream.
    ps.setBinaryStream(int, inputStream, int);
    You may have to make several attempts at this. I have
    uploaded a file and temporarily stored it in a byte array,
    but have never from there stored it in the DB as binary
    data.. but this looks like it'll work.
    Good Luck!

  • Is it possible to reorder comments in the comments summary?

    Hi,
    I am making comments on a document which is laid out in two columns. When I create my comments summary (selecting 'by page' when choosing the comment order), The comments are numbered from the top of the page down, regardless of the flow of text. This makes in very unintuitive to read through as you have to jump between different parts of the text as you are working through the comments summary.
    Is there a way round this so that the comments are numbered in order of appearance in the flow of the text?
    Thanks,
    Harry

    Only if you use a custom-made script to generate the report. Then you have full control over the output.

  • Comments Enable for Commenting and Analysis in Adobe Reader...

    How to run the "Comments >> Enable for Commenting and Analysis in Adobe Reader..." through Javascript or Plugin...
    Thankzzzzz

    This is possible with following  server product:
    http://www.adobe.com/products/livecycle/readerextensions/

  • Disappearing comments / Viewing wrong comments in online commenting using WebDAV

    We are having an issue of disappearing comments / Viewing wrong comments for users 
    when they use online commenting using Adobe Acrobat 9.1.3 (WebDAV)
    When user posts his comments online using send and recieve comments , the comments file is prepared directly under webDAV root (instead of an MD5 hash folder). The issue is seen when users posts his comments from Adobe Acrobat 9.1.3. When we checked the same with Adobe Acrobat 8.0 , 9.0.0 , 9.2.0 it worked.
    What could be the issue ? Is it an issue specific to 9.1.3 or do we need some settings on Acrobat side ?
    thanks
    Nachiket

    Just to be clear, you are putting those comments in a formula, not in the select expert or anything like that?
    I got the same version of Crystal developer as you and I just created a new report, created a new formula and put in some comments and save the report and opened it and the comments are still there.
    What if you create a new report and create a new formula with some simple formula in it.
    I used this:
    //This is a comment
    1=1;
    //This is another comment
    "This is a text"
    If those comments disappear on you as well then something is really strange. There is nothing new in how comments are shown as compared to Crystal 10.
    What OS do you have and what data source are you working on?
    Cheers,
    Josh

Maybe you are looking for

  • How do I access photos from my OneDrive account on Photoshop Touch?

    I have all my files and photos organised on OneDrive because it's the most efficient way of sharing everything in my mixed-device environment (iMac, Windows phone and Android tablet). I recently downloaded Photoshop Touch on the Android and can't see

  • ID not exporting to PDF part of an AI file

    Hello, I have an AI file linked into my ID file. The AI file is a header with my contact info and logo, it is used in multiple documents. When I export this one particular document it does not export the logo, only the text. My other documents export

  • I can't delete mailbox "On My Mac"

    I have checked my Mail/V2/Account folders and I have all permissions. I have deleted the account the mailboxes were linked to. However, Mail will not let me delete these mailboxes. Everytime I choose "Delete Mailbox" it makes a sound (the no new mail

  • Error in the table parameter.

    Hi All, I have some Error in a table parameter in the tree model when i created the Dialog program. "Errors : ITEM_TABLE contains two items with the same name" Please help me to solve this error Regards, Luke

  • Restoration for Compaq mini CQ10-112nr

    My HP Compaq mini CQ10+12nr has crashed  I was trying to restore it to factory default and now it will not let me even go to the safe mode screen it will not even sign on,  It will go to the screen that will give you the option of safe mode and etc.