How to convert a .jsp page in to the .txt page with a click of the button

Hi Sir,
Here the main thing is that in order to print a web page(.jsp page) in dotmatrix printer i need to first convert that webpage (.jsp page) in to .txt page.But my doubt is that can you convert a .jsp page in to .txt page with a click of a button so that whatever there in .jsp page has to be completely transferred in to .txt page if so then in that .txt page i need a button when i click it the page need to be send to the printer without using the file menu print option.First i need to know whether it is possible in java?If so please do help me by providing the exact code.If it is not possible in java pls.do provide other option.It is very urgent.Thank U.
Regards,
m.ananthu

We can convert a .JSP page content into a .txt file by using MIME type conversion. In this scenario we cannot provide a button, because its an .txt file (not .JSP).
If you want to print JSP content into a .txt content along with a button to print that page can also be done.
-Chandra

Similar Messages

  • InfoPath 2010 - How to connect to another content type form from the current form with a click of a button?

    I have two different form library forms for each different content type published to the same Form Library.  I like to know if by a click of a button, if I could close the current form and jump to the next and vice versa? If so, what steps
    would I need to take using OOB technology?
    Thank you,
    SRAEngineer

    Hi Guru:
    Thanks.  However, the Views do not work in my case, as one form has different required fields than the other and set of fields also changes a bit for each form.
    However, researching more I have been able to find the solution since I posted this request.
    I will try to describe the Solution:
    First I deployed both the forms to a SharePoint Form Library. Then I opened the template from the advanced settings and copied the URL from the top search box of IE.
    Went back to the design view of the form, highlighted the writings/title of the form and right clicked to paste the hyperlink.
    Quick published it again and now the hyperlink is working active/live in the deployed form as well and doing its job to get to the next form. I repeated the process to the other form to do a toggle.
    Thank you for your input though.
    Regards,
    SRA
    SRAEngineer

  • How can I share the home folder with different accounts on the same mac?

    Hi, here's a question:
    How can I share the home folder with different accounts on the same mac?
    The whole point being not to have to install all my apps, and move all my files each time between users.
    The second thing would be to be able to modify one document on one account, and have it changed on the other account without having to copy it.
    I would like to have a pro and a private account on my mac.
    Thanks for you answers,
    Doug

    Your apps should not be installed in your home folder--they should be in /Applications where every user can access them.
    If you want to share things between users on the same Mac, use the /Users/Shared folder. Keep your home folder private. Trying to defeat the protections on the home folder subfolders just gets messy. I've never bothered to figure out all of the problems associated with it so I can't explain how to do it.
    Even with using Shared, you would need to alter the ACLs on the shared folder in order to allow both users to modify the documents.
    You must create a Group in Users & Groups and put each user in that group. Then create a folder inside /Users/Shared where you want to share the various files.
    Then, add an ACL to the shared folder that gives the group special permissions. on that folder.
    sudo chmod -R +a "<sharinggroup> allow delete,chown,list,search,add_file,add_subdirectory,delete_child,file_inherit,directory_inherit" /Users/Shared/<sharing folder>
    Replace <sharinggroup> and <sharingfolder> with the name of your group and your folder. Then, run the command in the Terminal.
    With that ACL, each user in <sharinggroup> will be able to alter the files created by any user in the group in that <sharingfolder>.
    Essentially, the client OS is not designed for true file sharing among the individual users. It is designed to isolate each user account from the others.

  • How can I sync my ipod 6g. to a new computer with out losing all the info

    My computer is starting to fail so I bought a new one. How do I sync my ipods they are 6 gen to the new computer with out losing all the data that is on the ipod?

    Was your iPod previously set up to Manually Manage (where you dragged/dropped the music) or was it set to auto sync (where it started sycning as soon as you plugged it in.)?
    If it was set to Manual, you have no worries. Just continue on your way.
    If it was set to Auto, you will have to transfer your purchases or redownload them from the iTunes store.
    You're either going to have to get the other music back from the websites/CDs you got them from before or find an iPod ripping software program that will do it for you.

  • How can I turn-off the apps which I have opened once in ISO 7.0.2. In previous version of ISO it was easy to turn- the opened apps by double clicking on home button and then click and hold on respective apps then click on cross sign.

    How can I turn-off the apps which I have opened once in ISO 7.0.2. In previous version of ISO it was easy to turn-off the opened apps by double clicking on home button and then click and hold on respective apps then click on cross sign but in this version I could not do so and my iPad appears slower.

    Close inactive apps
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen

  • How do I share the iTunes library with all/some of the other users on the same iMac?

    How do I share the iTunes library with all/some of the other users on the same iMac?

    Check out these articles it may help...
    http://support.apple.com/kb/HT3819
    http://www.apple.com/itunes/how-to/#playlists-shareplaylists
    hope this helps.

  • How can i remove secure files from the trash? I tried click away the secure notification in info, but still i cann't remove them. Is there a buttoncombination to use?

    How can i remove secure files from the trash? I tried click away the secure notification in info, but still i cann't remove them. Is there a buttoncombination to use?

    If you are unable to empty the trash, try holding the Option key while selecting Empty Trash.
    Otherwise, some steps in the following link may help you.
    http://support.apple.com/kb/ht1526

  • I am going to japan with an Ipod nano and Iphone 4. Do I need a converter? or does the one the iphone comes with that plugs into the wall enough?

    I am going to japan with an Ipod nano and Iphone 4. Do I need a converter? or does the one the iphone comes with that plugs into the wall enough? I know i wont need an adapter because it will fit into the wall outlet, but voltage wise, will i need a converter? Japan runs on 100 V. I am so confused on all of this...

    As long as the adapter is 2 pronged, then you should be able to use it without any problems.
    B-rock

  • Hi i recently created a document on iwork pages via my icloud account however when i click on the document now it doesnt seem like it saved the latest version? can anyone help with this?

    Hi i recently created a document on iwork pages via my icloud account however when i click on the document now it doesnt seem like it saved the latest version? can anyone help with this?

    Welcome to the Apple Community.
    Are you also trying to re-open it on the same device as you edited it.

  • I bought pages on the app store and have math type installed. However I am do not have the option to "Insert Mathtype Equations" either with right click or the drop down menus at the top of the screen.

    I bought pages on the app store and have math type installed. However I am do not have the option to "Insert > Mathtype Equations" either with right click or the drop down menus at the top of the screen. I also have OS Lion installed if this makes any difference. Please help!

    I assume but I can't check that MathType rely on the standard iWork applications location which isn't the one used by the mac App Store.
    Create a subfolder named iWork '09 in the Applications folder.
    Select the iwork applications which you own then drag them into the iWork '09 folder.
    You will be asked to type your password. Don't worry, it's normal.
    It's required because the System must store the infos describing the new location so that, if a new revision is delivered, mac App Store will be able to find the apps where they are.
    When this will be done, try to re-install MathType.
    I guess that this time it will behave flawlessly.
    Yvan KOENIG (VALLAURIS, France) mardi 13 septembre 2011 16:48:19
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • I can open pages in new tab but then can't click on the tab and view it i can only click the x the close it any idea why?

    I can open pages in new tab but then can't click on the tab and view it i can only click the x the close it any idea why?

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How to convert a JSP page into a PDF file?

    I am calculating and generating a bill in JSP?
    I want the output JSP page from the server to get converted to a PDF file.
    How to do this?
    Please help me doing this!

    Hai CeciNEstPasUnProgrammeur
    Actually I didnt mean what you are asking?
    I will put it in this way,
    I am having a JSP output.
    If I save that page in the browser it should get
    saved as a PDF File,
    This is my problem,As far as I can see, you have two options:
    1) Ensure you have some kind of rendering tool installed on the server, render your JSP to that engine, capture the output as an image and transform the image to a PDF. Or a variation on that server-side theme.
    2) Take the data you would be/are pushing into a JSP, offer a "download" facility that just takes that data and wraps it into a PDF. Your server then serves out that PDF file.
    To save the browser view (your JSP) as a PDF each client machine would need to be set up with some mechanism to capture and save as PDF. You can't control that.
    I've had to do something similar in the past. In that case though we had a simplar task of just generating a stored HTML file that we could store in the DB and lock down. Our approach was to use XSLT over the generated XML data structure.
    I'd advise you doing the same and generating an XML file and then running an XSLT/FO process over it to generate your PDF file. Don't try to do all the fancy stuff on the client environment, that's an environment you usually have very little control over.

  • How to convert a .jsp to a .java/.class file for use in peoplesoft

    Hi java/jsp experts,
    I want to convert a .jsp to a .java/.class file. is there a tool available, please let me know if you have any pointers....
    or can i do it manually:
    these are a few lines that the .jsp contains, and i would like to translate this to be in .java/.class format:
    <%@ page import="sun.misc.BASE64Encoder, javax.crypto., javax.crypto.spec."%>
    <%@ page import="java.util.StringTokenizer" %>
    <%@ page import="java.util.Map" %>
    <%!
    sb.append("<input type=\"hidden\" name=\"orderPage_serialNumber\" value=\"");
    sb.append(serialNumber);
    sb.append("\">\n");
    return sb.toString();
    %>
    how can i translate the above import statements and html elements from jsp to java, please let me know.
    Once i have the .java file created from the .jsp, I will compile .java to create the .class file and invoke the .class in peoplecode by using java apis available in peopletools.
    Thanks in advance.

    Is there a way convert a binary .exe file( compiled by
    another compiler) into Java .class/.jar file ? Anyone
    know of a free program that can do this?It's not possible. There are many decompilers and disassemblers for Java but nothing will take you from ANY binary to Java source. It would be the end of computing as we know it and the beginning of a new era -:)

  • How to convert a jsp into a pdf file

    Hi,
    I am working on a struts based project . In this project i have a jsp which displays table in a nested format , but i have to provide the user a button say
    "GET PDF" on click of which that entire jsp should get exported as a .pdf file as it is .
    1] I cant use display tag because export functionality is not provided for nested table.
    2] I cant figure out how to put an entire jsp as an input stream if i was to use itext (that is if its possible ).
    What are my other options ? Bottom line, what i need is to "make a .pdf file of a .jsp displayed, on a click of a button ".
    Thanks in advance,
    Anjali.

    Anjali_Pal wrote:
    Hi,
    I am working on a struts based project . In this project i have a jsp which displays table in a nested format , but i have to provide the user a button say
    "GET PDF" on click of which that entire jsp should get exported as a .pdf file as it is .
    1] I cant use display tag because export functionality is not provided for nested table.
    2] I cant figure out how to put an entire jsp as an input stream if i was to use itext (that is if its possible ).
    To start with it isn't the jsp but rather the output of the JSP that you want in a pdf. The solution to that is that you must provide a method that puts the output into a pdf. Normal solutions for that first start by finding an appropriate pdf library of which there are more than one.
    What are my other options ? Bottom line, what i need is to "make a .pdf file of a .jsp displayed, on a click of a button ". Besides finding an existing library you could write your own.

  • How to convert a .jsp to a .java/.class for use in pplcode

    .

    At first , thanks for your help ,armalcolm
    But I don't understand how to convert java string array to c string(char)array.I have seen the doc. , but I don't understand still.
    Belown is my code
    <code>
    JNIEXPORT void JNICALL Java_init
    (JNIEnv *env, jobject jobj, jobjectArray jfilename, jint jlength)
         jobject obj = env->NewObject(env,mid,param);
         jobjectArray obj_java = (jobjectArray)env->CallObjectMethod(obj,mid,param);
         length = jlength;
         filename = (char**) malloc(length * sizeof(char*));
         for (i=0;i<length;i++)
              jstring jstr = env->(jstring) GetObjectArray(obj_java,i);
              filename[i] = (char*) malloc(strlen(jstr)+1);
              strcpy(filename,GetStringUTFChars(jstr,0));
    </code>
    I know this is a error codes.Can you help me??
    I don't know how to use NewObject() , CallObjectMethod() and GetObjectArray() method
    Thanks

