Documentation for JSP pages

hi,
i am trying to do documetation for jsp pages, but i not successed.
can someone clear this up for me? thanks!

Try the Java developer section of the forums. You're not too likely to get an appropriate response in the SRSS area :-)

Similar Messages

  • Save option for jsp page

    hi all,
    In my project am including a html page in jsp.Now i want to save the html page only.Please any body help me to how to give save option for jsp page.
    Thanks in advance.
    mohan :)

    you can save it in with browser "save as"

  • How to implement content caching for jsp page ?

    Hello everyone,
    I am reading an article <Servlets and Jsp Best Practice>,at
    http://developer.java.sun.com/developer/technicalArticles/javaserverpages/servlets_jsp/#author, on one section it is saying :
    "Cache content: You should never dynamically regenerate content that doesn't
    change between requests. You can cache content on the client-side, proxy-
    side,or server-side. "
    Now I am working on a project. For every user, some of the content servlet generated will be the same for at least a week . I am thinking if I implement caching for these jsp pages, that would increase performace a lot.
    But I have no idea how to implement it either client-side or server-side, can someone give me a hint ?
    Thanks,
    Rachel

    You mean actually you are caching the response stream
    and the key to distinguish between different response
    streams are made of user's different request
    parameters. And the filter's function is to intercept
    the request to see if this request parameter's
    combination already exists in the Hashmap,then either
    use the cached response or forward to
    servlet.....really interesting...Do I get it right ?Yes that's it in a nutshell.
    >
    Then how do you build those response streams in
    advance ? You did it manually or have some mechanism
    to build it automatically ?
    The data gets cached the first time somebody visits the page.
    Find some examples on Filters, and take a look at the HttpServletResponseWrapper class. You need to cache response headers as well as the body. Another pitfall that you might run into is handling an If-modified-since header on the request. Don't cache the results of those requests.
    -Jonathan
    >
    Thanks again !
    Rachel

  • Print version for JSP pages

    Hi,
    I have the following requirement. I have a site consisting of JSP pages. I need to provide a print version for every page.
    The problem is, while printing, if a webpage spans for multiple printing pages, I need to put a footer on each of these pages. But, this footer must appear only once (at the bottom of the page).
    How do I achieve this? any help will be greatly appreciated.

    there is one work around for doing this... in order to print the header and footer...generate a dummy page with the exact format...
    Header
    20-25 Lines Text
    Footer
    Header
    20-25 Lines Text
    Footer
    and so on...
    so when this is flushed to the printer....u would get every page formatted with Header and Footer as this is going to happen in the background...there willl be no pblm to users...
    hope this helps u...

  • Slow response time for JSP pages under iAS 6.0 SP4

    Hi,
    I got an application deployed on iplanet app server 6.0 SP4 on solaris
    2.8. Using a single kjs engine and lite sessions. kjs memory size is
    min 256 and max 256 megs. but verbose:gc shows memory is 98% free.
    when i restart the app server, all JSP pages are really rendered fast.
    After a while (1 or 2 days), the time to service the same request to
    JSP pages is getting much longer (even with JSP pages having only
    static content in them). CPU is idle ... It just takes time. KXS log
    shows requet is taking like 2-4 seconds instead of about 150 milli
    secs when the engine is just restarted.
    Now if i call a servlet (which do not dispath to a JSP), the response
    time is ok! Memory is ok. It looks like its related to JSP pages
    only.
    Anyone having an idea what the problem could be? One conig param is
    the JSP page cache in iASAT. Default value is 10. What is a correct
    setting for production? I have 4 different web app deployed in the
    same server instance.
    Tanks a lot for your input
    Andre Paradis

    Andre,
    I have found the answer to my problem and perhaps yours. It seems that I18N (internationalization) in SP4 may have a performance bug in it.
    My soak tests show that with i18N checked in the iAS Admin Tool, testing the fortune cookie sample application with light load (1 request / sec) resulted in a kxs response time initially of 15ms, however this response time increased by roughly 1% per request (i.e after 100 requests the response time had more than doubled).
    Switching I18N off yielded a steady 7ms kxs response time from the fortune cookie application.
    I would add that I turned I18N on AFTER the installation procedure.
    Is this a known issue in SP4? Is there a patch?
    regards,
    Owen

  • Is any free tool bar for jsp page?

    hi,
    I am having web pages.
    so I am entering some data in text area.
    how to select the font ,size,colors in jsp page.
    i want features like word in jsp page.
    is it any free software available to change font,color of text.
    Thanks
    siva

    and here is the js script for textEditorContent.js ...
    function boldThis(from)
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
            if (from == 2) document.form1.text.select()
                strSelection = document.selection.createRange().text
            document.selection.createRange().text = strSelection + "<b></b>"
        else
            document.selection.createRange().text = "<b>" + strSelection + "</b>"
        return;
    function underlineThis(from)
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
            if (from == 2) document.form1.text.select()
                strSelection = document.selection.createRange().text
            document.selection.createRange().text = strSelection + "<u></u>"
        else
            document.selection.createRange().text = "<u>" + strSelection + "</u>"
        return;
    function italicThis(from)
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
            if (from == 2) document.form1.text.select()
                strSelection = document.selection.createRange().text
            document.selection.createRange().text = strSelection + "<i></i>"
        else
            document.selection.createRange().text = "<i>" + strSelection + "</i>"
        return;
    function fontThis(from)
        var ind=document.form1.fontnames.selectedIndex;
        newfont=document.form1.fontnames[ind].value;
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
            if (from == 2) document.form1.text.select()
                strSelection = document.selection.createRange().text
            document.selection.createRange().text = strSelection + "<font face='"+newfont+"'></font>"
        else
            document.selection.createRange().text = "<font face='"+newfont+"'>" + strSelection + "</font>"
        return;
    function sizeThis(from)
        var ind=document.form1.fontsizes.selectedIndex;
        newsize=document.form1.fontsizes[ind].value;
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
            if (from == 2) document.form1.text.select()
                strSelection = document.selection.createRange().text
            document.selection.createRange().text = strSelection + "<font size='"+newsize+"'></font>"
        else
            document.selection.createRange().text = "<font size='"+newsize+"'>" + strSelection + "</font>"
        return;
    function colorThis(from)
        var ind=document.form1.colors.selectedIndex;
        newcolor=document.form1.colors[ind].value;
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
            if (from == 2) document.form1.text.select()
                strSelection = document.selection.createRange().text
            document.selection.createRange().text = strSelection + "<font color='"+newcolor+"'></font>"
        else
            document.selection.createRange().text = "<font color='"+newcolor+"'>" + strSelection + "</font>"
        return;
    function newlineThis()
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
        document.selection.createRange().text = strSelection + "<br>";
        return;
    function insertPic()
        var ind=document.form1.pictures.selectedIndex;
        if(ind==0)
            alert(msg15)
            return false;
        newpic=document.form1.pictures[ind].value;
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus();
        document.selection.createRange().text = strSelection +"<img border=0 src='"+newpic+"'>";
        return;
    function ahrefThis()
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
        document.selection.createRange().text = "<a href='" + document.form1.hyperlinknm.value + "' target='_blank'>" + strSelection + "</a>"
        return;
    function textview()
        popupWindow5=open("EDETAIL_Text_View.jsp",'Windown','scrollbars=YES,resizable=YES,left=10,top=20,toolbar=no,width=1000,height=600');
        if (popupWindow5.opener == null)
            popupWindow5.opener = self;
        popupWindow5.focus();
    function callSave(size, module, msg)
        if(!checkMaxLength(document.form1.text,size,msg))
            return;
        if(isBlank(document.form1.text.value))
            alert(module+" "+msg11);
            document.form1.text.focus();
            document.form1.text.select();
            return false;
        if(module=='Question')
            var tempstr ="";
            var count = document.form1.rowCount.value;
            var ind = document.form1.anstype.selectedIndex;
            for (i=0; i<count; i++)
                if(count==1)
                    if(ind>0)  // RADIO or CHECKBOX or DROPDOWN
                        tempstr = document.form1.answerDesc.value;
                    if(ind==1) // RADIO BUTTON
                        if(!checkMaxLength(document.form1.answerDesc,500,"Answer Option"))
                            return;
                        if(!checkMaxLength(document.form1.feedbackDesc,500,"Answer Option"))
                            return;
                else
                    if(ind>0)  // RADIO or CHECKBOX or DROPDOWN
                        tempstr = document.form1.answerDesc.value;
    if(ind==1) // RADIO BUTTON
    if(!checkMaxLength(document.form1.answerDesc[i],500,"Answer Option"))
    return;
    if(!checkMaxLength(document.form1.feedbackDesc[i],500,"Answer Option"))
    return;
    if(ind>0)
    if(isBlank(tempstr) )
    alert(msg12);
    if(count==1)
    document.form1.answerDesc.focus();
    document.form1.answerDesc.select();
    else
    document.form1.answerDesc[i].focus();
    document.form1.answerDesc[i].select();
    return false;
    for (j=i+1; j<count; j++)
    if(document.form1.answerDesc[i].value==document.form1.answerDesc[j].value)
    alert(msg13);
    document.form1.answerDesc[j].focus();
    document.form1.answerDesc[j].select();
    return false;
    document.form1.submit();
    This function is used to go back to previous screen
    function goBack()
    if(window.confirm(msg14))
    if(document.form1.From.value=="Page")
    document.form1.action="EDETAIL_Add_Page_Content.jsp";
    else
    document.form1.action="EDETAIL_Upload_Text_Editor.jsp";
    document.form1.submit();
    By the way didnt this forum itself give you a big hint on Bold, Itallic & underline ?

  • Need help in countdowntimer in java bean for jsp page

    hi..im student..i need help with countdowntimer in jsp page..with java bean component..im use XHTML MP for my jsp page so i can use it in cellular phone with WAP 1..can anybody help me with this problem..thx

    hi..im student..i need help with countdowntimer in jsp page..with java bean component..im use XHTML MP for my jsp page so i can use it in cellular phone with WAP 1..can anybody help me with this problem..thx

  • Can't find Design View for JSP page on Unix

    I'm using weblogic workshop to develop page flow on Solaris, and I can't find the Design View tab to build
    JSP page. I searched all menus and can't find one to enable this function. Is this function supported on Unix?
    Thanks
    Zhong

    Zhong--
    Unfortunately, no; Workshop 8.x does not support design view on UNIX.
    Eddie

  • Session-scope variable for JSP page used in a frame

    Hi,
    I don't know if there's a way to do this at the same time:
    (1)- assign session scope to a variable (in order to be able to retrieve recurrently the previous value each time the JSP is called);
    (2)- set its visibility in a way that it could be accessed only by the page that defines it. The JSP is used in a frameset along with an other JSP that can potentially define identical session-scoped variable (You understand why I want to keep them separate)
    session.setAttribute():
    seems not to be the thing I need
    pageContext.setAttribute():
    with SESSION_SCOPE, it behaves the same way as session.setAttribute(). with PAGE_SCOPE, condition (1) can't be satisfied.
    Does anybody have an idea ?
    Thanx in advance.

    I can see that you will not want to maintain two different files for every possible page on the site!
    It may be possible to do something like <frameset rows="*" cols="50%,*">
      <frame name="content1" src="file.jsp?frame=one" >
      <frame name="content2" src="file.jsp?frame=two" >
    </frameset>and then in the jsp<%
    String frame=request.getParameter("frame");
    session.setAttribute(frame+"AttributeName",attributeValue);
    %>This will set up two session attributes - "oneAttributeName" and "twoAttributeName". Depending on how many variables you have, this may prove just as difficult to maintain.
    You may end up having to simply pass url parameters between pages to maintain state within the individual frames, which is far from elegant also.
    I am interested in how you end up solving this one.

  • Cannot use jstl tag for jsp page which generated from Human Task

    Hi
    Plz help me.
    I have tried to using jstl in jsp which generate from Human Task and I deploy it to server( by ant on Jdev ) to see task detail in Oracle Worklist application. But when i submit task and then I access to worklist to see task detail, the error has show in page that "OracleJSP: An error occurred. Consult your application/system administrator for support. Programmers should consider setting the init-param debug_mode to "true" to see the complete exception message. " .
    I access server to see application.log to see error and I see error show "workflowform: JspServlet: unable to dispatch to requested page: Exception:oracle.jsp.parse.JspParseException: /Header1.jsp: Line # 3, <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> "
    How do I fix this error?
    PS. I tried to us jstl because I need to connet to database which jstl tag(sql) if somebody has another solution for connect database in task detail page, Please help suggest me.
    Thanks
    user520932

    Is the jstl tag libray loaded in the appsserver?
    Can you use jdbc connection like
    DataSource ds = ic.lookup("java:comp/env/jdbc/myDB");
    Connection con = ds.getConnection();
    DataSource ds = (DataSource) org.apache.derby.jdbc.ClientDataSource()
    ds.setPort(1521);
    ds.setHost("localhost");
    ds.setUser("APP")
    ds.setPassword("APP");
    Connection con = ds.getConnection();
    http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html

  • Where can I find an official online documentation for JSP?

    I'd like a JSP documentation like the one PHP has. Does JSP official online documentation exist? if so, what's the link?

    What exactly do you need to know? JSP is just a bridge between HTML and Java. All you need to know is, yes, HTML and Java.
    Here at Sun.com you can find API documentation of the standard Java SDK.
    Java SE SDK API: http://java.sun.com/j2se/1.5.0/docs/api/
    Java EE SDK API: http://java.sun.com/javaee/5/docs/api/
    If you want to know about the taglibs, e.g. JSTL, here it is:
    JSTL 1.1 TLDDOC: http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/

  • Screen resolution for jsp page

    Hai i have a doubt in the screen resolution of my page. i m using the screen resolution of my pc as 1024*762 pixels. i have done a jsp web page page in this resolution.while copying the page and running it in my friends room it appears differently because he s using the resolution as 1152*864 . Its there any way to solving the problem of viewing the page similarly in any kind of resolution...

    Well it is not addressed by JSP rather it can only be done @the client end and javascript is what which can help you.
    how is that its gonna do that,pls find the details by refering to the below link.
    http://www.w3schools.com/js/tryit.asp?filename=tryjs_browsermonitor
    Hope that might help :)
    REGARDS,
    RaHuL

  • I want Full Documentation for Web Page Composer to Create Full Fledged site

    Hi Experts ,
    I want to know the Full fledged Information And Docs how to make Intranet website Using WEb Page Compopser .
    Send me ur Docs and pdf * ANy screenshots to : venkat685atgmail.com
    Regards ,
    Venkat

    Hi Venkat,
    You might want to check the following resources for creating web sites:
    - SAP Help [Creating and Publishing web sites|http://help.sap.com/saphelp_nw70/helpdata/EN/46/792f9b608c0ad3e10000000a11466f/frameset.htm]
    - Web Page Composer content creation [blog|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5924] by Roland Wilfer (check also Christopher Kaestner blogs about additional WPC features)
    Hope this helps.
    Best Regards,
    Joseph

  • Security logic for JSP pages

    I am developing a product using JSP and servlet. I want to know if any algorithm is there to prevent software piracy

    Bad news: There is no such algorithm.
    Good news: You don't need one.
    Servlets and JSP are executed on the server so a user only gets plain html code. He actually has to hack your web server. Apply the usual measures (firewall, demilitarized zone and so on).
    If you are talking about distributing your application to web service providers. You can use Obfuscators (like Zelix KlassMaster Java Obfuscator, CodeShield Java Byte Code Obfuscator , RetroGuard Java Obfuscator, ...) and build an online activation registration into your code (or any other licence mechanism).

  • Sytax highlighiting for Jsp Dyn Pages for portal development.

    Hey,
    I am doing JSP with the htmlb taglib for portals. When I edit a jsp page in the Developer Studio, I expect syntax highlighting. This is what I see in the documentation for jsp editing as well - you know where the keywords are highlighted.
    Sytax highlighiting for jsp in Developer Studio for portal development.
    http://help.sap.com/saphelp_nw04s/helpdata/en/ce/e0a341354ca309e10000000a155106/content.htm
    OutputSuccess.jsp, OutputSuccessText.jsp are the two jsp's that are syntax highlighted on this page.
    In my Developer Studio this is not the case. Is a JSP editor and its highlighting not part of the Developer Studio. If it is, how do I get it to work.
    I also know that given the right taglib's, the editor also gives autocomplete for taglibs with its settings. I am hoping to speed up my development with this.
    Right now I am using a text editor for this. There are a couple of jsp plugin's such as Exadel or Lomboz which I can integrate if a jsp syntax editor is not there in the Developer Studio. I just wanted to know the right way to go about this.
    Thank you for your help.
    Sumit.

    Never mind. I was in the preview mode.

Maybe you are looking for

  • Firefox 4 seems to action on some html tags that are included within a html comment tag which it should not.

    Consider the following html code where I open a textarea and include a comment tag within the textarea. Within the comment tag (which Firefox 4 should ignore) I've included a close textarea tag. Firefox 4 (unlike FF3 and IE) closes the textarea. The

  • Session could not be started

    Hi I'm using a PC with Windows Vista, my iPhone is using software version 2.2.1 and iTunes version 8.1.1.10 I can sync it with the laptop fine, but when I try and back up my phone I get the message: iTunes could not back up the iPhone with "phonename

  • ALV Grid in Excel-inplace

    Hi, I am having a report which is being shown in ALV grid. I am having one checkbox in selection-screen namely 'Excel Inplace'.If this checkbox is checked then report should be shown in excel-inplace format. Please guide me how to achieve this. I am

  • Will os x 10.5 run on my emac g4?

    Hello, I have an old Emac g4 (ATI) with a 30gb hard drive and 512 mb of ram. I heard this machine can run mac os x 10.5 but I wasn't sure if this was true. Can my machine run it and if not, what is the best os to use? Current os is 10.3.9

  • Access to StateManager in kodo4.1

    Hi all, does somebody know how to access the state manager of a persistence capable instance in kodo4? With kodo3 it is possible through the KodoPersistenceManagerSPI inteface kodo.runtime.KodoPersistenceManagerSPI.getStateManager(java.lang.Object) T