How to run notepad from a web application

hi
can any body know,how to run notepad from a web application under tomcat

You already asked this question:
http://forum.java.sun.com/thread.jspa?threadID=5150005&messageID=9561597
Obviously running notepad on the clients PC is not possible (ignoring active x)

Similar Messages

  • How to Run scenario from the web using HTTP web page?

    Hi guys
    Please let me know How to Run scenario from the web using HTTP web page?
    Regards
    Janakiram

    Hi Janakiram,
    ODI provides web based UI for running the scenarios using Metadata Navigator (read only of ur ODI components) and Lighweight designer (u can edit the mapping here).
    Please explore how to install metadata navigator in ODI and have a look at ODI Setup document for more information.
    Thanks,
    Guru

  • Ho w to run exe from a web application

    hi
    is there any chance to run exe from a web application under tomcat.
    plz tell me

    Please make the extra effort to write out words such as "please" and "your". The extra keystrokes won't cost much in the way of time, and the enhanced clarity will be appreciated by those communicating on a forum with international readership.
    What don't you understand about the previous answers?

  • How to run background process with web application

    Hi,
    I have a web application , a servlet. I would like to have a background process that collecting data for my servlet.
    How can I achieve this? can someone point me to a tutorial or example?
    Also, would it be possible to share an object between the background process and myservlet?
    Thanks,

    Thanks for the idea.
    I had the background process running. :)
    But I'm still do not understand this part to share an object such as Java Map (<id,myobject>), what do you mean by "task a property of my ServletContextListener" ?
    BalusC wrote:
    If you make the task a property of your ServletContextListener implementation and put the implementation in the application scope, then you can access it from any servlet.Do you mind explain to me a bit more I'm still fairly new with this or maybe if you know an example.
    Here's my code snippet so far. How can I share myList to MyServlet?
    public class MonitorTimer extends TimerTask
           private Map<String, Channel> myList;
         @Override
         public void run()
              System.out.println("Monitor Timer times up");
              //Clear the map before fill with the new data
              if(myList!= null)
                   myList.clear();
              loadConfig();
            private void getData()
               //fill myList with data
    public class MyContextListener implements ServletContextListener
         @Override
         public void contextDestroyed(ServletContextEvent arg0)
              // TODO Auto-generated method stub
         @Override
         public void contextInitialized(ServletContextEvent arg0)
              System.out.println("Context Initialized");
              Timer timer = new Timer();
              //Run MonitorTimer every 2 minutes
              timer.scheduleAtFixedRate(new MonitorTimer(), 10*1000,2*60*1000);
    public class MyServlet extends HttpServlet implements Servlet
         @Override
         public void destroy()
              // TODO Auto-generated method stub
              super.destroy();
         @Override
         protected void doGet(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException
    }Thank you so much for your help,
    Edited by: geek.shrek on Nov 4, 2009 1:50 PM

  • How to Run a JasperReport in  web application

    hi ,
    I am Deepan,
    Proffesional:Programmer,
    I Used the Ireport for jasper Report,Iam Running in webApplication(JSP,Tomcat as Server),
    I used the line
    JasperViewer.viewReport(jasperPrint,false);
    it work well in server system,that is where the Apache Tomcat is installed,It displayed the Print format for Taking Print,
    Well,when i run the application in client System,PrintFormat get Displayed in Server System(Tomcat installed),
    But i need the PrintFormat to display in Client System ,Where they Work...
    Help Me,
    Thanks iN advance....
    I attached the Code here for reference
    (Line in Bold)
    package jasper.testpkg;
    //import static chequebook.db.Conf.getAppHome;
    import java.util.HashMap;
    import java.util.Vector;
    //import java.util.ArrayList;
    //import model.Load;
    import model.BillPrePrintModel;
    import net.sf.jasperreports.engine.JRDataSource;
    import net.sf.jasperreports.engine.JREmptyDataSource;
    import net.sf.jasperreports.engine.JRException;
    import net.sf.jasperreports.engine.JRField;
    import net.sf.jasperreports.engine.JasperCompileManager;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.design.JasperDesign;
    import net.sf.jasperreports.engine.xml.JRXmlLoader;
    import net.sf.jasperreports.view.JasperViewer;
    //import chequebook.vo.ChequeBookVO;
    public class BillPrePrint {
    public static JasperTestCustomDataSource getDefaultCustomDS(String billno){
         //String billno="";
         JasperTestCustomDataSource customDataSource = new JasperTestCustomDataSource();
         BillPrePrintModel bpm=new BillPrePrintModel();
    //String billno="";
    Vector billdata=bpm.Collectbilldata(billno);
    String mybillno="",mybilldate="",mybillcustomer="",mybilltoaddress="",mybilltotal="0" ;
    System.out.println("billData"+billdata);
    if(billdata.size()!=0)
    {     mybilltotal=billdata.get(billdata.size()-5).toString();
         mybillno=billdata.get(billdata.size()-4).toString();
         mybilldate=billdata.get(billdata.size()-3).toString();
         mybillcustomer=billdata.get(billdata.size()-2).toString();
         mybilltoaddress=billdata.get(billdata.size()-1).toString();
         System.out.println("MYBILLNO:"+mybillno);
         System.out.println("MYBILLDATE:"+mybilldate);
         JasperTestDataVO dataDS = new JasperTestDataVO();
         dataDS.setBillNo(mybillno);
         dataDS.setBillDate(mybilldate);
         dataDS.setBillFrom(mybillcustomer);
         dataDS.setBillTo(mybilltoaddress);
         dataDS.setTotamount(mybilltotal);
         JasperTestLineDataVO line = null;
         dataDS.setLineData(new Vector<JasperTestLineDataVO>());
    //line = new JasperTestLineDataVO();
    System.out.println("Vector Bill Data"+billdata);
         private String fdate="";
         private String regno="";
         private String gcno="";
         private String ffrom="";
         private String fto="";
         private String docref="";
         private String pkgs="";
         private String weight="";
         private String trucktype="";
         private String amount="0";
         private String totalamt="0";
         for(int i=0;i<billdata.size()-5;i+=10)
              line = new JasperTestLineDataVO();
              line.setFdate(billdata.get(i).toString());
              line.setRegno(billdata.get(i+1).toString());
              line.setGcno(billdata.get(i+2).toString());
              line.setFfrom(billdata.get(i+3).toString());
              line.setFto(billdata.get(i+4).toString());
              line.setDocref(billdata.get(i+5).toString());
              line.setPkgs(billdata.get(i+6).toString());
              line.setWeight(billdata.get(i+7).toString());
              line.setTrucktype(billdata.get(i+8).toString());
              line.setAmount(billdata.get(i+9).toString());
              dataDS.getLineData().add(line);
                   System.out.println("billdata.get(i).toString()"+billdata.get(i).toString());
                   System.out.println("billdata.get(i+1).toString()"+billdata.get(i+1).toString());
                   System.out.println("Checking Line Loop"+ (i+1));
         line.setItemName("Item Type 1");
         line.setLineNum("1");
         line.setPrice("1.09");
         line.setQty("100");
         dataDS.getLineData().add(line);
         line = new JasperTestLineDataVO();
         line.setItemName("Item Type 2");
         line.setLineNum("2");
         line.setPrice("2.09");
         line.setQty("50");
         dataDS.getLineData().add(line);
         line = new JasperTestLineDataVO();
         line.setItemName("Item Type 3");
         line.setLineNum("3");
         line.setPrice("3.19");
         line.setQty("25");
         dataDS.getLineData().add(line);*/
    customDataSource.setDataDS(dataDS);
    return customDataSource;
         public void MyImp(String billno){
              JasperDesign jasperDesign;
              try {
                   //System.out.println("billdata"+billdata);
                   jasperDesign = JRXmlLoader.load("C:\\Program Files\\Apache Software Foundation\\Tomcat 5.0\\webapps\\Cargo\\WEB-INF\\RMPrePrint.jrxml");
                   JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
                   HashMap param = new HashMap();
                   JasperPrint jasperPrint;
                   jasperPrint = JasperFillManager.fillReport(jasperReport, param,getDefaultCustomDS(billno));
                   JasperExportManager.exportReportToHtmlFile(jasperPrint,"D:\\TEstJagan1.html");
                   //JasperExportManager.exportReportToHtmlFile(jasperPrint,"D:\\TEst.html");
                   System.out.println("your file updated to HTML file ");
                   JasperViewer.viewReport(jasperPrint,false);_
              } catch (JRException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    class JasperTestDataVO{
         private String billNo="";
         private String billDate="";
         private String billFrom="";
         private String billTo="";
         private String totalamt="0";
         Vector<JasperTestLineDataVO> lineData=new Vector<JasperTestLineDataVO>();
         public Vector<JasperTestLineDataVO> getLineData(){
              return lineData;
         public void setLineData(Vector<JasperTestLineDataVO> pData){
              lineData=pData;
         public String getBillDate() {
              return billDate;
         public void setBillDate(String billDate) {
              this.billDate = billDate;
         public String getBillNo() {
              return billNo;
         public void setBillNo(String billNo) {
              this.billNo = billNo;
         public String getBillFrom() {
              return billFrom;
         public void setBillFrom(String billFrom) {
              this.billFrom = billFrom;
         public String getBillTo() {
              return billTo;
         public void setBillTo(String billTo) {
              this.billTo = billTo;
    public String getTotamount() {
              return totalamt;
         public void setTotamount(String totalamt) {
              this.totalamt = totalamt;
    class JasperTestLineDataVO{
         private String lineNum="";
         private String itemName="";
         private String qty="0";
         private String price="0";
         private String fdate="";
         private String regno="";
         private String gcno="";
         private String ffrom="";
         private String fto="";
         private String docref="";
         private String pkgs="";
         private String weight="";
         private String trucktype="";
         private String amount="0";
         //regno="",gcno="",ffrom="",fto="",docref="",pkgs="",weight="",trucktype="",amount="",totalamt="0";
         public String getFdate() {
              return fdate;
         public void setFdate(String fdate) {
              this.fdate = fdate;
         public String getRegno() {
              return regno;
         public void setRegno(String regno) {
              this.regno = regno;
         public String getGcno() {
              return gcno;
         public void setGcno(String gcno) {
              this.gcno = gcno;
    public String getFfrom() {
              return ffrom;
         public void setFfrom(String ffrom) {
              this.ffrom = ffrom;
    public String getFto() {
              return fto;
         public void setFto(String fto) {
              this.fto = fto;
    public String getDocref() {
              return docref;
         public void setDocref(String docref) {
              this.docref = docref;
    public String getPkgs() {
              return pkgs;
         public void setPkgs(String pkgs) {
              this.pkgs = pkgs;
    public String getWeight() {
              return weight;
         public void setWeight(String weight) {
              this.weight = weight;
    public String getTrucktype() {
              return trucktype;
         public void setTrucktype(String trucktype) {
              this.trucktype = trucktype;
    public String getAmount() {
              return amount;
         public void setAmount(String amount) {
              this.amount = amount;
    class JasperTestCustomDataSource implements JRDataSource{
         int size = 0;
         int index=-1;
         private JasperTestDataVO dataDS=null;
         public void setDataDS(JasperTestDataVO pDataDS){
              dataDS=pDataDS;
              size=pDataDS.getLineData().size();
              System.out.println("LineData Size"+String.valueOf(size));
         public Object getFieldValue(JRField f) throws JRException {
              // TODO Auto-generated method stub
              String trucktype="";
              Object ret=null;
              if(f.getName().equals("billno")){
                                  ret=dataDS.getBillNo();
              if(f.getName().equals("billdate")){
                                  ret=dataDS.getBillDate();
              if(f.getName().equals("toaddress")){
                                  ret=dataDS.getBillFrom();
              if(f.getName().equals("bytoaddress")){
                                  ret=dataDS.getBillTo();
              if(f.getName().equals("fdate")){
                             ret=dataDS.getLineData().get(index).getFdate();
    if(f.getName().equals("regno")){
                             ret=dataDS.getLineData().get(index).getRegno();
    if(f.getName().equals("gcno")){
                             ret=dataDS.getLineData().get(index).getGcno();
    if(f.getName().equals("from")){
                                       ret=dataDS.getLineData().get(index).getFfrom();
    if(f.getName().equals("to")){
                             ret=dataDS.getLineData().get(index).getFto();
    if(f.getName().equals("docref")){
                             ret=dataDS.getLineData().get(index).getDocref();
    System.out.println("Index inside"+String.valueOf(index));
    if(f.getName().equals("pkgs")){
                             ret=dataDS.getLineData().get(index).getPkgs();
    if(f.getName().equals("weight")){
                             ret=dataDS.getLineData().get(index).getWeight();
    if(f.getName().equals("trucktype")){
                             ret=dataDS.getLineData().get(index).getTrucktype();
              trucktype=String.valueOf(dataDS.getLineData().get(index).getTrucktype());
              System.out.println("TRuck Type:::::"+index+":::"+trucktype);
    if(f.getName().equals("amount")){
                             ret=dataDS.getLineData().get(index).getAmount();
    if(f.getName().equals("total")){
                             ret=dataDS.getTotamount();
              return ret;
         public boolean next() throws JRException {
              // TODO Auto-generated method stub
              index++;
              System.out.println("Index"+String.valueOf(index));
              boolean ret=true;
              if(index>=size){
                   ret =false;
              return ret;
    }

    Forms 6i and above yes it is possible.
    Forms 6i can be deployed both web and client/server, but 9i and above is only for web deployment.
    If you want to deploy for testing purposes you can run the forms from the forms builder using OC4J Instance, but for production deployment you need to have OAS, Oracle Application Server.
    Tony

  • How to update survey in Complaint from developed web application

    Hello,
    We've setup complaint management including the usage of surveys within a complaint document.
    Complaint documents are accessed using the SAP GUI but will also be maintained using a newly developed application in the Enterprise Portal.
    To access the survey using the external web application I need to know how to call the URL for the survey within a complaint transaction. I know how to setup the survey parameter xml but that allows me to call the survey irrespective of a transaction document. How do I call a URL that allows me to bring up a survey stored within a complaint document (is there for example a parameter I can pass to the URL indicating the GUID of the document the survey is in?
    Thanks,
    Patrick

    I have used local ejbs in other application servers, WebSphere and JBoss, from discrete web applications running in the same VM as the ejbs. The requirement for local interfaces is that the ejb and client be running in the same VM. Maybe Weblogic is different in that respect, but I doubt it. Why marshal data through a Remote interface when both components are in the same VM?
    I have gone through the Weblogic documentation and have not been able to find an answer to my question, which is why I posted the original question the way I did. Weblogic does not put the ejb in the jndi namespace, but the ejb can be acquired through jndi. In the Weblogic console deployments view I can see the bean deployed as CustomerBean, but there is no clue as to its jndi name. This forum is peppered with different schemes for accessing an ejb, but none of those has worked for me, hence the different names I tried.

  • How to call a report from a web application

    Hi,
    I have a web server in wich is installed Reports 6i. My question is how can I call reports 6i to generate a pdf using a .rep file from my web application (built with java)?

    Hi,
    The below link will be very useful for one who need idea on calling Oracle Report from Java Application,
    http://www.oracle.com/technology/products/reports/htdocs/getstart/examples/reportswebservice/index.html
    Thanks & Rgds,
    M T

  • Is it possible to access Pages from an web application running in Safari in i-Pad?

    Is it possible to access Pages application from an web application running on safari browser in iPad ?

    Since you control the application AND the plugin - you can define ANY method of communication you want.  Shared files, shared memory, IPC, named pipes, etc.

  • How to create a file under web application root from java program

    how to create a file under web application root from java program like an action class?

    like an action class?Huh? What exactly is your requirement?
    Creating a file is usually done with java.io API. Read the java.io tutorials how to play with files.

  • Capture an image using the web camera from a web application

    Hi All,
    Could anyone please share the steps what have to be followed for capture an image using the web camera from a web application.
    I have a similar requirement like this,
    1) Detect the Webcam on the users machine from the web application.(To be more clear when the user clicks on 'Add Photo' tool from the web application)
    2) When the user confirms to save, save the Image in users machine at some temporary location with some unique file name.
    3) Upload the Image to the server from the temporary location.
    Please share the details like, what can be used and how it can be used etc...
    Thanks,
    Suman

    1) Detect the Webcam on the users machine from the web application.(To be more clear when the user clicks on 'Add Photo' tool from the web application)There's not really any good way to do this with JMF. You'd have to somehow create a JMF web-start application that will install the native JMF binaries, and then kick off the capture device scanning code from the application, and then scan through the list of devices found to get the MediaLocator of the web cam.
    2) When the user confirms to save, save the Image in users machine at some temporary location with some unique file name.You'd probably be displaying a "preview" window and then you'd just want to capture the image. There are a handful of ways you could capture the image, but it really depends on your situation.
    3) Upload the Image to the server from the temporary location.You can find out how to do this on google.
    All things told, this application is probably more suited to be a FMJ (Freedom for Media in Java) application than a JMF application. JMF relies on native code to capture from the web cams, whereas FMJ does not.
    Alternately, you might want to look into Adobe Flex for this particular application.

  • How to run ear file in java application server

    i want how to run .ear file in java application server
    1. i m created ear file
    2. i m created jar file (bean,home,remote)
    3.i m created war file(in the form of jsp)
    but till now i couldnt run ear file
    how to run
    please hel me

    You must create :
    1.Jar file
    2.War file
    And then put them into an ear file
    Exemple : myapp.ear contains
    myappEJB.jar
    myappWEB.war
    META-INF/application.xml
    and application.xml looks like this :
    <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee
                            http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
        <display-name>myapp</display-name>
        <description>Demo application</description>
        <module>
            <ejb>myappEJB.jar</ejb>
        </module>
        <module>
          <web>
             <web-uri>myappWAR.war</web-uri>
             <context-root>/myapp</context-root>
          </web>
        </module>
    </application>Good luck

  • Issue with member move, change or delete from Planning web application

    Hi
    We need to make some basic editing (move, change or delete) of level 0 members of the cost center dimension from Planning web application instead of from essbase database outline. But everytime, we tried from the web Admininstration/Dimension drill down and did a Cut or Delete of a base member, the screen either becomes blank or hangs. And we would have to stop and restart the Planning web application server to bring it back.
    Is this a bug or is there something we missed? We are using Planning 4.0.1 and essbase 7.1.1. Any advice on workaround is greatly appreciated. Thanks.

    Hi,
    Have you tried running the planning server in the foreground from the start menu and check the output to see if there are any issues.
    Also it might be worth trying to increase the java heap size, maybe you have a complex hierarchy and this is causing the heap size to max out.
    Have you tried using another method to make changes to the hierarchy such as HAL ?
    Cheers
    John

  • How to open notepad from sql prompt?

    Hi to all
    can anyone please let me know how to open notepad from sql prompt.
    I tried ed command but message appears " Cannot create save file "afiedt.buf"
    thanks in advance

    user13480742 wrote:
    can anyone please let me know how to open notepad from sql prompt.
    I tried ed command but message appears " Cannot create save file "afiedt.buf"Create a SQL*Plus shortcut on your desktop.
    Create a SQL folder on your desktop (in your documents folder, or whatever desktop location you have read and write access to).
    Change the +Working Directory+ of the SQL*Plus shortcut to this SQL folder you have created (via editing the properties of the shortcut).
    Launch SQL*Plus via that shortcut.
    It will now run from that SQL directory. This means that it will have read and write access to the current directory (allowing it to create the +afiedt.buf+ file for example). It also means that you can save your SQL scripts in this directory and execute these from the SQL*Plus command line, without having to specify a path.

  • How to run report from form using run_object_report

    I AM USNING FORMS9I/REPORTS 9I , HOW TO RUN REPORT FROM FROM USING RUN_REPORT_OBJECT AND HOW
    TO PASS PARAMETER AS WE DID IN RUN_REPORTS PLEASE HELP ME

    here an example !
    I hope this example you can use it
    PROCEDURE pr_reporte IS
    BEGIN
    DECLARE
         repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status Varchar2(20);
    d1 DATE;
    d2 DATE;
    BEGIN
         d1 := :GLOBAL.DIA_INI;
         d2 := :GLOBAL.DIA_FIN;
         repid := find_report_object('rep_lab02');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'p_fec_uno='||to_char((add_months(last_day(d1),-1) +1),'DD/MM/YYYY')||' '||
         'p_fec_dos='||to_char(d2,'DD/MM/YYYY'));
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
         v_rep := RUN_REPORT_OBJECT(repid);
         rep_status := report_object_status(v_rep);
         WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
              rep_status := report_object_status(v_rep);
         END LOOP;
         IF rep_status = 'FINISHED' then
              WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
         ELSE
              ventana('E','error reporte no encontrado','S');
         END IF;
    END;
    END;
    The 'rep_lab02' is the name of the report that you give in the node reports
    p_fec_uno and p_fec_dos they are the parameters in the report
    repserver is the name of server created with rwserver
    Greetings

  • How can run one JSF 1.1 application in Glassfish v2?

    Hello
    How can run one JSF 1.1 application in Glassfish v2?
    I need deploy one JSF 1.1 application in Glassfish v2. It's possible?
    Paulo

    in Glassfish v2 I have the messege error:
    java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
         at com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:250)
         at com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:106)
    [#|2007-08-14T10:49:16.438-0300|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=21;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=416049de-0564-4eb6-8d07-ac8f65f5f7fa;|ApplicationDispatcher[/lilya2] PWC1225: Allocate exception for servlet FacesServlet
    java.lang.RuntimeException: WEB5003: Exception in handleAfterEvent.
         at com.sun.web.server.J2EEInstanceListener.handleAfterEvent(J2EEInstanceListener.java:320)
    but in Tomcat 5.5 it work without problems.

Maybe you are looking for

  • How do I transfer music from one icloud account to another?

    I need to transfer my music from one icloud account to another using one computer.  Is this possible

  • Problems with fade out

    i'm trying to do a fade out at the end of rather long audio file, about 20 minutes, and the fade out function will not work. it works at the beginning of the track, i can click, create the little ball-points and drag them up and down as i please, but

  • File Sharing with WRTU54G-TM?

    I have the T-Mobile WRTU54G-TM wireless router. I have my desktop wired directly to it, and my laptop connects to it wirelessly. Both are able to browse the web just fine, however, neither computer can see each other. I have file and printer sharping

  • 10.5.3 update stuck

    I did the software update-OS X 10.5.3. After it was downloaded I clicked to restart and it started the configuration. But the installation stuck. So I turned the computer off and started to install again, but it stuck at the same point. On the other

  • Argos vouchers for your old phone

    Another alternative for your old phone which may appeal to some though it remains to be seen just how good or bad their offers are for recycing your phone. I think it will be more for the drawerful of old mobiles we have forgotten about rather than f