Maybe you are looking for

  • To send Payment advice note as Email to vendor

    Hi I like to know how can we send the payment advice note created after F110 run to be send as email to the vendor? your help would be appreciated a lot regards auro

  • Same date range values

    Hi Experts, I have a complex requirement for a date range functionality. Here is the detailed explanation: I have field TransactionDate field coming from an Oracle View. I have 2 parameters to be created on the same field and either of them can be se

  • Windows 8.1 x64 error 0x80070002 While System Restore

     Today, I downloaded a file while Widows Defender was updating and it did not warn me about a virus. Now when I try to open Widows Defender, it says Windows cannot find 'C:\Program Files\Windows Defender\MSASCui.exe' so I tried to restore. then when

  • Best Practice - Move from DEV to TEST

    OK guys - we OWB'ers have tried many approaches to moving OWB Objects. With the new Ver 2 I like to use only 1 Design Repository - then I create 2 Projects 1 for DEV and 1 for TEST. I also have 2 Control Centers with associated Target Schemas - 1 for

  • JMS Connector WebSphere MQ JMS Problems

    I'm having problems configuring and using Oracle's JMS Connector with IBM WebSphere MQ JMS, as explained in the following Oracle How-to: http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-connect-to-mqseries/doc/how-to-connect-to-mqse