Problem in Passing JTree object from Servlet pgm to browser

Dear all:
Can anybody help to resolve the problem - pass the JTree obejct from servlet (Tomcat) to IE 6.0. The JTree oject alway shows invalid charcter in IE. Following is my coding.
import java.io.*;
import java.awt.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.swing.*;
import java.net.URL;
import java.sql.*;
import java.lang.*;
import java.util.*;
import javax.swing.tree.*;
//* Testing1 give it null
public class SimpleServer extends HttpServlet
DefaultMutableTreeNode top;
DefaultMutableTreeNode EX01;
DefaultMutableTreeNode EX02;
DefaultMutableTreeNode QB01;
DefaultMutableTreeNode QB02;
DefaultMutableTreeNode N2BS;
DefaultMutableTreeNode N2TS;
//StringTokenizer st2, st1;
String query;
Connection con ;
Statement statm;
ResultSet res, backupRes;
//RowSet res, backupRes;
TreeSet treeset ;
String [] tempArray;
//ServletContext sc ;
ObjectOutputStream out ;
DefaultMutableTreeNode temp_node;
     public void doGet(HttpServletRequest req, HttpServletResponse resp)
     throws ServletException, IOException
resp.setContentType("text/html");
// resp.setContentType("application/octet-stream");
System.out.println("create main node") ;
          out = new ObjectOutputStream(resp.getOutputStream());
          out.writeObject(this.set_NodeMain()); //no DB access,
     public void doPost(HttpServletRequest req, HttpServletResponse resp)
     throws ServletException, IOException
     try
     System.out.println("doPost " );
     doGet(req,resp);
          finally
     public DefaultMutableTreeNode set_NodeMain()
top = new DefaultMutableTreeNode("Tandem");
EX01 = new DefaultMutableTreeNode("EX01");
EX02 = new DefaultMutableTreeNode("EX02");
QB01 = new DefaultMutableTreeNode("QB01");
QB02 = new DefaultMutableTreeNode("QB02");
N2BS = new DefaultMutableTreeNode("N2BS");
N2TS = new DefaultMutableTreeNode("N2TS");
top.add(EX01);
top.add(EX02);
top.add(QB01);
top.add(QB02);
top.add(N2BS);
top.add(N2TS);
return top;
}

JMO - I hate seeing things like this in code:
Just use whitespace to separate the methods.
You can't just send a JTree to a browser. A browser has no idea how to render a Java object.
Put that JTree inside an applet and make it part of a JSP. That'll work.
MOD

