Passing object between dialogs. please help

I have a panel which displays student's info.
There is a button called "Create New Student"
When the button is clicked, a new Dialog will shows up, where users can enter basic info for new student.
My question is, after a user finish entering data for new student, a new Student Object will be created.
How do I pass this Student Object back to original frame?
The basic question would be how do I pass object from a Dialog to its' caller Panel.
Thanks

Put your Student object in global scope or in sucha
scope that both the dialog boxes can access it!
That is not a good idea. I think there is some misunderstanding here.
Putting Student object at global scope has nothing to
do with encapsulation. Furthermore, it is a
requirement! In OP's main panel he/she needs
reference to Student object. In Student
creation dialog, we need to create a new
Student. These two requirements necessitate the
accesibility of Student class.Yes, they both need to see the class. But it would be a bad idea to make the object that is in the main panel a global variable for the dialog to update.

Similar Messages

  • HT5577 I lost my Apple ID,icloud,pass and my email,please help ! thank !

    I lost my Apple ID,icloud,pass and my email,please help ! thank !

    I also got this email and had my phone "automatically" removed. But luckily I set up a extra mobile number as a trust device. You should also have a generated backup key saved somewhere?

  • Class Cast problem when attempting to add Object in TreeSet, Please Help...

    hi friends,
    I have a TreeSet Object in which i add Object of type WeatherReport but when I trying to add my Second WeatherReport Object it throwing ClassCastException please Help Me in figure out the mistake that i did...
    /*code sample of my WeatherReport.class*/
    package com;
    class WeatherReport implements Serializable
    private String region;
    private String desc;
    private String temp;
    /*equvalent getter and setters come here*/
    /*in my jsp*/
    <%@ page import="com.WeatherReport"%>
    <%
    TreeSet<com.WeatherReport> ts=new TreeSet<com.WeatherReport>();
    while(condition)
    WeatherReport wp=new WeatherReport();
    /*setting data for all the Methods*/
    ts.add(wp);
    %>
    Error:
    java.lang.ClassCastException: com.WeatherReport
            at java.util.TreeMap.compare(TreeMap.java:1093)
            at java.util.TreeMap.put(TreeMap.java:465)
            at java.util.TreeSet.add(TreeSet.java:210)
            at org.apache.jsp.Weather_jsp._jspService(Weather_jsp.java:138)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
            at java.lang.Thread.run(Thread.java:595)Edited by: rajaram on Oct 31, 2007 12:56 AM

    hi ChuckBing,
    Thank you very much, your suggestion helps me a lot...
    I change the WeatherReport Class as follows and its working now...
    public class WeatherReport implements Serializable,Comparable {
        private String location;
        private String temp;
        private String desc;
        public int compareTo(Object o) {
            if(o instanceof WeatherReport)
                WeatherReport wp=(WeatherReport)o;
                String l1=wp.getLocation();
                String l2=this.getLocation();
                return l2.compareTo(l1);
            return -1;
    }Once Again Thanks a lot ...
    Edited by: rajaram on Oct 31, 2007 9:11 PM

  • Sending object over socket - please help (urgent)

    I have written a server/client application where server sends object to client.
    But on the client I've received the first message "@Line 1: Get ready!!!" TWICE but NEVER the second message "@Line 2: Please input Start".
    Please help me! Its urgent! I appreciate my much in advance.
    The source for Server:
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import sendNode;
    public class TestSer {
         static sendNode sendNodeObj = new sendNode();
    static String inputLine;
         public static void main(String[] args) throws IOException {
    ServerSocket serverSocket = null;
    try {
    serverSocket = new ServerSocket(4444);
    } catch (IOException e) {
    System.err.println("Could not listen on port: 4444.");
    System.exit(1);
    Socket clientSocket = null;
    try {
    clientSocket = serverSocket.accept();
    } catch (IOException e) {
    System.err.println("Accept failed.");
    System.exit(1);
    OutputStream o = clientSocket.getOutputStream();
    ObjectOutput out=new ObjectOutputStream(o);
    BufferedReader in = new BufferedReader(
                        new InputStreamReader(
                        clientSocket.getInputStream()));
    sendNodeObj.sendMsg="@Line 1: Get ready!!!";
    sendNodeObj.typeNode=-1;
    out.writeObject(sendNodeObj);
    out.flush();
    sendNodeObj.sendMsg="@Line 2: Please input Start";
    sendNodeObj.typeNode=-2;
    out.writeObject(sendNodeObj);
    out.flush();
    inputLine = in.readLine();
    while (!inputLine.equalsIgnoreCase("Start")) {
         sendNodeObj.sendMsg="@Error, Please input Start";
    sendNodeObj.typeNode=-1;
    out.writeObject(sendNodeObj);
    out.flush();
    inputLine = in.readLine();
    out.close();
    in.close();
    clientSocket.close();
    serverSocket.close();
    The source code for Client :
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.applet.Applet;
    import sendNode;
    public class TestCli extends Applet {
    static sendNode recNodeObj=null;
    public static void main(String[] args) throws IOException {
    BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
    Socket kkSocket = null;
    PrintWriter out = null;
    try {
    kkSocket = new Socket("127.0.0.1", 4444);
    out = new PrintWriter(kkSocket.getOutputStream(), true);
    } catch (UnknownHostException e) {
    System.err.println("Don't know about host.");
    System.exit(1);
    } catch (IOException e) {
    System.err.println("Couldn't get I/O for the connection to: taranis.");
    System.exit(1);
    InputStream i= kkSocket.getInputStream();
    ObjectInput in= new ObjectInputStream(i);
    try {
         recNodeObj = (sendNode)in.readObject();
    System.out.println(recNodeObj.sendMsg);
         recNodeObj = (sendNode)in.readObject();
    System.out.println(recNodeObj.sendMsg);
    if (recNodeObj.sendMsg.equalsIgnoreCase("@Line 2: Please input Start")) {
    out.println("Start");
    } catch (Exception e) {
    System.out.println(e.getMessage());
    System.out.println("receive error.");
    System.exit(1);
    out.close();
    in.close();
    stdIn.close();
    kkSocket.close();
    The object to be sent:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    class sendNode implements Serializable {
    String sendMsg;
    int typeNode; // -1 no ObjectNode;
    // 1 right node, 2 base node, 3 left node;
    Object objectNode;

    You forgot to reset the OOS. ObjetOutputStream keeps a buffer of objects, so if you write the same object again with changes on it, you must reset the buffer.
    out.writeObject(sendNodeObj);
    out.flush();
    out.reset();

  • HOW TO CREATE AUTHORISATION OBJECT IN ABAP PLEASE HELP

    HOW TO CREATE AUTHORISATION OBJECT IN ABAP PLEASE HELP

    You can Use Transaction code: RSSM
    Check the following link
    http://www.sap-img.com/bc042.htm
    In SU20 you will have to create a CLass.
    After saving this double click this and you will taken to another screen where you can create Auth Object.
    You can create authorization fields in SU21 or use existing ones.
    You can also do above thru tcode SE80 Edit -> Other Object. In one the tabs you will see Auth. Objects .

  • Can't get passed this install problem - Please help Adobe.

    I've downloaded the TRIAL version of PRODUCTION PREMIUM CS6. Once running / installed and tested it I will purchase it.
    But cannot get past this ERROR problem.
    Here is my install ERROR log ADOBE..  Please help.
    URGENT.
    Exit Code: 6
    Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DF027, DW063 ...
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 4 error(s), 0 warning(s)
    ----------- Payload: {9124DF4E-617D-486B-A970-8FA632244F24} Adobe Photoshop CS6 Core 13.0.0.0 -----------
    ERROR: DF027: Unable to copy file from "/private/tmp/.tempdir6Qpuljrb/Assets1/Application/Adobe Photoshop CS6.app/Contents/Resources/PS_LevelsIcon.icns" to "/Applications/Adobe Photoshop CS6/Adobe Photoshop CS6.app/Contents/Resources/PS_LevelsIcon.icns" (Seq 1205)
    ERROR: DW063: Command ARKCopyFileCommand failed.(Seq 1205)
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Adobe Photoshop CS6 English Language Pack_AdobePhotoshop13-en_US: Install failed
    ERROR: DW050:  - Adobe Photoshop CS6 Core: Failed due to Language Pack installation failure

    You can try resolving your issue using following document :
    http://helpx.adobe.com/creative-suite/kb/error-exit-6-exit-7.html
    and
    http://helpx.adobe.com/creative-suite/kb/error-unable-copy-file-tmp.html
    Regards,
    Sharath Holla.

  • AP Express wont share connection between computers PLEASE HELP!

    I have a powerbook G4 connected to a wireless network I have created. I can connect to the internet wirelessly through the airport, but when other other computers try to join they are brought to the sign in page of my ISP. Previously, I had the airport set up so as long as one computer had signed into my ISP all the other computers could share this connection. How do I change the settings on my airport to get this working again? Basically, it seems like all the computers can join the network no problem, but since my ISP only allows one user to log in at once only one computer can access the internet and the other computers are stuck on the sign in page. Ive tried changing the settings in the airport utility to distribute ISP addresses, but when I restart the airport none of the computers will connect to the internet. Can someone please help???

    Ive tried
    changing the settings in the airport utility to
    distribute ISP addresses, but when I restart the
    airport none of the computers will connect to the
    internet.
    You need to have the Airport distribute IP addresses via NAT sharing the single address which your ISP gives you. As this is not configured then you will experience the sign in page problem you are having.
    Configure the Airport to distribute IP addresses, restart.
    Once it has restarted, see if a computer can connect to the internet.
    If not in a browser try http://17.254.0.91
    and report back.
    iFelix

  • Passing values between forms!  Help please!!!!

    I'm stuck. I don't know how to pass a value from one form to the other, and automate a task. For example, I created form1 and from that form1 I want to pass a value to form2...then I want in form2 to query the form2 so it will bring up the complete record of the new value.
    I thought if i used javascript code below it would work but I kept getting that some variable were undifined
    Form_name.Name_of_input_box.value
    that would give me the value of the inputbox. But when i tried doing this...my Form_name was undefined? How do i get the actual name of the form?(i looked that source code when the form was generated but the form name it provides is incorrect or im reading it wrong)
    Please any help or comments are greatly appreciated

    I worked out an example for you:
    Form1 is a form on scott.dept
    Form2 is a form on scott.emp
    When you enter a value for deptno and click on next, it brings up Form2 with the values.
    Follow these steps:
    1. Create a new button in Form1. Call it NEXT.
    2. Select 'Custom' for the PL/SQL button event handler and enter this code:
    declare
    l_deptno number;
    l_url varchar2(2000);
    begin
    l_deptno := p_session.get_value_as_number(p_block_name=>'DEFAULT', p_attribute_name => 'A_DEPTNO');
    l_url := '<portal_schema>.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=<module_id of form2>&p_arg_names=deptno&p_arg_values='||l_deptno||'&p_arg_names=_deptno_cond&p_arg_values='||<portal_schema>.wwv_standard_util.url_encode('=');
    <portal_schema>.wwa_app_module.set_target(l_url, 'CALL');
    end;
    Thats it!!
    Run the form, enter some value for deptno and click "next".
    You'll see the first employee in the dept 10 in Form2

  • How to pass objects between servlet services

    I wanted to pass an object from one service to another service and that object must be visible only for these two services. I don't want to use session.setAttribute or session.getAttribute to do this. When I use request.setAttribute and request.getAttribute methods not helping me to do this. Is there a way to do this?
    Between, how these request.setAttribute and request.getAttribute methods useful?
    regds
    -raju

    Actually, I set attribute in one of the service
    methods. Within that service method a form will be
    there. After pressing submit button in that form, the
    other service will be called. Does it mean that both
    the services are not in the same request scope, even
    if they are in the same servlet?They are on different request scopes. Each time the user clicks a link, they make a request to the server. The server processes the request creates a response and send that response back to the client. Once the response it sent (and finished being sent) the request is done with, and anything is request scope goes out of scope. When the user clicks the submit button, a NEW request (and request scope) is made to handle that ...
    Your best bet is to use a session here. It is the easiest way to maintain state between requests. That is what the session is designed for.

  • Passing Objects Between Web Applications

    Hello, I have a question in which I have posted in several different forums. I'm hoping that someone may be able to help me with this.
    I have a JSP "application" in which I several WAR files that contain different portions of the application. The logic is in place that each application is in separate WAR file for SCM. For the purpose of getting help, I will only concentrate on two different WAR files and a JAR file, which is located in the <TOMCAT_HOME>/lib directory.
    The JAR file contains a couple of classes which hold generic information that is used between all of the different subapplications.
    ASD.war: contains a couple of files for the master application that links different sub-applications that a user has access to. This WAR file is what is initially loading the JAR file with the information.
    * Login.html: Prompts user for username/password and forwards to login.jsp
    * Login.jsp: verifies that above is a valid database user and loads the JAR's class with relevent information and if so, loads up contents.jsp
    * Contents.jsp: shows a list of applications that the user has access to. It contains hyperlinks to different applications (WAR files).
    SCR.war: contains an application that tries to use the loaded variables/values from the JAR file supplied/populated by the ASD.war application
    * SCR_Role.jsp: contains the different roles in which the logged in user has priviledges to. It tries to utilize the username/password that was populated in the Login.jsp (ASD.war).
    The problem, of course, is that the reference to the JAR class doesn't exist for the SCR application. I have tried this with using static variables, which works. But of course this is not wise or pratical for a multi-user use of the application(s).
    Can anyone suggest things that I may try. Right now, I'm getting near to suppling an addition database table that will temporarily be populated with the username/password so that the sub-application can load and remove the record. This would work; I don't want these values being passed repeatedly throughout the life of the session, I would like to pass the reference to the object. By making the table, I would still run into problems whereas I want to pass non-string values to another application.
    Thanks for any help that you can provide.
    Jim

    I think that I may have found a solution... There might be a better way, and maybe this will be able to get someone else thinking about something related...
    Ok, I have my jar file which contains now loginInfo & a new staticLoginInfo. My loginInfo contains all of the instance variables; whereas the staticLoginInfo contains static references to the instance class.
    ASD.jar - staticLoginInfo.java:
    private static Vector reference = new Vector();
    public static int setUp(loginInfo login)
    int seq = reference.size();
    reference.add(seq,login);
    return (seq)
    public static loginInfo getLogin(String seq)
    return ((loginInfo)(reference.get(Integer.parseInt(seq))));
    Now I have a war file that contains contents.jsp which contains links to the different applications that the logged in user has access to.
    ASD.war - contents.jsp:
    seq = staticLoginInfo.setUp(login);
    <a href="/SCR/SCR_Role.jsp?seq=<%=seq%>">...
    Now my SCR.war file contains SCR_Role.jsp that shows different "roles" that that person has within the application...
    SCR.war - SCR_Role.jsp:
    loginInfo tLogin = (loginInfo)staticLoginInfo.getLogin((String)request.getParameter("seq"));
    login.setUsername(tLogin.getUsername());
    login.setPassword(tLogin.getPassword());
    login.setDatabase(tLogin.getDatabase());
    Believe it or not, this works. I thought that I would be able to just put login = (loginInfo)staticLoginInfo..., and this works for each page that I put this in; but by setting a temporary variable (tLogin), it carries throughout the rest of the application...
    Thanks for all the help for those that tried...
    Jim
    </a>

  • I cannot upload photos from iPhoto 9 to Flikr. When I attempt to do so, I get the message "the login details or auth token passed were invalid." Please help.

    I cannot upload photos from iPhoto 9 to Flikr. When I try, I get the message "the login details or auth token passed were invalid."  I am using iPhoto 9 version 8.1.2, and my OS is 10.9.5. My computer is a MacBook Pro. I do not have this trouble with my iMac.  This trouble started before I updated to OS10.9.5.  I do not have this problem when uploading to FaceBook or sending by e-mail.
    This problem started when I tried to upload some photos after hitting the "use other account" tab. This took me to a Flikr site asking me for permission to make my iPhoto information available to others.  I clicked "yes," and then I changed my mind and clicked "no." I haven't been able to upload to Flikr since.
    I searched Flikr and Yahoo for a solution, and Yahoo says the trouble is in iPhoto.  I checked my Flikr account, and iPhoto extensions are enabled.
    I need to upload some school and alumni photos, so I sure could use some help. I am Not computer proficient.  Thank you.

    1. You did not get an error message telling you that your iPhoto library was getting full. You got a message telling you that your HD was getting full, right?
    OS X needs about 10 gigs of hard drive space for normal OS operations - things like virtual memory, temporary files and so on.
    Without this space your Mac will slow down as the OS hunts for space on the disk, files will be fragmented, also slowing things down, apps will crash and the risk of data corruption - that is damage to your files, photos, music - increases exponentially.
    Your first priority is to make more space on that HD. Nothing else can be done until you do.
    Purchase an external HD and move your Photos and Music to it. Both iPhoto and iTunes can run perfectly well with the Library on an external disk.
    Your Library has been damaged from being run on an overfull disk.
    How much free space on it now?

  • How to parse XML to Java object... please help really stuck

    Thank you for reading this email...
    If I have a **DTD** like:
    <!ELEMENT person (name, age)>
    <!ATTLIST person
         id ID #REQUIRED
    >
    <!ELEMENT name ((family, given) | (given, family))>
    <!ELEMENT age (#PCDATA)>
    <!ELEMENT family (#PCDATA)>
    <!ELEMENT given (#PCDATA)>
    the **XML** like:
    <person id="a1">
    <name>
         <family> Yoshi </family>
         <given> Samurai </given>
    </name>
    <age> 21 </age>
    </person>
    **** Could you help me to write a simple parser to parse my DTD and XML to Java object, and how can I use those objects... sorry if the problem is too basic, I am a beginner and very stuck... I am very confuse with SAXParserFactory, SAXParser, ParserAdapter and DOM has its own Factory and Parser, so confuse...
    Thank you for your help, Yo

    Hi, Yo,
    Thank you very much for your help. And I Wish you are there...I'm. And I plan to stay - It's sunny and warm here in Honolulu and the waves are up :)
    A bit more question for dear people:
    In the notes, it's mainly focus on JAXB,
    1. Is that mean JAXB is most popular parser for
    parsing XML into Java object? With me, definitely. There are essentially 3 technologies that allow you to parse XML documents:
    1) "Callbacks" (e.g. SAX in JAXP): You write a class that overrides 3 methods that will be called i) whenever the parser encounters a start tag, ii) an end tag, or iii) PCDATA. Drawback: You have to figure out where the heck in the document hierarchy you are when such a callback happens, because the same method is called on EACH start tag and similarly for the end tag and the PCDATA. You have to create the objects and put them into your own data structure - it's very tedious, but you have complete control. (Well, more or less.)
    2) "Tree" (e.g. DOM in JAXP, or it's better cousin JDOM): You call a parser that in one swoop creates an entire hierarchy that corresponds to the XML document. You don't get called on each tag as with SAX, you just get the root of the resulting tree. Drawback: All the nodes in the tree have the same type! You probably want to know which tags are in the document, don't you? Well, you'll have to traverse the tree and ask each node: What tag do you represent? And what are your attributes? (You get only strings in response even though your attributes often represent numbers.) Unless you want to display the tree - that's a nice application, you can do it as a tree model for JTree -, or otherwise don't care about the individual tags, DOM is not of much help, because you have to keep track where in the tree you are while you traverse it.
    3) Enter JAXB (or Castor, or ...): You give it a grammar of the XML documents you want to parse, or "unmarshall" as the fashion dictates to call it. (Actually the name isn't that bad, because "parsing" focuses on the input text while "unmarshalling" focuses on the objects you get, even though I'd reason that it should be marshalling that converts into objects and unmarshalling that converts objects to something else, and not vice versa but that's just my opinion.) The JAXB compiler creates a bunch of source files each with one (or now more) class(es) (and now interfaces) that correspond to the elements/tags of your grammar. (Now "compiler" is a true jevel of a misnomer, try to explain to students that after they run the "compiler", they still need to compile the sources the "compiler" generated with the real Java compiler!). Ok, you've got these sources compiled. Now you call one single method, unmarshall() and as a result you get the root node of the hierarchy that corresponds to the XML document. Sounds like DOM, but it's much better - the objects in the resulting tree don't have all the same type, but their type depends on the tag they represent. E.g if there is the tag <ball-game> then there will be an object of type myPackage.BallGame in your data structure. It gets better, if there is <score> inside <ball-game> and you have an object ballGame (of type BallGame) that you can simply call ballGame.getScore() and you get an object of type myPackage.Score. In other words, the child tags become properties of the parent object. Even better, the attributes become properties, too, so as far as your program is concerned there is no difference whether the property value was originally a tag or an attribute. On top of that, you can tell in your schema that the property has an int value - or another primitive type (that's like that in 1.0, in the early release you'll have to do it in the additional xjs file). So this is a very natural way to explore the data structure of the XML document. Of course there are drawbacks, but they are minor: daunting complexity and, as a consequence, very steep learning curve, documentation that leaves much to reader's phantasy - read trial and error - (the user's guide is too simplicistic and the examples too primitive, e.g. they don't even tell you how to make a schema where a tag has only attributes) and reference manual that has ~200 pages full of technicalities and you have to look with magnifying glas for the really usefull stuff, huge number of generated classes, some of which you may not need at all (and in 1.0 the number has doubled because each class has an accompanying interface), etc., etc. But overall, all that pales compared to the drastically improved efficiency of the programmer's efforts, i.e. your time. The time you'll spend learning the intricacies is well spent, you'll learn it once and then it will shorten your programming time all the time you use it. It's like C and Java, Java is order of magnitude more complex, but you'd probably never be sorry you gave up C.
    Of course the above essay leaves out lots and lots of detail, but I think that it touches the most important points.
    A word about JAXB 1.0 vs. Early Release (EA) version. If you have time, definitively learn 1.0, they are quite different and the main advantage is that the schema combines all the info that you had to formulate in the DTD and in the xjs file when using the EA version. I suggested EA was because you had a DTD already, but in retrospect, you better start from scratch with 1.0. The concepts in 1.0 are here to stay and once your surmounted the learning curve, you'll be glad that you don't have to switch concepts.
    When parser job is done,
    what kind of Java Object we will get? (String,
    InputStream or ...)See above, typically it's an object whose type is defined as a class (and interface in 1.0) within the sources that JABX generates. Or it can be a String or one of the primitive types - you tell the "compiler" in the schema (xjs file in EA) what you want!
    2. If we want to use JAXB, we have to contain a
    XJS-file? Something like:In EA, yes. In 1.0 no - it's all in the schema.
    I am very new to XML, is there any simpler way to get
    around them? It has already take me 4 days to find a
    simple parser which give it XML and DTD, then return
    to me Java objects ... I mean if that kind of parser
    exists....It'll take you probably magnitude longer that that to get really familiar with JAXB, but believe me it's worth it. You'll save countless days if not weeks once you'll start developing serious software with it. How long did it take you to learn Java and it's main APIs? You'll either invest the time learning how to use the software others have written, or you invest it writing it yourself. I'll take the former any time. But it's only my opinion...
    Jan

  • Pass Object Between Applet and JSP Page

    Hi all,
    How can I pass an Object(such as Vector, File), rather than just string to the Applet from a JSP page?
    Thank you.

    I used Base64Encoder and Base64Decoder from servlets.com utilities.
    * convert any serializable object to a String
    public synchronized static String objectToString(Serializable obj) throws Exception {
        ByteArrayOutputStream bos = new ByteArrayOutputStream(100);
        ObjectOutputStream oos = new ObjectOutputStream(bos);
        oos.writeObject(obj);
        byte[]bytes = bos.toByteArray();
        bos = new ByteArrayOutputStream(); //to save the encoded String
        Base64Encoder enc = new Base64Encoder(bos);
        enc.write(bytes);
        String encodedString = bos.toString();
        //close all
        enc.close();   
        oos.close();
        bos.close();
        return encodedString;
    * Recreates the object from the encoded String
    public synchronized static Object stringToObject(String str) throws Exception {
        ByteArrayInputStream bis = new ByteArrayInputStream(str.getBytes());
        Base64Decoder dec = new Base64Decoder(bis);
        ObjectInputStream ois = new ObjectInputStream(dec);
        Object obj = (Object)ois.readObject();
        ois.close();
        dec.close();
        bis.close();
        return obj;
    }

  • Air Drop and File Sharing Between Macs Please HELP

    I have a 2011 Mac Book Pro running Mavericks and a 2010 Mac Pro running mountain lion and I am having trouble air Dropping and file sharing between them.
    My MBP works fine. It can see other macs and share with them on my home network. My MP on the other hand cant see any other computers under the shared devices location in my finder. I have turned on file sharing for my MP as well as screen sharing. Neither works. My Mp used to be able to Air Drop and File share.
    When I try to Air Drop to my MP it wont receive the item.
    Has someone been through this before and know how to fix the issue? Ive been trying to research this for a while and haven't been able to find a solution.
    Any help would be great!
    Thanks

    Are you using a frieWall on individual Macs?
    If you are using a Router you control, individual computer FireWalls are not needed.

  • There are some space between paths, please help me to solve this

    Hello everyone, i've little question about paths. I get this problem everytime, i searched and didn't find answer.
    There are some space between two different colored paths. There is image below to show the problem more open.
    Thanks for helping.

    sscayir,
    It looks like the screen artifact/Anti-Aliasing issue so often discussed here.
    You may get rid of it by unticking Anti-Aliased Artwork in Edit>Preferences>General, and see more pixelation on screen, but you will probably find that the artifact remains at the same size when you zoom in and that it will not show in PDFs, print, and raster images created by exporting or Save for Web; and yet again, it may be a real issue.
    Which is it?

Maybe you are looking for

  • Error during deploying MDM 7.1 Sp02 bussiness packages in CE7.1 using JSPM

    Hello, I am facing error when i am trying to deploy following MDM sca file in CE7.1 using JSPM 1. BPMDMAPP02_115.sca 2. BPMDMTECH02_115.sca I have already deployed following SCA file into CE7.1 successfully. 3 .MDMJAVAAPI02_59.sca  (deployed success)

  • I'm attepmting to upgrade my Mother's iphone4 to the ios7.4

    and I can't get past the 'connect to iTunes' screen with the picture of the cable and music notes. I've reset the phone and done the 'restore' settings and still can't get past the 'connect to iTunes' screen. Can anyone help please??????

  • Can't burn QT Pro Movie

    Made slideshow in iphoto w/music from itunes. Works fine in QT Pro. When I drop movie into Toast, I get message "Not authorized" Please Help. imac intel   Mac OS X (10.4.9)   Desktop

  • The Comparing RAW with TS Time Lapse Recording file for MSI PANOCAM

    I am a big fan of MSI, I have been using its motherboard, MP3 and NB. MSI introduces a new IOT product in 2015, MSI PANOCAM, I feel excited about it, therefore I wanna share some experience of MSI PANOCAM here. Have you heard Time-Lapse, it is very p

  • Adding a Calendar Event

    When I am adding an event to my calendar and I go to enter the time it kicks me out of the calendar and sends me back to the main menu. If I accept the posted time I can go back and edit the time and date with no problem. Anyone else have this proble