URGENT regarding applet ejb communication

Following is my applet code
i get the inital context but
it get stuck up at this point
Hello home interface
Object boundObject = context.lookup("java:comp/env/ejb/HelloHome");
This is the place wher eit hangs
i have even given acces right in orion-application.xml
pl help
---Applet Code---
import javax.swing.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
import java.util.Date;
import java.util.Properties;
import javax.naming.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.rmi.PortableRemoteObject;
import hello.ejb.Hello;
import hello.ejb.HelloHome;
public class AppletClient extends JApplet {
boolean isStandalone = false;
JLabel jLabel1 = new JLabel();
BorderLayout borderLayout1 = new BorderLayout();
public void init() {
try {
jbInit();
catch (Exception e) {
e.printStackTrace();
private void jbInit() throws Exception
hello.ejb.Hello _hello;
hello.ejb.HelloHome helloHome;
// Get the initial JNDI context using our settings
this.getContentPane().setLayout(borderLayout1);
this.setSize(new Dimension(400, 400));
jLabel1.setText("Display");
this.getContentPane().add(jLabel1, BorderLayout.CENTER);
//added new code
try
System.out.println("Method call after inital before");
Context context = getInitialContext();
System.out.println("Method call after inital");
// Get a reference to the Hello home interface
Object boundObject = context.lookup("java:comp/env/ejb/HelloHome");
System.out.println("Method call after bound");
helloHome = (HelloHome) PortableRemoteObject.narrow(boundObject,hello.ejb.HelloHome.class);
System.out.println("Method call");
// Get a reference to a Hello instance
_hello = helloHome.create();
jLabel1.setText(_hello.sayHello());
catch (Throwable exception)
throw new Exception("Error " + exception.toString());
//ends
public static Context getInitialContext() throws javax.naming.NamingException
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.rmi.RMIInitialContextFactory");
p.put(Context.PROVIDER_URL,"ormi://localhost/hello-planet");
p.put(Context.SECURITY_PRINCIPAL,"admin");
p.put(Context.SECURITY_CREDENTIALS,"gateway");
p.put(Context.DNS_URL,"http://localhost:8888/hello-planet");
return new javax.naming.InitialContext(p);
null

I have got a solution for that problem :
I have a WinTel/NT Client with installed JRE 1.3.1 . Go to the Conrol Panel, Java Plugin ,first tab-folder "standard" , SET runtime parameter =
-java.security.manager -Djava.security.policy=<URL>
where <URL> links to a file which must contain :
grant {
permission java.security.AllPermission;
Thats all. works for me, but i dont like this solution because you have to do these
settings on each client using your applet and it'll be a big security leak. Give it a try :-((

Similar Messages

  • Applet EJB Coomunication

    Hi,
    I am trying the applet ejb communication .
    I am very comfortable if I do the same with applet servlet communication but the problem is with the applet calling the ejb directly, i mean to say that can applet can directly lookup the EJB ?
    I had tried on the intranet but we are supposed to give the HOme and remote files to the client also the ejb.jar has to be given as the JVM of the clinet doesnot have the javax.ejb package and all relevant pacakages are to be given,
    There is no meaning of making the client EJB compitable.
    Also what about the security ?
    So can any body help me how to do the same.
    Thanks in advance.
    Milind

    Remove ur applet ejb communication by
    applet to servlet/serverside class then from that servlet/serverside clas to ejb..
    This concept is done by a pattern called 'business delegate'.
    By using this approach u need not give the stub and skull to the front end side (jsp/applet/or anything like that).
    just call the servlet/class from the applet by keeping that class as passover and thereby the lookup details are moved to that servlet/class that could resolve your problem..
    does my answer make any sense to u..

  • Problem in Applet Servlet communication in cluster

              Our new production server has been configured with
              clusters very recently.The application is running fine if and only if one instance
              of weblogic is running.The application has two applets that communicate through a
              servlet and the servlet is hosted by both the WL servers in the cluster.
              Please consider the following scenario :
              1. JSP#1(having embedded tag for Applet#1) is served by, say, WLInstance#1.
              2. JSP#2(having embedded tag for Applet#2) is served by, say, WLInstance#2.
              3. Applet#1 is loaded by BrowserInstance#1.
              4. Applet#2 is loaded by BrowserInstance#2.
              The way I understand applet-servlet communication is as follows :
              The servlets are invoked through the url-pattern specified in web.xml - if the applet
              is making use of a certain url-pattern that is mapped to servlet, then the call from
              that applet will
              eventually invoke a servlet on any of the two instances till a session is established,
              at which point all subsequent requests from the same browser window/frame will go
              to the servlet hosted on the instance where the http session was created.
              (Please correct me, if I am wrong.)
              So, Applet#1 will always talk to the servlet hosted by WLInstance#1 and Applet#2
              will always talk to the servlet hosted by WLInstance#2.
              In our case, the servlet is maintaining data structures to store all the messages
              sent by diffterent instances of Applets.
              The applets periodically polls the messages from those data structures.Once the messages
              are polled, those are deleted from
              the data structures.
              As there are two different instances of the servlet, Applet#1 never gets messages
              posted by Applet#2.
              Is there a way to make this data structure global to both the servlet instances?
              Thanks and best regards,
              Subir Das
              

              "Subir Das" <[email protected]> wrote:
              >So, Applet#1 will always talk to the servlet hosted by WLInstance#1 and
              >Applet#2
              >will always talk to the servlet hosted by WLInstance#2.
              This statement is not entirely true.
              Suppose WLInstance#1 were to be brought down (for whatever reason), Applet#1 will
              then talk to servlet hosted by WLInstance#2.
              Server pinning could be modified by different load balancing algorithms, configurable
              via containers (or hardware).
              So don't count on which servlet instance your applet is going to be served by.
              Instead consider to give a second look into the design of the servlet data structure
              (object):
              1.Read from data store, if it has been persisted.
              2.If the data is client related then consider sticking the data into session, which
              would then replicate to other WL instances.
              3.Stateless EJB in a cluster ? Don' know much about this(yet).
              My 2 cents..Good luck.
              Rama
              

  • Is there a good advanced review on applet-servlet communication

    I am working on a web application and unfortunately experiencing a lot of trouble trying to use an applet as front end which interacts with a couple of servlets running on Tomcat. I need to get data from one servlet and send data to another.
    There is a lot of messages posted in this and other forums about how to do this, but none of them got a response pointing to a useful advanced reference on this subject. I have reviewed some of the references given, but couldn't find a thorough detailed advanced reference on applet-servlet communication. For this I mean an exhaustive explanation of the mechanism of communication and when and when is neccesary to use each of the multiple configuration possibilities regarding content-type, message-length, request-method, connection settings, and so on.
    Would anybody be so kind to show me the right direction? As I read the (literally) hundreds of messages posted on this topic, I see this info as widely useful. Most of the topic tracks ends on void or with painful no-way sentences, and maybe many people is avoiding Java technology on web application because of this problem (development delays can abort a project).

    This sample chapter in Java developers' guide to Servlets and Jsp focuses on Applet-Servlet communication, is a pretty good one, and is free :
    http://www.javaranch.com/bunkhouse/samps/2809ch12.pdf
    As to an exhaustive & complete guide that covers absolutely everything, I may be wrong but I doubt you'll find anything like that...unless there is a book somewhere dedicated to the subject.

  • Applet-servlet communication, object serialization, problem

    hi,
    I encountered a problem with tomcat 5.5. Grazing the whole web i didn't find any solution (some guys are having the same problem but they also got no useful hint up to now). The problem is as follows:
    I try to build an applet-servlet communication using serialized objects. In my test scenario i write a serialized standard java object (e.g. a String object) onto the ObjectOutputStream of the applet/test-application (it doesn't matters wheter to use the first or the latter one for test cases) and the doPost method of the servlet reads the object from the ObjectInputStream. That works fine. But if i use customized objects (which should also work fine) the same code produces an classnotfound exception. When i try to read and cast the object:
    TestMessage e = (TestMessage)objin.readObject();
    java.lang.ClassNotFoundException: TestMessage
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    ...That seems strange to me, because if i instantiate an object of the same customized class (TestMessage) in the servlet code, the webappclassloader doesn't have any problems loading and handling the class and the code works fine!
    The class is located in the web-inf/classes directory of the application. I've already tried to put the class (with and without the package structure) into the common/classes and server/classes directory, but the exception stays the same (I've also tried to build a jar and put it in the appropriate lib directories).
    I've also tried to catch a Throwable object in order to get information on the cause. But i get a "null" value (the docu says, that this will may be caused by an unknown error).
    I've also inspected the log files intensively. But they gave me no hint. Until now I've spend a lot of time on searching and messing around but i always get this classnotfound exception.
    I hope this is the right place to post this problem and i hope that there is anyone out there who can give me some hint on solving this problem.
    Kindly regards,
    Daniel

    hi, thanks for the reply,
    all my classes are in the web-inf/classes of the web-app and have an appropriate package structure. thus the TestMessage class is inside a package.
    i tried some names for the testclass but it didn't matter. the exception stays the same. I also tried to put the jar in the common/lib but the problem stays.
    Well the problem with loaded classes: As i mentioned in the post above i can instantiate an object of TestMessage in the code without any problems (so the classloader of my webapp should know the class!!)
    only when reading from the objectinputstream the classloader doesn't seem to know the class?? maybe theres a parent classloader resposible for that and doesn't know the class?
    strange behaviour...
    p.s. sending the same object from the servlet to the client works well
    regards
    daniel
    Message was edited by:
    theazazel

  • Applet/servlet communication for byte transmission

    Hello all !
    I wrote an applet to transfer binary file from web servlet (running under Tomcat 5.5) to a client (it's a signed applet) but I have a problem of interpretation of byte during transmission.
    the code of the servlet is :
            response.setContentType("application/octet-stream");
            ServletOutputStream sos = response.getOutputStream();
            FileInputStream fis = new FileInputStream(new File(
                    "C:\\WINDOWS\\system32\\setup.bmp"));
            byte[] b = new byte[1024];
            int nbRead = 1;
            while (nbRead > 0) {
                nbRead = fis.read(b);
                System.out.println("octets lus = " + nbRead);
                sos.write(b, 0, nbRead-1);
            fis.close();
            sos.close();et le code de l'applet qui appelle cette servlet est :
            URL selicPortal = null;
            try {
                selicPortal = new URL(
                        "http://localhost:8080/AppletTest/servlet/FileManipulation");
            } catch (MalformedURLException e) {
                e.printStackTrace();
            URLConnection selicConnection = null;
            try {
                selicConnection = selicPortal.openConnection();
            } catch (IOException e) {
                e.printStackTrace();
            selicConnection.setDoInput(true);
            selicConnection.setDoOutput(true);
            selicConnection.setUseCaches(false);
            selicConnection.setRequestProperty("Content-Type",
                    "application/octet-stream");
            try {
                InputStream in = selicConnection.getInputStream();
                FileOutputStream fos = new FileOutputStream(new File(tempDir
                        + "\\toto.bmp"));
                byte[] b = new byte[1024];
                int nbRead = in.read(b);
                while (nbRead > 0) {
                    fos.write(b);
                in.close();
                fos.close();
             } catch (IOException ioe) {
                ioe.printStackTrace();
            }the file dowloaded is broken. it seems that bytes 01 00 or 00 01 are not correctly process.
    Some ideas to help me please ?

    hi,
    have you solved this issue.. please post me the code since i m also doing the applet/servlet communication and can use your code as reference.
    how to read the content placed in the urlConnection stream in the servlet
    Below is my code in applet
    public void upload(byte[] imageByte)
              URL uploadURL=null;
              try
                   uploadURL=new URL("<url>");
                   URLConnection urlConnection=uploadURL.openConnection();
                   urlConnection.setDoInput(true);
                   urlConnection.setDoOutput(true);
                   urlConnection.setUseCaches(false);
                   urlConnection.setRequestProperty("Content-type","application/octet-stream");
                   urlConnection.setRequestProperty("Content-length",""+imageByte.length);
                   OutputStream outStream=urlConnection.getOutputStream();
                   outStream.write(imageByte);
                   outStream.close();
              catch(MalformedURLException ex)
              catch(IOException ex)
    How can i read the byte sent on the outstream (in above code) in the servlet.
    Thanks,
    Mclaren

  • Asynchronous applet-servlet communication

    Hi all,
    I am trying to implement asynchronous applet-servlet communication and need your help. Anything would help(I tried with synchronous applet-servlet communication but doesn't solve my problem).
    Thanks,

    http://java.sun.com/docs/books/tutorial/networking/index.html
    You can open a socket connection. Bother the client and the server
    can have separate threads for reading and writing and that you gives you
    asynchronous communication. Later, if you think the server is generating
    too many threads and not scaling, you can use features of .java.nio to
    make it more scalable:
    java.nio.channels

  • Urgent: Regarding Join Syntax in Oracle 9i and 10g

    Dear Members
    Please help me by providing me the synatx of following Join statements for Oracle 9i and 10g:
    1.Inner Join
    2.Left Outer Join
    3.Right Outer Join
    4.Self Join
    5.Cross Join
    6.Full Outer Join
    N.B. I NEED THIS HELP URGENTLY
    Regards
    Praveen Kumar Pandey

    Inner join
    SELECT *
      FROM a,
           b
    WHERE a.<<column>> = b.<<column>>Left Outer Join
    SELECT *
      FROM a LEFT OUTER JOIN b
             ON a.<<column>> = b.<<column>>Right Outer Join
    SELECT *
      FROM a RIGHT OUTER JOIN b
             ON a.<<column>> = b.<<column>>Full Outer Join
    SELECT *
      FROM a FULL OUTER JOIN b
             ON a.<<column>> = b.<<column>>Self Join
    SELECT *
      FROM a a1,
           a a2
    WHERE a1.<<column>> = a2.<<column>>Cartesian Join
    SELECT *
      FROM a,
           bJustin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Applet/Servlet communication - StreamCorruptedException

    Hi, I'm having a problem when I try to connect to a servlet. I am using applet/servlet communication. The problem only occurs when I have lauched a crystal report via http in a new window.
    After the report is launched if I try to hit my servlet I get the following error:
    java.io.CorruptedStreamException: invalid stream header
    Not all crystal reports I launch cause this behavior but I can see nothing in the url I use to launch the report that is out of place or different than other reports.
    APPLET-SERVLET CONNECTION
    try {
    StringBuffer path = new StringBuffer();
    path.append(ip);
    path.append("servlet/DatabaseServlet?");
    path.append("option=getRecords&query=").append(URLEncoder.encode(query,"UTF-8"));
    URL url = new URL(path.toString());
    URLConnection servletConnection = url.openConnection();
    servletConnection.setUseCaches(false);
    servletConnection.setDoInput(true);
    servletConnection.setDoOutput(true);
    servletConnection.setRequestProperty("Content-Type", "application/x-java-serialized-object");
    ObjectInputStream inputFromServlet = new ObjectInputStream(servletConnection.getInputStream());
    rc = (RecordCollection) inputFromServlet.readObject();
    inputFromServlet.close();
    } catch (Exception e) {
    e.printStackTrace();
    SERVLET CODE
    Forwards to doPost
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    System.out.println("session id: " + request.getSession().getId());
    this.doPost(request, response);
    LAUNCHING REPORT FROM APPLET
    try {
    String launchURL = host + directory + report + "?promptOnRefresh=0"+ "&" +
    authentication + "&" + key + "&" + startPeriods + "&" + reportYears + "&" + reportTitle + "&" endPeriods "&" + locations + "&" + reportPeriod + "&" + fiscalWeek + "&" + fiscalYear + "&" +time;
    context.showDocument(new URL(launchURL), "_blank");
    } catch (Exception ex) {
    ex.printStackTrace();
    SAMPLE URL THAT CAUSES PROBLEM
    http://localhost:113/Reports/OpenToBuy_3.class?promptOnRefresh=0&user0=rpuser&password0=er34sw1&[email protected]=rpuser&[email protected]=er34sw1&user0@sub2=rpuser&[email protected]=er34sw1&promptex-key="L","L1","ALL"&promptex-start="1"&promptex-years="2004","2004"&promptex-title="Report Title"&promptex-end="1"&promptex-locs="01","03","04","05"&promptex-period="Feb 2004 [04-01]"&promptex-cw="1"&promptex-cy="2004"&promptex-time=-2-52728"
    Everything works fine until I launch this report then I can no longer get data from my servlet. I thought the URL lenght for the report might be the problem but I lauch a report with a URL longer than the problem one and there I don't get the errors after. When I try to connect to the servlet the println statement in the doGet method of my servlet doesn't get printed so it's not even making it inside that method in the servlet.
    Anyone have any idea what could be causing this? Anyone have any ideas what would be causing this? I'm really stumped.

    I've seen this problem before. Because your accessing a complete URL (ie http://<host>:<port>/xxx), you are actually creating a new session. Whenever the applet opens a connection to a servlet it is running on it's own session not the same as the JSP. This is rather obvious since the Page and Applet are separate entities.
    Try sending authentication with the url. I think the syntax is:
    username:password@http://localhost/xxx
    However I'm not sure how well this might work for Tomcat. As for Java it may try and throw a MalformedURLException I would have to test it first - it's been a long time since I used this technique!
    Wish I could be more help,
    Anthony

  • Urgent regarding credit limit

    Hi Gurus
    I have a issue regarding credit limit:
    for a customer "ABC" i have maintained a credit limit for 1000/- in FD32 now when we create a sales order of more than 1000/- for the same customer a popup MSg is comming saying amount has exeeded ...so far so good
    my issue is that the requirements should not pass to MD04 (Stock/Requirement List)
    some of the SAP gurus giving the answer  check out OVB8 and see the requirement 101, i want to know the functionality of requirement "101" and how to go about the issue ..... issue is very urgent
    Regards
    Rajesh

    HI RAJESH
              This can be  done through  go to IMG--> S&D->Basic functions>Availabililty check&transfer of requirements>Transfer of requirements-->block quantity confirmation for delivery blocks. Here u give blocking reason as credit limit,,,,,, Here u find  confirmation block,here u make tick  and save . Here the reason is that even the order is saved,requirements will not be passed to MRP     i.e requirements will not be passed to stock requirement list.
                        Award points if it is helpful for u
                       Regards
                       Prasad.G

  • Applet javascript communication

    hi all,
    I want my applet to flash the browser window, came to know that can be done
    using applet javascript communication.
    ne1 has ne idea how to do that.
    thx in adv,
    kiran

    ???

  • Applet, Application communication

    Hi
    Someone tell me how to do applet, application communication.
    I have one standalone application, running in server and receiving connection from applets and every min. the server has to send some data back to each apllet connected.
    How to do it... any sample or reffernces please..
    Thanks in advance
    Tomy

    Can you give me example codes using RMI / Socket
    thanks

  • Applet Servlet communication (urgent)

    Hi,
    I m using Netscape Enterrpise server 4.0 as my web server. I am passing data from applet to servlet using BufferedInputStream(). But it takes about 30 seconds to send the data. If i don't use it, the data is not being read by the servlet. Is there any alternative to this ? Please help.
    Thanks

    It's only the primary key field that i am passing to the servlet from applet .. For this particular process, it takes 30 seconds + other things like loading the applet, etc. so in all, it takes about 1 minute just to fetch the data from servlet which is not reasonable. We have monitored the whole process. We found that other things like query, etc. does not take much time, but BufferedInputStream() itself takes 30 seconds. Regarding communication line, it is quite fast. We are a corporate sector, so no doubt about the speed of the communication line ...
    Thanks for help.

  • Need urgent help on Applet-Servlet communication

    Hi,
    I have a applet having two button A and B. A passes querystring "Select name from test where letter = A" when button A is pressed while B passes querystring "Select name from test where letter = B" when button B is pressed. The applet passes the string to a servlet which in turn queries a database to get the output name back to the applet. Both compiles fine but while running I am getting the following error:
    java.io.IOException:
    Any help is appreciated in advance. Thanks. Regards
    THE APPLET CODE:
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    public class ReinApplet1 extends Applet implements ActionListener
    TextField text;
    Button button1;
    Button button2;
    TextArea taResults;
    String qryString1;
    public void init()
    button1 = new Button("A");
    button1.addActionListener(this);
    add(button1);
    button2 = new Button("B");
    button2.addActionListener(this);
    add(button2);
    taResults = new TextArea(2,30);
    add(taResults);
    // text = new TextField(20);
    // add(text);
    public void actionPerformed(ActionEvent e)
    Object obj = e.getSource();
    if(obj == button1)
    String qryString = "select name from test where letter = A";
    executeQuery (qryString);
    if(obj == button2)
    String qryString = "select name from test where letter = B";
    executeQuery (qryString);
    public void executeQuery (String query)
    String qryString1 = query;
    try
    URL url=new URL("http://localhost:8080/examples/servlet/ReinServlet1");
    String qry=URLEncoder.encode("qry") + "=" +
    URLEncoder.encode(qryString1);
    URLConnection uc=url.openConnection();
    uc.setDoOutput(true);
    uc.setDoInput(true);
    uc.setUseCaches(false);
    uc.setRequestProperty("Content-type",
    "application/x-www-form-urlencoded");
    DataOutputStream dos=new DataOutputStream(uc.getOutputStream());
    dos.writeBytes(qry);
    dos.flush();
    dos.close();
    InputStreamReader in=new InputStreamReader(uc.getInputStream());
    int chr=in.read();
    while(chr != -1)
    taResults.append(String.valueOf((char) chr));
    chr = in.read();
    in.close();
    // br.close();
    catch(MalformedURLException e)
    taResults.setText(e.toString());
    catch(IOException e)
    taResults.setText(e.toString());
    THE SERVLET CODE:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    import java.io.*;
    public class ReinServlet1 extends HttpServlet
    Connection dbCon;
    public void init() throws ServletException
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    dbCon=DriverManager.getConnection("jdbc:odbc:Sales");
    catch(Exception e)
    System.out.println("Database Connection failed");
    System.out.println(e.toString());
    return;
    public void handleHttpRequest(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
    PrintWriter out = res.getWriter();
    res.setContentType("text/html");
    String qery=req.getParameter("qry");
    try
    Statement st=dbCon.createStatement();
    ResultSet rs= st.executeQuery(qery);
    while(rs.next())
    out.println(rs.getString(1));
    catch(SQLException e)
    System.out.println(e.toString());
    return;
    out.println();
    out.close();
    THE HTML CODE
    <html>
    <applet code = ReinApplet1.class width=500 height=300>
    </applet>
    </html>

    Since you are just using Strings, it's easier to use an ObjectOutput/InputStream. See http://forum.java.sun.com/thread.jsp?forum=33&thread=205887 for a detailed example.
    Cheers,
    Anthony

  • URGENT!!! Applet Servlet communication strange problem

    Hi All,
    I'm working on a simple applet that load an image from a servlet and let an user able to draw or write text.
    When done the user can save the image back to the server so applet builds a pixels array using pixelGrabber and then serialize and send the array to a servlet in POST.
    In developing phase I used appletviewer to check and debug the applet, and all works fine.
    Then I start to debug on Internet Explorer 6 and the image saving doesn't work.
    While debugging I saw that all request's parameters from applet to servlet are null.
    How is it possible?
    I checked all types of permission issues at the browser side and applet security manager side but didn't find a solution.
    Can some one help me Please!???
    This is my connection source code at applet side:
    public InputStream getStreamInPostForUrl(URL p_url, String p_form)
              DataInputStream in = null;
              DataOutputStream out = null;
              try
                        conn = (HttpURLConnection)p_url.openConnection();
                        conn.setRequestMethod("POST");
                        conn.setDoInput (true);
                        conn.setDoOutput (true);
                        conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
                        conn.setUseCaches(false);
                        conn.setDefaultUseCaches(false);
                        if(sessionId != null)
                             conn.setRequestProperty("Cookie", sessionId);
                             System.out.println("SessionId usato per la richiesta: " + sessionId);
                        //     Setta il sessionId alla sessione appena aperta se non era stato gi? assegnato in precedenza
                        if(sessionId == null)
                             String cookieVal = conn.getHeaderField("Set-Cookie");
                                  if(cookieVal != null)
                                            sessionId = cookieVal.substring(0, cookieVal.indexOf(";"));
                                            System.out.println("SessionID: " + sessionId);
                        System.out.println("Aperta la connessione!");
                        out = new DataOutputStream(conn.getOutputStream());
                        out.writeBytes(p_form);
                        out.flush();
                        out.close();
                        in = new DataInputStream(conn.getInputStream());
                        conn.getResponseMessage();
                        conn.disconnect();
    p_form contains the post form with a lot of parameters hence the serialized image urlencoded.
    Servlet side simply get parameters from request and handle.
    Thanks in advance!

    Hi,
    I solved this strange case and I think that wath I found could be usefull for someone else.
    I'm not very sure but if an applet is runnig on a page contained in an IFRAME of Internet Explore 6.0 SP1 http comms are limited.
    In detail evry http request made in "post" is not handled correctly and attributes of the http-form are all null.
    I tested my jsp page in wich my applet run replacing all dynamic parameter with static ones hence converting the jsp page in to an html one without IFRAMEs.
    The result was that my applet work correctly as it works running with appletviewer.
    Bye!

Maybe you are looking for

  • Cannot connect via cable on Windows XP home SP2

    Good Afternoon, Maybe you can assist me here. I cannot connect via cable my N91 (4 gb hdd) to Windows XP Home SP2. I can however connect via cable to my work computer which has the OS Windows XP Pro sp2. In both cases both OS's are up to date, I have

  • Acrobat X - Does it have a typewriter mode? How do you get at it?

    I would like to know if Acrobat X has a typewriter mode as does Acrobat 9 Pro. Can someone take me through the steps of using the typewriter mode if there is one. Thanks.

  • Embed video into iweb page

    Is there any way to embed video into my iWeb page without making an external HTML file? Thanks.

  • Urgent help pls

    hi., we have 11.5.10.2 instance on solaries 10( 64 bit) WHEN WE RAISE REQUISITION -PO modules it is not saving system is hanging.

  • Service-Type and 12.3 at AS5350

    Hi! After migrating from 12.2(XB15) to 12.3.13 Service-Type changed from Voice to Login in acct/auth requests in the TCL IVR script. This behaviour destroy my billing system. I can't change billing system, and only can add second RADIUS for proxy/rew