Similar Messages

  • Problem when passing an object from Illustrator to Photoshop inCS5 pack

    Hello, since I have a new system I have this problem in Illustrator. When I try to pass and Icon for example, from illustrator to photoshop my Illustrator crashes. Even whe I try to save my work somethimes Illustrator crashes. I didn't had this problem with my old computer usineg the same pack CS5 the passing of a file from illutrator to photoshop took about 3 seconds. Please help me, my work is becoming frustrating beacause of this.
    Here are the System details:
    Photoshop
    Adobe Photoshop Version: 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch]) x32
    Operating System: Windows 7 64-bit
    Version: 6.1 Service Pack 1
    System architecture: Intel CPU Family:6, Model:10, Stepping:9 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2
    Physical processor count: 8
    Processor speed: 3392 MHz
    Built-in memory: 16332 MB
    Free memory: 8674 MB
    Memory available to Photoshop: 3255 MB
    Memory used by Photoshop: 78 %
    Image tile size: 1028K
    Image cache levels: 5
    OpenGL Drawing: Disabled.
    OpenGL Drawing Mode: Basic
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: False.
    OpenGL Crash File: Not Detected.
    OpenGL Allow Old GPUs: Not Detected.
    Video Card Vendor: NVIDIA Corporation
    Video Card Renderer: GeForce GTX 650/PCIe/SSE2
    Display: 2
    Display Bounds:=  top: 0, left: 1920, bottom: 1200, right: 3840
    Display: 1
    Display Bounds:=  top: 0, left: 0, bottom: 1200, right: 1920
    Video Card Number: 1
    Video Card: NVIDIA GeForce GTX 650
    Driver Version: 9.18.13.1106
    Driver Date: 20130118000000.000000-000
    Video Card Driver: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
    Video Mode: 1920 x 1200 x 4294967296 colors
    Video Card Caption: NVIDIA GeForce GTX 650
    Video Card Memory: 1024 MB
    Serial number: 92278816315259434402
    Application folder: C:\Program Files (x86)\Adobe\Adobe Photoshop CS5\
    Temporary file path: C:\Users\Mircea\AppData\Local\Temp\
    Photoshop scratch has async I/O enabled
    Scratch volume(s):
      D:\, 150.0G, 149.7G free
      C:\, 238.5G, 89.0G free
    Primary Plug-ins folder: C:\Program Files (x86)\Adobe\Adobe Photoshop CS5\Plug-ins\
    Additional Plug-ins folder: not set
    Installed components:
       A3DLIBS.dll   A3DLIB Dynamic Link Library   9.2.0.112  
       ACE.dll   ACE 2010/10/04-23:36:11   64.441628   64.441628
       adbeape.dll   Adobe APE 2010/02/23-12:40:58   61.421986   61.421986
       AdobeLinguistic.dll   Adobe Linguisitc Library   5.0.0  
       AdobeOwl.dll   Adobe Owl 2010/06/03-13:43:23   3.0.93   61.433187
       AdobeOwlCanvas.dll   Adobe Owl Canvas   3.0.68   61.2954
       AdobePDFL.dll   PDFL 2010/12/13-23:37:10   64.341419   64.341419
       AdobePIP.dll   Adobe Product Improvement Program   5.0.0.2021  
       AdobeXMP.dll   Adobe XMP Core   5.0   61.134777
       AdobeXMPFiles.dll   Adobe XMP Files   5.0   61.134777
       AdobeXMPScript.dll   Adobe XMP Script   5.0   61.134777
       adobe_caps.dll   Adobe CAPS   3,0,116,0  
       adobe_OOBE_Launcher.dll   Adobe OOBE Launcher   1.0.0.64 (BuildVersion: 1.0; BuildDate: Mon Jan 26 2010 21:49:00)   1.000000
       AFlame.dll   AFlame 2010/02/23-17:27:33   61.421976   61.421976
       AFlamingo.dll   AFlamingo 2010/02/23-17:27:33   61.421978   61.421978
       AGM.dll   AGM 2010/10/04-23:36:11   64.441628   64.441628
       ahclient.dll    AdobeHelp Dynamic Link Library   1,5,0,30  
       aif_core.dll   AIF   2.0   53.422628
       aif_ogl.dll   AIF   2.0   53.422628
       amtlib.dll   AMTLib   3.0.0.64 (BuildVersion: 3.0; BuildDate:  Mon Jan 26 2010 21:49:00)   1.000000
       amtservices.dll   AMTServices   3.0.0.64 (BuildVersion: 3.0; BuildDate:  Mon Jan 26 2010 21:49:00)   1.000000
       ARE.dll   ARE 2010/10/04-23:36:11   64.441628   64.441628
       asneu.dll    AsnEndUser Dynamic Link Library   1, 7, 0, 1  
       AXE8SharedExpat.dll   AXE8SharedExpat 2010/02/23-17:27:33   61.421978   61.421978
       AXEDOMCore.dll   AXEDOMCore 2010/02/23-17:27:33   61.421978   61.421978
       Bib.dll   BIB 2010/10/04-23:36:11   64.441628   64.441628
       BIBUtils.dll   BIBUtils 2010/10/04-23:36:11   64.441628   64.441628
       boost_threads.dll   DVA Product   5.0.0  
       cg.dll   NVIDIA Cg Runtime   2.0.0015  
       cgGL.dll   NVIDIA Cg Runtime   2.0.0015  
       CoolType.dll   CoolType 2010/10/04-23:36:11   64.441628   64.441628
       data_flow.dll   AIF   2.0   53.422628
       dvaadameve.dll   DVA Product   5.0.0  
       dvacore.dll   DVA Product   5.0.0  
       dvaui.dll   DVA Product   5.0.0  
       ExtendScript.dll   ExtendScript 2010/10/19-10:22:12   61.445301   61.445301
       FileInfo.dll   Adobe XMP FileInfo   5.0   61.134777
       icucnv36.dll   International Components for Unicode 2009/06/17-13:21:03    Build gtlib_main.9896  
       icudt36.dll   International Components for Unicode 2009/06/17-13:21:03    Build gtlib_main.9896  
       image_flow.dll   AIF   2.0   53.422628
       image_runtime.dll   AIF   2.0   53.422628
       JP2KLib.dll   JP2KLib 2010/12/13-23:37:10   64.181312   64.181312
       libeay32.dll   The OpenSSL Toolkit   0.9.8g  
       libifcoremd.dll   Intel(r) Visual Fortran Compiler   10.0 (Update A)  
       libmmd.dll   Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler   10.0  
       LogSession.dll   LogSession   2, 0, 1, 11  
       MPS.dll   MPS 2010/12/13-23:37:10   64.450375   64.450375
       msvcm80.dll   Microsoft® Visual Studio® 2005   8.00.50727.4940  
       msvcm90.dll   Microsoft® Visual Studio® 2008   9.00.30729.6161  
       msvcp71.dll   Microsoft® Visual Studio .NET   7.10.3077.0  
       msvcp80.dll   Microsoft® Visual Studio® 2005   8.00.50727.4940  
       msvcp90.dll   Microsoft® Visual Studio® 2008   9.00.30729.6161  
       msvcr71.dll   Microsoft® Visual Studio .NET   7.10.3052.4  
       msvcr80.dll   Microsoft® Visual Studio® 2005   8.00.50727.4940  
       msvcr90.dll   Microsoft® Visual Studio® 2008   9.00.30729.6161  
       pdfsettings.dll   Adobe PDFSettings   1.04  
       Photoshop.dll   Adobe Photoshop CS5   CS5  
       Plugin.dll   Adobe Photoshop CS5   CS5  
       PlugPlug.dll   Adobe(R) CSXS PlugPlug Standard Dll (32 bit)   2.0.0.746  
       PSArt.dll   Adobe Photoshop CS5   CS5  
       PSViews.dll   Adobe Photoshop CS5   CS5  
       SCCore.dll   ScCore 2010/10/19-10:22:12   61.445301   61.445301
       shfolder.dll   Microsoft(R) Windows (R) 2000 Operating System   5.50.4027.300  
       ssleay32.dll   The OpenSSL Toolkit   0.9.8g  
       tbb.dll   Threading Building Blocks   2, 1, 2009, 0201  
       TfFontMgr.dll   FontMgr   9.3.0.113  
       TfKernel.dll   Kernel   9.3.0.113  
       TFKGEOM.dll   Kernel Geom   9.3.0.113  
       TFUGEOM.dll   Adobe, UGeom©   9.3.0.113  
       updaternotifications.dll   Adobe Updater Notifications Library   1.0.0.68 (BuildVersion: 1.0; BuildDate: BUILDDATETIME)   1.0.0.68
       WRServices.dll   WRServices Thursday January 21 2010 12:13:3   Build 0.11423   0.11423
       wu3d.dll   U3D Writer   9.3.0.113  
    Installed plug-ins:
       3D Studio 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Accented Edges 12.0
       ADM 3.11x01
       Angled Strokes 12.0
       Average 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Bas Relief 12.0
       BMP 12.0.2
       Camera Raw 6.7
       Chalk & Charcoal 12.0
       Charcoal 12.0
       Chrome 12.0
       Cineon 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Clouds 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Collada 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Color Halftone 12.0.2
       Colored Pencil 12.0
       CompuServe GIF 12.0.2
       Conté Crayon 12.0
       Craquelure 12.0
       Crop and Straighten Photos 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Crop and Straighten Photos Filter 12.0.2
       Crosshatch 12.0
       Crystallize 12.0.2
       Cutout 12.0
       Dark Strokes 12.0
       De-Interlace 12.0.2
       Dicom 12.0
       Difference Clouds 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Diffuse Glow 12.0
       Displace 12.0.2
       Dry Brush 12.0
       Eazel Acquire 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Embed Watermark 4.0
       Entropy 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Extrude 12.0.2
       FastCore Routines 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Fibers 12.0.2
       Film Grain 12.0
       Filter Gallery 12.0
       Fresco 12.0
       Glass 12.0
       Glowing Edges 12.0
       Google Earth 4 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Grain 12.0
       Graphic Pen 12.0
       Halftone Pattern 12.0
       HDRMergeUI 12.0
       IFF Format 12.0.2
       Ink Outlines 12.0
       JPEG 2000 2.0
       Kurtosis 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Lens Blur 12.0
       Lens Correction 12.0.2
       Lens Flare 12.0.2
       Lighting Effects 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Liquify 12.0.1
       Matlab Operation 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Maximum 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Mean 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Measurement Core 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Median 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Mezzotint 12.0.2
       Minimum 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       MMXCore Routines 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Mosaic Tiles 12.0
       Multiprocessor Support 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Neon Glow 12.0
       Note Paper 12.0
       NTSC Colors 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Ocean Ripple 12.0
       OpenEXR 12.0.2
       Paint Daubs 12.0
       Palette Knife 12.0
       Patchwork 12.0
       Paths to Illustrator 12.0.2
       PCX 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Photocopy 12.0
       Photoshop 3D Engine 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Picture Package Filter 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Pinch 12.0.2
       Pixar 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Plaster 12.0
       Plastic Wrap 12.0
       PNG 12.0.2
       Pointillize 12.0.2
       Polar Coordinates 12.0.2
       Portable Bit Map 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Poster Edges 12.0
       Radial Blur 12.0.2
       Radiance 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Range 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Read Watermark 4.0
       Reticulation 12.0
       Ripple 12.0.2
       Rough Pastels 12.0
       Save for Web & Devices 12.0
       ScriptingSupport 12.0.4
       Send Video Preview to Device 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Shear 12.0.2
       Skewness 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Smart Blur 12.0.2
       Smudge Stick 12.0
       Solarize 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Spatter 12.0
       Spherize 12.0.2
       Sponge 12.0
       Sprayed Strokes 12.0
       Stained Glass 12.0
       Stamp 12.0
       Standard Deviation 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Sumi-e 12.0
       Summation 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Targa 12.0.2
       Texturizer 12.0
       Tiles 12.0.2
       Torn Edges 12.0
       Twirl 12.0.2
       U3D 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Underpainting 12.0
       Vanishing Point 12.0
       Variance 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Variations 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Video Preview 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Water Paper 12.0
       Watercolor 12.0
       Wave 12.0.2
       Wavefront|OBJ 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       WIA Support 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       Wind 12.0.2
       Wireless Bitmap 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch])
       ZigZag 12.0.2
      Plug-ins that failed to load: NONE
    Flash:
       Flash
       Mini Bridge
       Access CS Live
       CS News and Resources
       Flash
       Kuler
       CS Review
    Installed TWAIN devices: NONE
    Illustrator:
    Components:
    ACE 2010/06/28-18:09:25 61.435133 61.435133
    Adobe APE 2010/02/23-12:40:58 61.421986 61.421986
    Adobe Linguisitc Library 5.0.0
    Adobe Owl 2010/03/08-15:17:17 3.0.89 61.423383
    Adobe Owl Canvas 3.0.68 61.2954
    PDFL 2010/10/18-23:35:06 64.341419 64.341419
    Adobe Product Improvement Program 5.0.0.2021
    AdobePSL 64.699054_12.664233 64.699054_12.664233
    Adobe XMP Core 5.0 61.134777
    Adobe XMP Files 5.0 61.134777
    Adobe XMP Script 5.0 61.134777
    Adobe CAPS 3,0,116,0
    Adobe OOBE Launcher 1.0.0.64 (BuildVersion: 1.0; BuildDate: Mon Jan 26 2010 21:49:00) 1.000000
    AFL 1.0
    AFlame 2010/10/04-23:36:11 64.443603 64.443603
    AFlamingo 2010/10/04-23:36:11 64.436825 64.436825
    AGM 2010/06/28-18:09:25 61.435133 61.435133
    AdobeHelp Dynamic Link Library 1,5,0,30
    AIPort 1.0 23.68434
    Adobe EPIC 3.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
    AMTLib 3.0.0.64 (BuildVersion: 3.0; BuildDate:  Mon Jan 26 2010 21:49:00) 1.000000
    AMTServices 3.0.0.64 (BuildVersion: 3.0; BuildDate:  Mon Jan 26 2010 21:49:00) 1.000000
    ARE 2010/06/28-18:09:25 61.435133 61.435133
    Adobe Illustrator 1.0
    AsnEndUser Dynamic Link Library 1, 7, 0, 1
    Unknown Name
    AXE8SharedExpat 2010/02/23-17:27:33 61.421978 61.421978
    AXEDOMCore 2010/02/23-17:27:33 61.421978 61.421978
    AXSLE 2010/02/23-17:27:33 61.421978 61.421978
    BIB 2010/06/28-18:09:25 61.435133 61.435133
    BIBUtils 2010/06/28-18:09:25 61.435133 61.435133
    DVA Product 5.0.0
    DVA Product 5.0.0
    DVA Product 5.0.0
    DVA Product 5.0.0
    DVA Product 5.0.0
    DVA Product 5.0.0
    DVA Product 5.0.0
    CoolType 2010/06/28-18:09:25 61.435133 61.435133
    DVA Product 5.0.0
    DVA Product 5.0.0
    DVA Product 5.0.0
    DVA Product 5.0.0
    ExtendScript 2010/03/05-08:21:15 61.423205 61.423205
    Adobe XMP FileInfo 5.0 61.134777
    FilterPort 1.1 61.435133
    Microsoft® Windows® Operating System 6.1.7601.18120
    International Components for Unicode 2009/12/05-11:25:03  Build gtlib_main.11277
    International Components for Unicode 3, 4, 0, 0
    International Components for Unicode 2009/12/05-11:25:03  Build gtlib_main.11277
    International Components for Unicode 2009/12/05-11:25:03  Build gtlib_main.11277
    International Components for Unicode 3, 4, 0, 0
    International Components for Unicode 2009/12/05-11:25:03  Build gtlib_main.11277
    JP2KLib 2010/02/24-17:43:58 61.131544 61.131544
    Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 10.0
    LogSession 2, 0, 1, 11
    MPS 2010/02/24-17:43:58 61.421978 61.421978
    Microsoft (R) Visual C++ 6.00.8168.0
    Microsoft® Visual Studio .NET 7.10.3077.0
    Microsoft® Visual Studio® 2005 8.00.50727.42
    Microsoft® Visual Studio .NET 7.10.3052.4
    Microsoft® Visual Studio® 2005 8.00.50727.42
    Microsoft® Visual C++ 2.10.000
    Microsoft® Visual C++ 4.00.5270
    PDFPort 2010/06/28-18:09:25 61.435133 61.435133
    Adobe PDFSettings 1.04
    Adobe Photoshop CS5 CS5
    Adobe(R) CSXS PlugPlug Standard Dll (32 bit) 2.0.1.127
    Adobe India Sangam Core Code 2010/02/03-18:48:35 61.129109 61.129109
    Adobe India SangamML Import from Sangam 2010/02/03-18:48:35 61.129109 61.129109
    ScCore 2010/03/05-08:21:15 61.423205 61.423205
    Microsoft® Windows® Operating System 6.00.2600.0000
    SVGExport 6, 0, 0, 0 1.0
    SVGRE 6, 0, 0, 0 1.0
    Adobe Updater Notifications Library 1.0.0.68 (BuildVersion: 1.0; BuildDate: BUILDDATETIME) 1.0.0.68
    WRServices Thursday January 21 2010 12:13:3 Build 0.11423 0.11423
    ATE
    OS: Windows
    Version: 6.1
    System Architecture: x86
    Built-In Memory: 4043 MB
    Application Folder:
    C:\Program Files (x86)\Adobe\Adobe Illustrator CS5\Support Files\
    Primary Scratch Folder:
    C:\AITEMP\
    Secondary Scratch Folder:
    D:\AITEMP\
    Plug-ins:
    Live Menu Item
    Adobe AI Application Plugin
    Control Groups
    Color Conversion
    Composite Fonts
    New Cache Plugin
    AdobeLicenseManager
    ZStringTable
    Window Menu
    Main Filters
    Main File Formats
    File Format Place EPS
    AI File Format
    Debug Menu
    SLO Text Tool
    Mesh Object
    Document Window Plugin
    Sweet Pea 2 Adapter Plugin
    ADM Plugin
    ASLib
    AdobeActionManager
    AILocalized Resources Plugin
    FrameworkS
    Art Converters v2
    FlattenTransparency
    FO Conversion Suite
    Pathfinder Suite
    PDF Suite
    BRS Pencil Tool
    Rasterize 8
    AdobeSlicingPlugin
    AdobeActionPalette
    BeautifulStrokes Suite
    AdobeBrushMgr
    Adobe Color Harmony Plugin
    Control Palette Plugin
    Adobe Deform Plugin
    AdobeLayerPalette
    Adobe Planar Edit Plugin
    AdobePaintStyle
    PathConstruction Suite
    AdobeSwatch_
    AdobeToolSelector
    Adobe Tracing Object
    Adobe Custom Workspace
    AdobeDiffusionRaster
    Snapomatic
    Adobe Geometry Suite
    Flatten Suite
    ShapeConstruction Suite
    ExpandS
    SWFExport
    Photoshop Plugin Adapter Targa
    Photoshop Plugin Adapter PNG
    Photoshop Plugin Adapter Pixar
    Photoshop Plugin Adapter PCX
    Photoshop Plugin Adapter BMP
    Photoshop Plugin Adapter Unsharp Mask...
    Photoshop Plugin Adapter Smart Blur...
    Photoshop Plugin Adapter Radial Blur...
    Photoshop Plugin Adapter Pointillize...
    Photoshop Plugin Adapter NTSC Colors
    Photoshop Plugin Adapter Mezzotint...
    Photoshop Plugin Adapter Gaussian Blur...
    Photoshop Plugin Adapter De-Interlace...
    Photoshop Plugin Adapter Crystallize...
    Photoshop Plugin Adapter Color Halftone...
    Photoshop Plugin Adapter Texturizer...
    Photoshop Plugin Adapter Stained Glass...
    Photoshop Plugin Adapter Patchwork...
    Photoshop Plugin Adapter Mosaic Tiles...
    Photoshop Plugin Adapter Grain...
    Photoshop Plugin Adapter Craquelure...
    Photoshop Plugin Adapter Glowing Edges...
    Photoshop Plugin Adapter Water Paper...
    Photoshop Plugin Adapter Torn Edges...
    Photoshop Plugin Adapter Stamp...
    Photoshop Plugin Adapter Reticulation...
    Photoshop Plugin Adapter Plaster...
    Photoshop Plugin Adapter Photocopy...
    Photoshop Plugin Adapter Note Paper...
    Photoshop Plugin Adapter Halftone Pattern...
    Photoshop Plugin Adapter Graphic Pen...
    Photoshop Plugin Adapter Cont^e Crayon...
    Photoshop Plugin Adapter Chrome...
    Photoshop Plugin Adapter Charcoal...
    Photoshop Plugin Adapter Chalk && Charcoal...
    Photoshop Plugin Adapter Bas Relief...
    Photoshop Plugin Adapter Ocean Ripple...
    Photoshop Plugin Adapter Glass...
    Photoshop Plugin Adapter Diffuse Glow...
    Photoshop Plugin Adapter Sumi-e...
    Photoshop Plugin Adapter Sprayed Strokes...
    Photoshop Plugin Adapter Spatter...
    Photoshop Plugin Adapter Ink Outlines...
    Photoshop Plugin Adapter Dark Strokes...
    Photoshop Plugin Adapter Crosshatch...
    Photoshop Plugin Adapter Angled Strokes...
    Photoshop Plugin Adapter Accented Edges...
    Photoshop Plugin Adapter Watercolor...
    Photoshop Plugin Adapter Underpainting...
    Photoshop Plugin Adapter Sponge...
    Photoshop Plugin Adapter Smudge Stick...
    Photoshop Plugin Adapter Rough Pastels...
    Photoshop Plugin Adapter Poster Edges...
    Photoshop Plugin Adapter Plastic Wrap...
    Photoshop Plugin Adapter Palette Knife...
    Photoshop Plugin Adapter Paint Daubs...
    Photoshop Plugin Adapter Neon Glow...
    Photoshop Plugin Adapter Fresco...
    Photoshop Plugin Adapter Film Grain...
    Photoshop Plugin Adapter Dry Brush...
    Photoshop Plugin Adapter Cutout...
    Photoshop Plugin Adapter Colored Pencil...
    Photoshop Plugin Adapter Filter Gallery...
    Twirl v2
    AdobeBuiltInToolbox
    Adobe Symbolism
    Simplify
    ShapeTool
    Segment Tools
    Adobe Scatter Brush Tool
    Reshape Tool
    Magic Wand
    Liquify
    Lasso
    Knife Tool
    Adobe Flare Plugin
    AdobeTextDropper
    Adobe Eraser Tool
    Adobe dBrush Brush Tool
    Adobe Crop Tool
    Adobe Calligraphic Brush Tool
    BoundingBox
    AdobeArtBrushTool
    Smart Punctuation
    TxtColumns
    Spell Check Dictionary
    Spell Check UI
    Find Replace UI
    TextFindFont
    TypeCase
    Adobe PSD File Import
    Adobe PSD File Export
    Photoshop Adapter
    PerspectiveUI
    TIFF File Format
    PNG File Format
    MPSParser
    MPSExport
    MPSCommon
    Mojikumi UI
    FXG UI
    FXG
    Adobe DXFDWG Format
    ZigZag v2
    Scribble v2
    TextWrap Dlg
    ShapeEffects v2
    Adobe Scribble Fill
    Saturate
    Round v2
    Roughen v2
    Punk v2
    AdobePathfinderPalette
    Overprint
    OffsetPath v2
    AI Object Mosaic Plug-in
    MaskHelper v2
    Inverse
    FuzzyEffect v2
    Distort v2
    Find
    Expand
    DropShadow
    TrimMark v2
    Colors
    Cleanup
    Adjust
    AddArrowHeads v3
    Add Anchor Points
    Adobe Welcome Screen
    AdobeTransparencyEditor
    AdobeTransformObjects
    Transform v2
    Adobe Tracing UI
    Adobe Symbol Palette Plugin
    SVG Filter Effect v2
    Stroke Offset v2
    Services
    SeparationPreviewPlugin
    Scripts Menu
    ScriptingSupport
    Print Plugin
    Adobe Perspective Guides
    Adobe Nudge
    AdobeNavigator
    Adobe Path Blends
    AdobeLinkPalette
    Kinsoku Dlg
    KBSC Plugin
    GradientMeshPlugin
    Flattening Preview
    FileClipboardPreference
    DocInfo
    Character and Paragraph Styles
    AI Bottlenecks Plugin
    Asset Management
    AdobeArtboardPanel
    Adobe Art Style Plugin
    Adobe App Bar Controls Host
    Alternate Glyph Palette
    AdobeAlignObjects
    3D v2
    PDF File Format
    ADMEveParser Plug

    Hi Mylenium,
    The program just loads useless to use your words when I try to pass a file from Illustrator to Photoshop and when I click anywhere in Illustrator I get Program "Not responding" it doesn't crashes (stops) it stais opened but it doesn't do anything so I need to close it by force from task manager because I can't do anything with it.... Once I left it over night to save an important file and just in the morning I managed to do that so after a while it comes round but all the time there are different periouds of pending. Anyway this is not normal and I should be able to use the program in normal parameters with a powerful system. 
    I don't have any processor over load in the task manager I don't have anything unusual that indicates an over load of information, that's my problem. My guess is that I have a system incompatibility but I don't know where so that's why I asked for Adobe's help. Again I didn't had this problem using the same pack (CS5) with a less powerful system...
    If there are any creash logs pelase tell me where can I find them ?

  • Passing Objects from Servlet to Servlet

    Hei,
    how do I pass an object from one servlet to another.. or back to the same again?
    I have my servlet and there I want
    first create an object, then pass that object for processing and manipulating and then pass it for output of the final result..
    How can I send and get the object in a servlet?
    Big thx,
    LoCal

    Hei,
    sorry.. maybe I gave to less informations. In fact it's only one servlet...
    I can't post the original code but something that makes it clear :)
    I wrote the whole project without using Servlet-Technique but normal Java-App. But I designed it so, that I only had to rewrite one class.. and least I thought so.. but now I stuck at this Object-passing problem.
    Sorry.. but I'm pretty new to Servlets
    Thank you very much in advance for your help.
    public class Logger extends HttpServlet {
      private Templates templ = new Templates();
      private Person pers;
      public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        String uname = req.getParameter("user");
        String pwd = req.getParameter("pwd");
        String sts = req.getStatus
        PrintWriter out = res.getWriter();
        switch(sts) {
          case 1: out.println(templ.getXHTMLEditPers(pers));
          break;
          case 2: out.println(templ.getXHTMLViewPers(pers));
          break;
          case 3: out.println(templ.getXHTMLView(pers));
          break;
          default: out.println(tmpl.getXHTMLLogin());
      public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
      doGet(req, res);     
    }

  • Pass a object from one jar to another jar file

    I have a common jar file which will communicate to the server for data validation purpose.But after validation it has to invoke different different jar file based on its response from the server.So, I might have a object which has to pass from the common jar file to a specific jar file.So, I like to know what will be the best procedure to achieve it.
    Please help me out.

    arpitak wrote:
    Yes,jar file holds class files.one of class files wants to trigger a method of a class file which resides in different jar file.this is the situation I tried to describe.Let consider there are three jar files like JAR A,JAR B ,JAR C.Here JAR A is a common jar where other two jar could be used as a plug in. So based on the condition any one of them (JARS) will be triggered by the common jar(JAR A).this is the situation.The class file of JAR A will trigger some method or main method of the JAR B/JAR C.So,here how could I pass a object from one jar to another is my main question.
    Is it clear now?
    I need a solution for this very urgently.Are you looking for a plug-in framework? That is, dynamically discovering and loading plugins. I am not experienced in developing or using plugins. However Googling "java plugin" brings up JPF.
    If you just have multiple jars that have different classes, the JVM will load the appropriate classes if it can find the jars through the standard classloader on the classpath or through a customer classloader.

  • How to pass an object from jsp to other jsp using SendRedirect

    How to pass an object from one jsp to the other jsp using ssendRedirect with out using the session
    I am having 2 jsps
    x.jsp and y.jsp
    From x.jsp using sendRedirect iam going to y.jsp
    From x.jsp i have pass an object to the y.jsp
    Is it possible without putting the object in session
    Is it possible using EncodeUrl
    Please help me Its Urgent

    Is it possible without putting the object in sessionAnything is possible. Would you accept that it is very difficult?
    When you send a redirect, it tells the browser to send a new request for the target page. That means any request parameters/attributes are lost.
    Is it possible using EncodeUrl response.encodeURL() puts the session id into a url if the browser does not support cookies. It is purely for retaining the session.
    There are two ways that you can communicate across a sendRedirect.
    1 - use the session
    2 - pass a parameter in the url.
    parameters are string based, so passing objects is almost out of the question.
    Potentially you could serialize your object, encode it in base64 (so it is composed completely as characters) and pass it as a parameter to the other page, where you retrieve it, unencode it, and then load the serialized object.
    Or you can just use the session.

  • Problem to connect to mysql from servlet using a javabean

    Hi,
    I'm new here and beginner on java to.
    I have problem to connect to MySql database, by a connection javabean.
    It's the following: a HTML page calls a servlet and this servlet imports the package connection javabean.
    It has no problem when I establish the connection inside the servlet, with all its methods (public and private). But i want to separate the code connection from servlet.
    Detail: there is no problem, using the javabean to connect to MS Access database.
    I put "mysql-connector-java-3.1.12-bin.jar" file inside WEB-INF/lib application and common/lib directories.
    I set the classpath:
    SET CLASSPATH=%CATALINA_HOME%\COMMON\LIB\mysql-connector-java-3.1.12-bin.jar;%CLASSPATH%
    I think that the servlet cannot create an instance of javabean, because passed by catch exception of the servlet init method.
    But I don't know why.
    Please Why?
    Below there are the fragment of errors, servlet code e javabean code.
    Thank you.
    Zovao.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
    at CadServletFileBeanConexArq.doPost(CadServletFileBeanConexArq.java:47)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
    Note: The line 47 is calling insertIntoDB javabean method.
    ========///////////////===============
    // Here is the servlet CadServletFileBeanConexArq.java
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.sql.*;
    import conJdbc.*;
    public class CadServletFileBeanConexArq extends HttpServlet {
    public ConexPed connect = null;
    private String driver = "com.mysql.jdbc.Driver";
    private String URL = "jdbc:mysql://localhost:3306/cadastro";
    public void init( ServletConfig config )
    throws ServletException
    super.init( config );
    try
    connect = new ConexPed(driver, URL, "monty", "some_pass");
    catch ( Exception e )
    e.printStackTrace();
    connect = null;
    public void doPost( HttpServletRequest req,
    HttpServletResponse res )
    throws ServletException
    boolean success = true;
    String email, nome, sobrenome, produto, valor;
    email = req.getParameter( "Email" );
    nome = req.getParameter( "Nome" );
    sobrenome = req.getParameter( "Sobrenome" );
    produto = req.getParameter( "Produto" );
    valor = req.getParameter( "Valor" );
    res.setContentType( "text/html" );
    if ( email.length() > 0 && nome.length() > 0 && sobrenome.length() > 0 && valor.length() > 0 )
    /* inserting data */
    success = connect.insertIntoDB(
    "'" + email + "','" + nome + "','" + sobrenome + "','" + produto + "'", Double.parseDouble(valor) );
    //closing connection
    public void destroy()
    connect.fecharConexao();
    =============///////////////============
    Here is the JavaBean.
    package conJdbc;
    import java.sql.*;
    public class ConexPed
    public Connection connection;
    public Statement statement;
    public ConexPed (String driver, String urlServidor, String user, String password)
    try
    Class.forName(driver);
    connection = DriverManager.getConnection(urlServidor,user,password);
    catch (ClassNotFoundException ex)
    System.out.println("N�o foi poss�vel encontrar a classe do Driver: " + driver);
    catch (SQLException ex)
    System.out.println("N�o foi poss�vel conectar ao servidor");
    try
    statement = connection.createStatement();
    catch (SQLException ex)
    System.out.println("N�o foi poss�vel criar a statement");
    *Inserting data to database
    public synchronized boolean insertIntoDB( String stringtoinsert, double valor)
    try
    statement.executeUpdate( "INSERT INTO pedido values (" + stringtoinsert + " , " + valor + ");" );
    catch ( Exception e ) {
    System.err.println(
    "ERROR: Problemas ao adicionar nova entrada" );
    e.printStackTrace();
    return false;
    return true;
    * Close statement.
    public void fecharStatement()
    try
    statement.close();
    catch (SQLException ex)
    ex.printStackTrace();
    * close database
    public void fecharConexao()
    try
    connection.close();
    catch (SQLException ex)
    ex.printStackTrace();
    }

    Hi,
    I'm new here and beginner on java to.
    I have problem to connect to MySql database, by a connection javabean.
    It's the following: a HTML page calls a servlet and this servlet imports the package connection javabean.
    It has no problem when I establish the connection inside the servlet, with all its methods (public and private). But i want to separate the code connection from servlet.
    Detail: there is no problem, using the javabean to connect to MS Access database.
    I put "mysql-connector-java-3.1.12-bin.jar" file inside WEB-INF/lib application and common/lib directories.
    I set the classpath:
    SET CLASSPATH=%CATALINA_HOME%\COMMON\LIB\mysql-connector-java-3.1.12-bin.jar;%CLASSPATH%
    I think that the servlet cannot create an instance of javabean, because passed by catch exception of the servlet init method.
    But I don't know why.
    Please Why?
    Below there are the fragment of errors, servlet code e javabean code.
    Thank you.
    Zovao.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
    at CadServletFileBeanConexArq.doPost(CadServletFileBeanConexArq.java:47)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
    Note: The line 47 is calling insertIntoDB javabean method.
    ========///////////////===============
    // Here is the servlet CadServletFileBeanConexArq.java
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.sql.*;
    import conJdbc.*;
    public class CadServletFileBeanConexArq extends HttpServlet {
    public ConexPed connect = null;
    private String driver = "com.mysql.jdbc.Driver";
    private String URL = "jdbc:mysql://localhost:3306/cadastro";
    public void init( ServletConfig config )
    throws ServletException
    super.init( config );
    try
    connect = new ConexPed(driver, URL, "monty", "some_pass");
    catch ( Exception e )
    e.printStackTrace();
    connect = null;
    public void doPost( HttpServletRequest req,
    HttpServletResponse res )
    throws ServletException
    boolean success = true;
    String email, nome, sobrenome, produto, valor;
    email = req.getParameter( "Email" );
    nome = req.getParameter( "Nome" );
    sobrenome = req.getParameter( "Sobrenome" );
    produto = req.getParameter( "Produto" );
    valor = req.getParameter( "Valor" );
    res.setContentType( "text/html" );
    if ( email.length() > 0 && nome.length() > 0 && sobrenome.length() > 0 && valor.length() > 0 )
    /* inserting data */
    success = connect.insertIntoDB(
    "'" + email + "','" + nome + "','" + sobrenome + "','" + produto + "'", Double.parseDouble(valor) );
    //closing connection
    public void destroy()
    connect.fecharConexao();
    =============///////////////============
    Here is the JavaBean.
    package conJdbc;
    import java.sql.*;
    public class ConexPed
    public Connection connection;
    public Statement statement;
    public ConexPed (String driver, String urlServidor, String user, String password)
    try
    Class.forName(driver);
    connection = DriverManager.getConnection(urlServidor,user,password);
    catch (ClassNotFoundException ex)
    System.out.println("N�o foi poss�vel encontrar a classe do Driver: " + driver);
    catch (SQLException ex)
    System.out.println("N�o foi poss�vel conectar ao servidor");
    try
    statement = connection.createStatement();
    catch (SQLException ex)
    System.out.println("N�o foi poss�vel criar a statement");
    *Inserting data to database
    public synchronized boolean insertIntoDB( String stringtoinsert, double valor)
    try
    statement.executeUpdate( "INSERT INTO pedido values (" + stringtoinsert + " , " + valor + ");" );
    catch ( Exception e ) {
    System.err.println(
    "ERROR: Problemas ao adicionar nova entrada" );
    e.printStackTrace();
    return false;
    return true;
    * Close statement.
    public void fecharStatement()
    try
    statement.close();
    catch (SQLException ex)
    ex.printStackTrace();
    * close database
    public void fecharConexao()
    try
    connection.close();
    catch (SQLException ex)
    ex.printStackTrace();
    }

  • How to pass a JavaBean from servlet to JSP?

    Hi there,
    I am working on a project that needs to handle quite a few client requests and I want to use the Front Controller pattern that is described in the J2EE pattern page.
    The steps described in the front controller pattern is that:
    1. A servlet (controller) process the client request.
    2. It calls the appropriate cammand object and the cammand object gets the data from the data source and returns a JavaBean that contains the required data.
    3. The servlet dispatch to the appropriate View (jsp page)
    4. The JSP page displays the data in the JavaBean to the user.
    However, I don't know how to pass the JavaBean from the servlet to the JSP page when the servlet forwards the control to the JSP page. Should I make the JavaBean with a request scope or higher? If so, how to uses it in the JSP page? Just refer by the ID of the JavaBean.
    If any one knows there is an example or tutorial on how to use this pattern, please let me know.
    Thank you !
    Regards
    Edmund

    Could you please give more info? i tried to do this, but always get a "Class not found exception":
    response$jsp.java:65: Class org.apache.jsp.TestBean not found. TestBean bean = null;
    although the class TestBean (no package name => defalt package) is in the WAR file and the Servlet seems to instantiate it (otherwise an exception would occur sooner in the TestServlet code).
    my JSP code is:
    <%@ page language="java" info="Response page" %>
    <jsp:useBean id="bean" class="TestBean" />
    <%
    TestBean bean2 = (TestBean) request.getAttribute("TheBean");
    %>
    <html>
    <body>
    Your value: <%= bean2.getValue() %><BR>
    My val: <%= bean2.getNewValue() %><BR>
    <P>
    Date: <%= new Date() %>
    <P>
    Neuen Wert eingeben
    </body>
    </html>
    --------------

  • Passing Opaque Objects from Oracle to Java

    Hi all
    I am trying to write a stored procedure that needs to be called from different triggers. Each triggers needs to pass a different set of data to the stored procedure. Now the problem is that i need to pack the different set of data into one opaque object type that i can pass onto java. Is there any way of doing this. I am using Oracle 9i running on Linux 2.4.9. I tried using the Object datatype in Oracle 9i. But am not able to pass a object datatype to java directly.

    Didn't know that. Guess the way this API handles the struct is it puts it on the heap, since this idea (with passing a 32-bit var back and forth with a memory location) worked.
    My next problem - I can't figure out a way to destroy a jstring: whenever I do an env->GetStringUTF((char*)charBuff), it seems to simply copy the bytes from the buffer
    into the same String object up the length of the buff (so I get the extra bytes from the previous String if it was longer at the end).
    Here's how it works: I have a loop in C code that parses tags inside a file, then depending on what tag it is, I create a new jobject and call a Java method to do stuff
    to that object. As one of the parameters in the constructor I pass in a String that I create (as you can see above) from a character array, however I am getting
    massive artifacts when I print out that String inside the Java method.
    Thoughts? :(

  • Passing an integer from servlet  to PERL

    Hi,
    I have a one problem. Iam having an film database(SQLPLUS) table and can get particular information from the database using filmId(using servlets).
    Now I have to use Perl to know more information about the specific film. So Iam passing the filid to Perl and every time Iam using a different filmID I can see the URL in the perl page change to specific id's so I know the filmid is correctly passed. But for some reason the perl is not able to fetch the information from the database like the servlets. the perl is simply giving a blank HTML Page.
    AM I PASSING THE filmis CORRECTLY IN TO PERL FROM SERVLET??
    Thanks
    The part of the servlet program is below.//Passing the ID(filmsid)
    try
    //Loop through results of query.
    while(rs1.next())
    String filmids = rs1.getString("ID");
    out.println("<TR>");
    out.println("<TD>" + rs1.getString("ID") + "</TD>");
    out.println ("<TD><a href=cgi-bin/'trial2.pl?filmids="+filmids+"'>Click here to view comments </a></TD>");
    out.println("</TR>");
    the perl program is below too.//Getting the filmid's
    $reg = "SELECT ID,Title,Price,Availability FROM FILMS1 WHERE ID =
    /$filmsid/i
    my $sql = $dbh->prepare($reg);
    $sql->execute();
    while (@row = $sql->fetchrow_array){
    print "<TR align = center bgcolor=white> <TD>",$row[0],"</TD> </TR>";
    print "</TABLE>";
    #$exist=$sql->fetchrow_array();
    #print "<H3> $exist is the value </H3>";
    $sql->finish();
    $dbh->disconnect();
    print "</font>";
    print "</body>\n";
    print "</html>\n";

    It doesn't seem to be that you're passing anything to Perl, at least not directly. Rather, you're creating a web page that has a link to a resource on a web server, and the resource is being serviced by a perl script.
    This means that you can debug the two separately. First, confirm that the java servlet is producing the page, and in particular the link, correctly.
    Then, fix the perl script as a separate step. I notice that you only quoted a fragment from your perl script; what you posted msy not run at all.
    If you want help with a perl script, you're better off on a perl-centric forum. Put on your flame-retardant suit and head on over to comp.lang.perl.misc.

  • Passing a object from browser to server

    How can i pass a java object from browser to server, can anybody help me in knowing this?
    Rajesh.

    You might need to clarify this. What exactly do you need to do? You can't pass anything from a browser except HTML, other than by attachment. If you have a Java object, then I assume that you are using JSP or something that supports Java, in which case you are already using server-side semantics.
    If however, you mean Javascript, that's a whole other problem, as it is client side only.
    Perhaps if you clarify what you are trying to do someone can give you a good answer.
    Regards,
    Paul

  • Passing an object from a client to theserver

    I have gone through much of the RMI material and still not fully clear on passing an object of class Object from the client to the server. The Object is constructed on the client and needs to be passed to the server for further manipulation. As it is of Class Object it is not automaiclly Serializable. So I gather it has to some how implement this interface.
    Also at some point I need to get the Object back from the server to the client. At the moment it almost appears to be a simpler problem if I use something like SOAP. Suggestions and comment would help
    Thanks

    On the Client it is an object of a class, not Object. I declared it to be of class Object in the Interface code on the server, hence it is being treated as an Object class instance. It may be just as simple, but messy in just passing simple data types back and forth. It still leaves me with the matter of getting several bits of data from the server to client.
    Taking a simple example. If the data was to deal with a person, ie name age etc, then I can pass that to the server, process it store it etc as an object of Class X. But how do I now move that information back to the client simply?
    Omegaall

  • Passing the values from one pgm to another pgm (Calling pgm has no sel scr)

    Hi gurus,
    In my requirement i need to pass the values from one program to another program.
    I am using SUBMIT statement . But , the program which i am calling has no selection screen.
    So how can i pass the values?
    Please help me ASAP.
    Regards,
    Bhanu.R

    Export your internal tables or work areas to a memory id in ur program before u use submit.
    Then in second pgm you have to import from memory id given above.
    example.
    EXPORT gs_header FROM gs_header to memory id 'HEADER'.
    EXPORT gt_item FROM gt_item to memory id 'ITEM'.
    SUBMIT YFIIN_DISHC_MAILREPORT EXPORTING LIST TO MEMORY AND RETURN.
    In your second pgm you can write
    import gs_header TO gs_header from MEMORY id 'HEADER'.
    import gt_item TO gt_item from MEMORY id 'ITEM'.

  • Passing complex object from bpel process to web service

    I have deployed my web service on apache axis.The wsdl file looks like as follows,
    <?xml version="1.0" encoding="UTF-8" ?>
    - <wsdl:definitions targetNamespace="http://bpel.jmetro.actiontech.com" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://bpel.jmetro.actiontech.com" xmlns:intf="http://bpel.jmetro.actiontech.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <wsdl:types>
    - <schema targetNamespace="http://bpel.jmetro.actiontech.com" xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
    - <complexType name="ADLevelBpelWS">
    - <sequence>
    <element name="adLevelStr" nillable="true" type="xsd:string" />
    <element name="id" type="xsd:int" />
    </sequence>
    </complexType>
    - <complexType name="TransResultWS">
    - <sequence>
    <element name="description" nillable="true" type="xsd:string" />
    <element name="id" type="xsd:long" />
    <element name="responseType" type="xsd:int" />
    <element name="status" type="xsd:boolean" />
    </sequence>
    </complexType>
    - <complexType name="NamespaceDataImplBpelWS">
    - <sequence>
    <element name="ADLevel" nillable="true" type="impl:ADLevelBpelWS" />
    <element name="appdataDef" nillable="true" type="apachesoap:Map" />
    <element name="description" nillable="true" type="xsd:string" />
    <element name="name" nillable="true" type="xsd:string" />
    </sequence>
    </complexType>
    - <complexType name="CreateSharedNamespaceBpelWS">
    - <sequence>
    <element name="actor" nillable="true" type="xsd:string" />
    <element name="comment" nillable="true" type="xsd:string" />
    <element name="from" nillable="true" type="xsd:string" />
    <element name="namespaceData" nillable="true" type="impl:NamespaceDataImplBpelWS" />
    <element name="priority" type="xsd:int" />
    <element name="processAtTime" nillable="true" type="xsd:dateTime" />
    <element name="replyTo" nillable="true" type="xsd:string" />
    <element name="responseRequired" type="xsd:boolean" />
    </sequence>
    </complexType>
    </schema>
    - <schema targetNamespace="http://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
    - <complexType name="mapItem">
    - <sequence>
    <element name="key" nillable="true" type="xsd:string" />
    <element name="value" nillable="true" type="xsd:string" />
    </sequence>
    </complexType>
    - <complexType name="Map">
    - <sequence>
    <element maxOccurs="unbounded" minOccurs="0" name="item" type="apachesoap:mapItem" />
    </sequence>
    </complexType>
    </schema>
    </wsdl:types>
    + <wsdl:message name="createNamespaceRequest">
    <wsdl:part name="createNs" type="impl:CreateSharedNamespaceBpelWS" />
    </wsdl:message>
    - <wsdl:message name="createNamespaceResponse">
    <wsdl:part name="createNamespaceReturn" type="impl:TransResultWS" />
    </wsdl:message>
    - <wsdl:portType name="JMetroWebService">
    - <wsdl:operation name="createNamespace" parameterOrder="createNs">
    <wsdl:input message="impl:createNamespaceRequest" name="createNamespaceRequest" />
    <wsdl:output message="impl:createNamespaceResponse" name="createNamespaceResponse" />
    </wsdl:operation>
    </wsdl:portType>
    - <wsdl:binding name="NAMESPACEWITHMAPSoapBinding" type="impl:JMetroWebService">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="createNamespace">
    <wsdlsoap:operation soapAction="" />
    - <wsdl:input name="createNamespaceRequest">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://bpel.jmetro.actiontech.com" use="encoded" />
    </wsdl:input>
    - <wsdl:output name="createNamespaceResponse">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://bpel.jmetro.actiontech.com" use="encoded" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    - <wsdl:service name="JMetroWebServiceService">
    - <wsdl:port binding="impl:NAMESPACEWITHMAPSoapBinding" name="NAMESPACEWITHMAP">
    <wsdlsoap:address location="http://localhost:7001/axis/services/NAMESPACEWITHMAP" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    My NamespaceDataObjectImplBpelWS object contains element appDataDef which is of type java.util.Map.My bpel wsdl file is as below,
    <?xml version="1.0"?>
    <definitions name="NsWithMap"
    targetNamespace="http://bpel.jmetro.actiontech.com"
    xmlns:tns="http://bpel.jmetro.actiontech.com"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:apachesoap="http://xml.apache.org/xml-soap"
    >
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    TYPE DEFINITION - List of services participating in this BPEL process
    The default output of the BPEL designer uses strings as input and
    output to the BPEL Process. But you can define or import any XML
    Schema type and us them as part of the message types.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <types>
         <schema targetNamespace="http://bpel.jmetro.actiontech.com" xmlns="http://www.w3.org/2001/XMLSchema">
         <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
              <element name="createNamespace" type="tns:CreateSharedNamespaceBpelWS"/>
              <element name="transResult" type="tns:TransResultWS"/>
              <complexType name="TransResultWS">
                   <sequence>
                        <element name="description" type="string" />
                        <element name="id" type="long" />
                        <element name="responseType" type="int" />
                        <element name="status" type="boolean" />
              </sequence>
              </complexType>
              <complexType name="ADLevelBpelWS">
                   <sequence>
                        <element name="adLevelStr" type="string" />
                        <element name="id" type="int" />
                   </sequence>
              </complexType>
              <complexType name="NamespaceDataImplBpelWS">
                   <sequence>
                        <element name="ADLevel" type="tns:ADLevelBpelWS" />
                        <element name="description" type="string" />
                        <element name="name" type="string" />
                        <element name="appdataDef" type="apachesoap:Map" />
                   </sequence>
              </complexType>
              <complexType name="CreateSharedNamespaceBpelWS">
                   <sequence>
                        <element name="namespaceData" type="tns:NamespaceDataImplBpelWS" />
              </sequence>
              </complexType>
         <element name="desc" type="string"/>
         </schema>
         <schema targetNamespace="http://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/XMLSchema">
                   <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
                        <complexType name="mapItem">
                             <sequence>
                                  <element name="key" type="string" />
                                  <element name="value" type="string" />
                        </sequence>
                        </complexType>
                        <complexType name="Map">
                             <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="apachesoap:mapItem" />
                             </sequence>
                        </complexType>
              </schema>
    </types>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    MESSAGE TYPE DEFINITION - Definition of the message types used as
    part of the port type defintions
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <message name="NsWithMapRequestMessage">
    <part name="payload" element="tns:createNamespace"/>
    </message>
    <message name="NsWithMapResponseMessage">
    <part name="payload" element="tns:transResult"/>
    </message>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PORT TYPE DEFINITION - A port type groups a set of operations into
    a logical service unit.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <!-- portType implemented by the NsWithMap BPEL process -->
    <portType name="NsWithMap">
    <operation name="initiate">
    <input message="tns:NsWithMapRequestMessage"/>
    </operation>
    </portType>
    <!-- portType implemented by the requester of NsWithMap BPEL process
    for asynchronous callback purposes
    -->
    <portType name="NsWithMapCallback">
    <operation name="onResult">
    <input message="tns:NsWithMapResponseMessage"/>
    </operation>
    </portType>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PARTNER LINK TYPE DEFINITION
    the NsWithMap partnerLinkType binds the provider and
    requester portType into an asynchronous conversation.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <plnk:partnerLinkType name="NsWithMap">
    <plnk:role name="NsWithMapProvider">
    <plnk:portType name="tns:NsWithMap"/>
    </plnk:role>
    <plnk:role name="NsWithMapRequester">
    <plnk:portType name="tns:NsWithMapCallback"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    I am trying to set this map data using java code ,
         HashMap procADMap1 = new HashMap(5);
                   PropertyTypeWS pType = new PropertyTypeWS();
                   pType.setTypeIndex(2);     
              AppdataDefImplWS appData1 = new AppdataDefImplWS();
              appData1.setName("Project");
              appData1.setType(pType);
              appData1.setMaxSize(400);
              appData1.setLOB(false);
         appData1.setDefaultValue("Project Default value");
              procADMap1.put(appData1.getName(), appData1);
              setVariableData("request","createNs","/createNs/namespaceData/appdataDef",procADMap1);     
    Then I am passing request object to the method which I want to invoke from bpel process.
    I am able to deploy the application but when I do post message I am getting following exception,
    NamespaceWithMap (createNamespace) (faulted)
    [2004/09/09 18:35:54] "{http://schemas.oracle.com/bpel/extension}bindingFault" has been thrown. Less
    faultName: {{http://schemas.oracle.com/bpel/extension}bindingFault}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    code: {Server.userException}
    summary: {org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.}
    detail: {null}
    Is there any other way to handle Map type in bpel process?
    Thanks in advance,
    Sanjay

    Thanks for the quick reply.Actually the web service is already deployed on the server.What I want to do is use existing wsdl file of the deployed web service and invoke the method of the same using oracle PM.
    If I remove element which uses apachesoap:Map type it just works fine also I am getting the complex object returned by the web service method.But when I try to set appDataDef which is of type apachesoap:Map(Axis conversion for java.util.Map and it uses namespace xmlns:apachesoap="http://xml.apache.org/xml-soap") I am getting the error.
    Can you give me some direction to use this exising wsdl file to set map object or it is not possible.

  • Passing complex object from JavaScript to Flex

    Is it possible to call a Flex function (defined with ExternalInterface.addCallback) and pass a complex object from Javascript?  The properties of the object are all simple types, but the object itself is an array of objects.  For example:
    <script type="text/javascript">
    var arrayOfObj = [ { one: "one", two: 2, three: "blah" }, { one: "xyz", two: "abc", three: 3.141 } ];
    callSomeFunctionInFlex(arrayOfObj);
    </script>
    What would I do on the Flex side to make this happen?

    Complex object passing works as expected in Blazeds. 
    There are certain cases where you need to write custom bean proxy classes to marshall an object, but your case is very simple and will not require it.
    Make sure that you set the full java package and class name in your remote alias statement on your client value object.  The class has to be fully qualified.  The AS value object also needs the correct import of the nested value object or you will get a compile error.
    Make sure that the blazeds server has the full class path set to your java objects.
    To debug, you can turn on Blazeds logging in the services-config.xml file like this:
       <logging>
            <!-- You may also use flex.messaging.log.ServletLogTarget -->
            <target class="flex.messaging.log.ConsoleTarget" level="DEBUG">
                <properties>
                    <prefix>[BlazeDS]</prefix>
                    <includeDate>false</includeDate>
                    <includeTime>false</includeTime>
                    <includeLevel>true</includeLevel>
                    <includeCategory>false</includeCategory>
                </properties>
            </target>
        </logging>

  • Problem in passing/returning objects over dynamic web service call

    Hi Friends,
    I am beginner in java web service.
    Here is the problem I am facing when I pass/return user defined objects to remote web service method using dynamic we service call.
    The client can call the remote web service method in 2 ways.
    1. By generating client stubs using WSDL file
    - In this case, I am able to pass/return the user defined objects to remote method without any issue only when the server side web services are deployed in any server(jboss)
    - But in java 1.6 & above, the web services can be deployed without server using endpoint. In this case, I am not able to pass/return objects over web service calls.
    2. Without generating client stubs (dynamic web service call)
    - This will establish a connection at run time using the given WSDL file (I have attached the document). I have to form an XML(This will contain API name, arguments) string as input at run time
    - In this case, it allows only string as argument while passing & returning.
    Please let me know if you can help me on this.
    Regards,
    pani

    I'm not sure about your question, but this might help:
    [http://forum.java.sun.com/thread.jspa?threadID=5251188|http://forum.java.sun.com/thread.jspa?threadID=5251188]
    You might also want to read on JAXB.

Maybe you are looking for