OnClick edit functionality in jsp

hi
I have a jsp with the contact information about a company. at the bottom there is an edit button. I want to edit the details on the same page by clicking that button. but dont know how to link to the same page with making the fields editable.
Please help me.

on click of the button call ur javascript and make that txt button editble property as false ...
regards
Nilesh

Similar Messages

  • How to write printing function using JSP?

    dear all,
    i want to add a printing function in my project but i do not know how to do it? could anyone teach me how to do it?
    thanks
    eric

    salut eric,
    you can do it this way :
    1 - create a html link in your code to this javascript
    function : (I am using Struts, but you can write it in
    pure html
    <html:link href="#bodyStart"
    onclick="openWindowForPrinting()"
    titleKey="msg.status.print">      <bean:message
    key='app.print' />
    <script language="JavaScript">
    <!--
    window.open = SymRealWinOpen;
    //-->
    </script>
    </html:link>
    >
    >
    2 - here is the javascript function : it open a window
    with the "print.jsp" page.
    function openWindowForPrinting(){
    window.open('/your_project/pages/common/print.jsp','',
    'left=150, top=150 , status=no, directories=no,
    toolbar=no, menubar=yes, location=no, scrollbars=yes,
    resizable=yes, dependant=yes');
    3 : here is the print.jsp page : You have only to
    create a session variable called
    "currentBodyRelativeLocation", which content the
    relative URL to the page you want to print (for
    example, the boby of the current page).
    <%@ taglib uri='/WEB-INF/tlds/perso.tld'
    prefix='perso' %>
    <html>
    <head>
    <perso:csslink page='${cssRelativeLocation}' />
    </head>
    <body onload="var SymTmpWinOpen = window.open; window.open = SymWinOpen; printPage();; window.open = SymTmpWinOpen;">
    <body>
    <jsp:include page="${currentBodyRelativeLocation}"/>
    </body>
    <script language="JavaScript">
    <!--
    window.open = SymRealWinOpen;
    //-->
    </script>
    </html>
    <script language='javascript'>
    function printPage(){
    window.print();
    window.close();
    </script>
    hai,
    i'm not very understand how is your code work. when i write html code, do i need to mind about this code: "msg.status.print" ? what is this code mean?
    i have too much question on this thing. would you mind to be further explain to me? or is it any reference for me to refer? i'm really new to write printing function on JSP.
    i never write this function before. i'm feel so lost.....:(
    thanks again
    eric

  • I never had this problem before but all of a sudden when I go to "edit" a photo the photo turns black.  All the editing functions appear but I cannot see any picture.  When I hit "done" the photo reappears. Why can I no longer see my photo for editing pu

    For years I have had no problems editing photos.  However, for some reason when I go to "edit" my photo the photo turns BLACK/BLANK.  The editing functions appear but I cannot see the photo.  When I select "done" the photo reappears.  Why is the photo disappearing for editing?  Have I hit a command accidentally that is causing this?  Really appreciate someone's assistance.

    Try the following:
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - Run  Option #1, Repair Permissions, followed by Option #4, Rebuild Database, if needed.
    OT

  • Question regarding editing functions that are no longer showing up in photoshop

    Hi!
    I purchased editing functions from a company that allows me to use them within my PhotoShop Elements 10 software. I have been using these functions for quite some time & when I opened my PhotoShop Elements software this morning, all of my editing functions were gone.
    The functions are still listed in my folders under my C drive.
    Any ideas as to how to get them back into my PhotoShop Elements 10 so that I can use them?
    Thanks so much!

    Are you sure you're in full edit? Go up to the Edit tab at the upper right of the PSE screen and click where it says Full, to make sure. If that's not the problem, what is missing?

  • PE7 Edit functions Not Working well after Upgrading from Vista to Windows 7

    My PE 7 was working very well under Vista Home Premium - 64 Bit. But after I upgraded (not clean install) to Windows 7 Home Premium - 64 Bit, it appears that the PE7 is working OK except for the EDIT functions.
    I am talking about the Tool Icons on the left side. When I select any icon, the Mouse Curser does NOT chnage to reflect the proper shape. For example, when I click the Crop Tool, my mouse curser chnages to 3 little (tiny) crop icons in a row, and the crop functions don't work like they should.
    Can anyone please help as to waht I need to do to correct this situation.
    Thank you.

    Over at elements village there are a couple threads about this
    on windows 7.
    I have never had this problem, but other users say the solution
    in these threads works.
    So it might be worth a try.
    http://www.elementsvillage.com/forums/showthread.php?t=55922
    http://www.elementsvillage.com/forums/showthread.php?t=54101
    Hope this helps.
    MTSTUNER

  • How do I get back my edit functions, copy and paste, without doing a restore?

    When I switched to Firefox 4 I no longer have the file, edit, etc. functions anywhere. I can't or don't know how to copy and paste websites to emails for instance without the edit functions.

    I have checked the toolbar buttons and have MENU ticked, I went to the customize toolbar thing and added (by drag and drop) the cut copy and paste and other buttons I cant find now, and they showed up at first, then they disappeared. The top section seems terribly narrow now and I cant find any way to add the buttons underneath where they used to be...help!

  • How to call java script function from JSP ?

    how to call java script function from JSP ?

    i have function created by java script lets say x and i want to call this function from jsp scriplet tag which is at the same page ..thanks

  • HT5449 How do I find edit functions such as delete and backspace in mac OX dictation

    I can not find delete, backspace or other edits functions. Is there a hands-free alternative to press function key.

    This code will remove everything that is possible from the Bookmarks menu , Bookmarks Menu button, and App menu so leave out what you want to keep.
    <pre><nowiki>#menu_bookmarkThisPage,
    #subscribeToPageMenuitem,
    #subscribeToPageMenupopup,
    #menu_bookmarkAllTabs,
    #bookmarksShowAll, #organizeBookmarksSeparator,
    #bookmarksToolbarFolderMenu,
    #bookmarksToolbarFolderMenu+menuseparator,
    #bookmarksMenuPopup menuseparator[builder="end"],
    #menu_unsortedBookmarks { display:none!important; }
    </nowiki></pre>
    <pre><nowiki>#BMB_viewBookmarksToolbar, #BMB_viewBookmarksToolbar+menuseparator,
    #BMB_bookmarksShowAll, #BMB_bookmarksShowAll+menuseparator,
    #BMB_bookmarkThisPage,
    #BMB_subscribeToPageMenuitem,
    #BMB_subscribeToPageMenupopup, #BMB_subscribeToPageMenupopup+menuseparator,
    #BMB_bookmarksToolbar, #BMB_bookmarksToolbar+menuseparator,
    #BMB_bookmarksPopup menuseparator[builder="end"],
    #BMB_unsortedBookmarks { display:none!important; }
    </nowiki></pre>
    <pre><nowiki>#appmenu_showAllBookmarks, #appmenu_showAllBookmarks+menuseparator,
    #appmenu_bookmarkThisPage,
    #appmenu_subscribeToPage,
    #appmenu_subscribeToPageMenu,
    #appmenu_subscribeToPageMenupopup, #appmenu_subscribeToPageMenupopup+menuseparator,
    #appmenu_bookmarksPopup menuseparator[builder="end"],
    #appmenu_unsortedBookmarks { display:none!important; }
    </nowiki></pre>

  • Album "Edit" function can't be configured to write photos on SD card

    Edit function of Album application, as well as other edition applications (Speedseed, etc.) can't be configured to use SD card, and write editing results into internal memory.

    A similar issue-- I don't like it that edited pix are saved in an Edited folder and not in the main album.  Can I change this? When trying to upload in FB, the Edited folder cannot be seen or selected, but only "photo roll".  Worse, that folder cannot be found by Google+ and thus are not backed up there.

  • Access session variable in Java Function in JSP

    Hi Experts !!
    I am developing an application using STRUTS MVC...
    Very sorry if u have problem understanding my question, i ll try to improve... and sorry if i can't post codes here
    Basic question is ....
    I want to open a word document on pageLoad of JSP, the word document is not a single document, there is a form in which there is a "name" and "template" whenever user clicks on a button there is one action attached to it which creates a copy of that template in a different folder.. on the next page OnLoad i want to open that particular document. for that i have created a variable and also have set in the session, just want to access it in the below code.
    I have a formbean in which i have a variable, the scope is session, that variable i have put it in session also. but i want to access that variable in a "java function" in JSP so that "onLoad" page that function should work.
    JSP---
    <script type="text/javascript">
    function openDocument() {
    var w = new ActiveXObject("Word.Application");
    var docText;
    var obj;
    var a;
    if (w != null) {
    w.Visible = true;
    obj = w.Documents.Open(I HAVE TO ACCESS THAT VARIABLE HERE);
    </script>
    FORMBEAN----
    public class CreateSOWFormBean extends ActionForm {
    private String workflowName;
    private String comment;
    private String sowTemplate;
    private String sowFileCreated;
    public String getSowFileCreated() {
    return sowFileCreated;
    public void setSowFileCreated(String sowFileCreated) {
    this.sowFileCreated = sowFileCreated;
    sowFileCreated is the variable that i have accessed in session and that value i have to pass in that function in JSP....
    I am aware of something like
    obj = w.Documents.Open(<%'sowFileCreated'%>);
    but i m not sure how to write....
    Plz help.....

    If you're working under a framework like struts you should definitely be using JSTL tags rather than scriptlet code to access variables within the page. With JSTL code <% codes can be almost entirely avoided.
    To transfer a value from a Servlet to a JSP don't use a session variable, use a request attribute. Session variables should only be used when values have to survive from one transaction to another.
    You can write something like:
    obj = w.Documents.open('<c:out value="${openURL}"/>');in the Javascript portion of your JSP.
    Just beware of potential problems with quotes. The coresponding code in the Servlet would be like:
    request.setAttribute("openURL", openUrl);

  • There is no edit function for profile picture change

    Hi!!
    I go a problem changing my profile picture as there isn't any edit function therefore I have been stuck with the same picture from the last unknow period!!!!  Normally there is edit function though; but the same button seems vanished!!  Could anyone help me on this? Thanks.

    Thank you very much. Actually just drag and drop works great!! Anyway....thanks for the light given which eventually solved my case!! Cheers!!!!!

  • How to realize print function in JSP

    How to realize print function in JSP? I know use Javascript:window.print() can print,but it will print whole page,it don't fit me;Another method is to write JSP into Excel and then print it in Excel,but it don't fit me too,because it don't print directly. Anybody know how to print it directly?

    Many websites offer a "printer friendly" version of a certain page. That IMO is the only way to solve your problem, next to using CSS to use a different style for printer output. Here is a tutorial that covers this:
    http://www.alistapart.com/stories/goingtoprint/

  • Passing values to JavaBean function using jsp scriplet

    Hi,
    I have a JavaBean funtion that is SaveData(parameters)
    which save the values from HTML form.
    Now i want a code for pass the values from HTML form to SaveData() function using jsp scriptlet.
    I used the code
    <jsp:useBean id="JDBC" class="bean.JDBCBean" scope="application"></jsp:useBean>
    <%=JDBC.saveData(phonenumber,manufacturer,model,email,country,newsletter)%>
    Here
    JDBCBean -> Bean Name
    phonenumber,manufacturer,model,email,country,newsletter ->HTML form's text values
    But it didnt work properly.
    Anyone help me to correct this.

    Hi,
    i have the same code like above
    I have to pass the parameters with form name under the following code.
    <jsp:useBean id="JDBC" class="bean.JDBCBean" scope="application"></jsp:useBean>
    <%=JDBC.saveData(registration.phonenumber.value,id_type.value,id_style.value,registration.email.value,registration.scountry.value,player_type.values)%>
    Here
    registration -> HTML form name
    But i got the error for
    package registration does not exist
    out.print(JDBC.saveData(registration.phonenumber.value,id_type.value,id_style.value,registration.email.value,registration.scountry.value,player_type.values));
    How to i correct this?
    Anyone help me......

  • How to run the recursive function in jsp

    hi, can any body tell me how to run
    rrays.sort(files);
    for (int i = 0, n = files.length; i < n; i++) {
    for (int indent = 0; indent < indentLevel; indent++) {
    System.out.print(" ");
    if (files.toString().endsWith(".jsp"))
    System.out.println(files[i].toString());
    if (files[i].isDirectory()) {
    listPath(files[i]);
    indentLevel--;
    this code in jsp
    thanks in advance

    Why are you writing scriptlets and functions in JSPs?
    Functions are supposed to be written in the Java Application layer.
    JSPs are best suited only to display information.
    Also why are you using Scriptlets insted of JSTL ?
    Anyway, if you want to write in JSPs only , here's how to write a function in them: http://forum.java.sun.com/thread.jspa?threadID=496577&messageID=2341986 you can figure out the rest.

  • How can we set Entitlment to "Edit " functionality of Portlet.

    Hi All,
    I have requirement, where in default "Edit " functionality is used in a portlet.
    Edit is mapped to JPF.
    This "Edit" is for Administrators only.
    I am wondering : Is there a way for setting Delegator Admin Entitlement for
    this "Edit" functionality in portlet??
    TIA,
    RAM

    Thanks Philip, pls do let me know how can it be applied to "Edit" - Prashnath
    Bhat.
    "Phil Griffin" <BEA> wrote:
    There is no direct support for this. A workaround may be to recreate
    the DA role as a visitor role and apply it to edit.
    -Phil
    "RAM" <[email protected]> wrote in message news:403c20f7$[email protected]..
    Hi All,
    I have requirement, where in default "Edit " functionality is usedin a
    portlet.
    Edit is mapped to JPF.
    This "Edit" is for Administrators only.
    I am wondering : Is there a way for setting Delegator Admin Entitlementfor
    this "Edit" functionality in portlet??
    TIA,
    RAM

Maybe you are looking for

  • Help, I have locked myself out of my macbook air and there seems to be no way back on.

    I have literally just got my first mac computer today (a macbook air) having previously been a PC user. Needless to say, I am not familiar with how to use them at all and am pulling my hair out here trying to work out why I have been locked out after

  • NW2004sSP7_Preview J2EE Server error

    Hi, I am not able to start the J2ee server after install. Here is the trace file from the server. trc file: "C:\usr\sap\J2E\JC01\work\dev_server0", trc level: 1, release: "700" node name   : ID14203250 pid         : 5668 system name : J2E system nr. 

  • Best practice to create order extract from CRM to Business Objects

    Is there a "best practice" to extract orders created/changed on a daily basis to Business Objects.  We have considered trying to use the standard CRM BI extractors, but we are not sure this is possible without actually running a SAP BI system.  Is th

  • BI Analytics Visual Composer Result, Where I can find it in Portal Content?

    Hello, I've done an html analytics in Visual Composer. Now I want to use it in an iview, but I don't know where is this VC in the Portal Content. I'm using CE 7.2. Someone can help me? Or I have to use it as an URL iview. Thanks Regards SU

  • Error with ESS-Record working Time

    While trying to create record for timesheet thorugh CATS on ESS > Record working time I get the following error : Could any one guide me the same please. 08.07.2013: Counting rule 1/07/030 does not exist Erroneous records exist. Navigation is not pos