Urgent!!!!a question about javabean....

hello all:
I set a javabean named mybean in request scope,and set it as valueRef of a form.
first : form is show data from mybean .
then : when user edit the form and submit to post,the edit data in form will update to javabean ,but can't not find javabean because the bean has been destroyed by system when show date from mybean in the end of first step.
how to solve this trouble... please...

That's because you've put the bean in the request scope : request object dies when servlet or JSP sends info back to the browser and closes the stream (ie : when page is shown in client browser).
An easy solution is to put the bean in session scope.

Similar Messages

  • A question about JavaBeans

    Ok, so I read the Tutorial on JavaBeans and the BeanBox. I even read a chapter in a book about them. I understand how to create beans, how to bind them to one another, etc. There's just one question I have left...
    What do they actually do?
    My book says they force you to program in a modular design. Huh? What does that mean? The book and site make them sound really cool, so if someone could clear this up for me, that'd be excellent.
    Thanks.

    The only thing that might make a
    class more or less of a bean compared to other classes
    is how much of the bean info I extract is really
    relevant to the state or properties of the bean I want
    to advertise.
    If I want to make a class a bean, I'd be thinking,
    "What state (properties) do I want a user of this
    class to be able to find out about?" If I have methods
    getName and getAge, then somebody who tries to use
    this object in a bean context will see its name and
    its age properties. If I want them to have a different
    view into the state of this object, I'll name my
    methods differently, or provide a BeanInfo class that
    explicitly provides this class' properties.Let me try to clarify that a bit.
    Every class descends from Object, and object has a public method getClass. So if I don't to anything special to my class, and don't add any getters or setters, somebody can decide to use it as a bean, use Introspector, and find that this object has a property named "class" whose value is "com.mycompany.MyClass".
    Now, if I look at my design--at the way I think of what this class is and does, separately from the fact that it happens to be Java I use to realize that design--I might determine that it is or is not appropriate, or consistent with the design goals, for objects of this class to expose a public property called "class." If I decide it's not appropriate, I'll create a BeanInfo class that mutes that property.
    Conversely, I might decide that I want a user of my class to view it as having a certain property, but I do or don't think it also makes sense to have a get method named for that property. I'd have a getter or an appropriate BeanInfo, but that would just be the means by which I make that property publicly available.
    The bean spec basically says: Users of a class, here's how you can find out about the class' properties. Implementors of a class, here's how you can expose the properties you want to the users of your class.

  • Quick question about JavaBean

    I just want to clarifying my understanding on JavaBean. I've read what defines a JavaBean from multiple sources but the following weren't really defined clearly...
    1. A JavaBean has to have a zero-argument constructor, but is it okay to have a zero-argument constructor AND other constructors with arguments?
    2. Does a JavaBean have to provide both get AND set methods for its properties?
    3. Does a JavaBean have to provide get and set methods for ALL for its properties?
    Any help would be appreciated. Thank you.

    By defining the get/set properties you define what bits of information about this bean you want other people to know, and which bits you want them to be able to modify.
    To define a readonly property, you just provide a getter, but no setter.
    If a property is purely internal and not intended for use outside the bean, then it shouldn't have a getter/setter
    You can even define get/set methods which do NOT correspond to actual properties on the bean, but can be calculated/derived from them.
    There are whole raging debates over how "stupid" it is to just declare every property to have a getter/setter. Whats the point of them then? Why not just make them public attributes - in effect it is almost exactly the same thing. Do a google search and I'm sure you will find plenty of discussion on that subject.

  • Question about javabeans and xml !!!

    Hi all,
    I created a java bean in which I will read data from the database and create a table of that data. Now I need to transform this data into xml format. Please can anyone give me some idea how to transform it.
    Thanks a lot.
    Jahnavi.

    I'm trying to put the data I get from the javabean into a file and read this file in the program I create the xml format. But I get an ClassCastException on the javabean class.
    Please help!!!*********Its URGENT***************

  • [Urgent] Some questions about Oracle Portal 10g - 11g upgrade

    Dear friends,
    We are under doing upgrading assessment of Oracle Portal from 10g to 11g. After reviewed the 'upgrading guide', we still have some questions as below:
    1. Whether the 'Instant Portal' feature remain in Oracle Portal 11g? If yes, how to migrate the Instant Portal 10g sites? If no, any workaround?
    2. Whether the old 10g Page Group and Pages will be still available after 11g upgrade? Also can customer import the old 10g transportset into Portal 11g?
    3. How about the customized Portal 10g objects (such as customized template, style, attributes) after 11g upgrade? Still be usable?
    4. Customer use PDK to develop many portlets in 10g. Can they use JDeveloper 11g to migrate their old project to 11g automatically?
    Thank you in advance and any comment are welcome.

    1. Whether the 'Instant Portal' feature remain in Oracle Portal 11g? If yes, how to migrate the Instant Portal 10g sites? If no, any workaround?Instant Portal is not available anymore in Oracle Portal 11g. The Instant Portal page groups will be migrated to standard Portal page groups. Maintenance of the Instant Portal can be done with the standard Portal tools. The Instant Portal tools are not available anymore.
    Whether the old 10g Page Group and Pages will be still available after 11g upgrade? Also can customer import the old 10g transportset into Portal 11g?Old 10g Page Groups are migrated to Portal 11g. They will still be available after the upgrade.
    Export/Import through transports sets has always been limited to instances of the same version. It is not supported between versions as documented in the Administration Guide :
    [11.2.1|http://download.oracle.com/docs/cd/E14571_01/portal.1111/e10239/cg_imex.htm#CCJBCCGD] System Requirements
    Before exporting and importing content, ensure that your system meets the minimum system requirements, as described in this section.
    Notes:
    * Export and import functions only within the same release of Oracle Portal and the same patch release, for example, release 10.1.4 to release 10.1.4 or release 11.1.1 to release 11.1.1. You cannot export and import between two different releases, such as release 10.1.2 to release 10.1.4 or release 10.1.4 to release 11.1.1.
    How about the customized Portal 10g objects (such as customized template, style, attributes) after 11g upgrade? Still be usable?Customized objects get migrated as well. Certain types (e.g. PL/SQL item types) need to be checked after upgrade as the behavior of the PL/SQL code may differ between database versions. This is particularly of concern when the 10.1.4.x Portal uses a 10.1 database. A database upgrade to either 10.2, 11.1 or 11.2 is necessary as Portal 11g is not supported with RDBMS 10.1.
    Customer use PDK to develop many portlets in 10g. Can they use JDeveloper 11g to migrate their old project to 11g automatically?Never done this, but the Portal framework is able to consume JPDK providers which are running in older versions of the toolkit. If the providers are running in standalone OC4J containers, you would be able to upgrade the framework and keep the providers in their OC4J containers. This will allow you to focus on the framework first and worry about your providers later.
    Thanks,
    EJ

  • [Urgent] Some questions about OID/OSSO 10g - 11g upgrade

    Dear all,
    We are under doing upgrading assessment of OID/OSSO 10g to 11g for a customer. After reviewed the 'upgrading guide', we still have some questions as below:
    1.     Whether the ‘10g DIP profiles’ will be still available after the OID 11g upgrade? Currently there are some sync of AD<->OID and DB->OID.
    2.     Whether the ‘WNA’ function will still work after the upgrade?
    3.     Is there a big change of OID API from 10g to 11g? If so, I think a big effort maybe on application modification.
    4.     I found that there is a OAM Basic version for OSSO 10g upgrade. So if this OAM Basic will migrate the OSSO configuration (like external application) automatically, or it must be re-configed after the upgrade?
    5.     Currently customer config OID 10g as BPEL/ESB’s identity store. So does BPEL/ESB 10g is certificated with OID 11g also? I didn’t find the certification so far.
    Thank you in advance and any comment are welcome.

    Dear all,
    We are under doing upgrading assessment of OID/OSSO 10g to 11g for a customer. After reviewed the 'upgrading guide', we still have some questions as below:
    1.     Whether the ‘10g DIP profiles’ will be still available after the OID 11g upgrade? Currently there are some sync of AD<->OID and DB->OID.
    2.     Whether the ‘WNA’ function will still work after the upgrade?
    3.     Is there a big change of OID API from 10g to 11g? If so, I think a big effort maybe on application modification.
    4.     I found that there is a OAM Basic version for OSSO 10g upgrade. So if this OAM Basic will migrate the OSSO configuration (like external application) automatically, or it must be re-configed after the upgrade?
    5.     Currently customer config OID 10g as BPEL/ESB’s identity store. So does BPEL/ESB 10g is certificated with OID 11g also? I didn’t find the certification so far.
    Thank you in advance and any comment are welcome.

  • Urgent: A question about jadtool

    I read some document and got the idea that
    JDK tool jarsigner can be used for jar signing and signature verification,
    but WTK tool jadtool can only be used for MIDlet signing but cann't be used for signature verification.
    If I want a promp way to verify a signed MIDlet, what could I use?
    Thank you for help.

    That's because you've put the bean in the request scope : request object dies when servlet or JSP sends info back to the browser and closes the stream (ie : when page is shown in client browser).
    An easy solution is to put the bean in session scope.

  • I have an urgent question about my indesign. I had problems with the creative cloude app and then uninstalled it and then installed it again. Now it is not opening and I cannot download it again either. Pls give me help and advice if there is anything I c

    I have an urgent question about my indesign. I had problems with the creative cloude app and then uninstalled it and then installed it again. Now it is not opening and I cannot download it again either. Pls give me help and advice if there is anything I can do to repair it

    Please authorize ADE 3 with same credentials that you used with older version of ADE

  • URGENT: Question about User_Exit

    Hello All,
    I have a question about user_exit. Does it share the same transaction context as the calling form??
    If it does, how to implement the same thing in Java.
    Any help or material available somewhere?
    TIA
    Naveen

    Naveen
    Actually what we are doing is converting Oracle Forms code into java code and i cannot open and change the code that is being called by the User_Exit built-in.
    So i want to know is how i can still keep the same functionality, without changing the Pro*C code into java, or some other native code.Since what you have in hand is an user exit I dont think you can use it straight away from Java Forms unless you do not have any Form specific things.
    In User exits we can do thigns like getting and putting values from/to oracle forms items and there are also provision to pass error and other related information between the forms and user exits.
    this is actually accomplished by having some internal API's ( these are invoked by the user_exit builtin in Forms) in Oracle Forms. And this is predefined and there is nothing much to know how this functionality works. And Oracle itself does not support User exits( if there is any interaction with Form) in Oracle Web Forms. And user exit has many Oracle specific libraries linked to it during compilation.
    Knowing this you should first know whether your user exit is Oracle Forms Dependent. If it is I think you dont have much options than rewriting your user exit.
    On the other hand if it does not , then I think you can easily get rid of the error and other handling information( if present in the user exit )and recompile it as a standalone Pro*C executable and the call it natively since it is noting but a C program in the compiled state.
    OK but regarding the connection you have to go back to Java and ask whether there is way to pass a conection context to a native C program( dont mention Proc or Oracle Forms here)
    So start finding whether your exit is Oracle Forms dependent. If not you can take it easy except for the connection thing which I am not . But if it is dependent then I think u have to start rewriting.
    Good Luck
    Vij

  • Urgent - Question about logging and debugging.

    Hi,
    I have a question about the logging and debugging supported by
    Weblogic 6.0. From what I understood by reading the documentation
    it has classes e.g. NotCatalogLogger class for logging the information.
    The class has one method callded
    debug() for writing the debugging information. I want to log the
    debug messages only in some situation. Can I control this using
    some property? Because the documentation says that the debug information
    is logged only if application is running in debug mode. Now how
    do I change the mode of an application??
    Thanks and Reagrds,
    Manoj

    Hi,
    I have a question about the logging and debugging supported by
    Weblogic 6.0. From what I understood by reading the documentation
    it has classes e.g. NotCatalogLogger class for logging the information.
    The class has one method callded
    debug() for writing the debugging information. I want to log the
    debug messages only in some situation. Can I control this using
    some property? Because the documentation says that the debug information
    is logged only if application is running in debug mode. Now how
    do I change the mode of an application??
    Thanks and Reagrds,
    Manoj

  • Quick (and urgent) Question about Intel G5's

    Just a quick question about the new intel G5's.
    I currently have bunch of software for my PPC G5 which is a Dual 2ghz. Software includes Adobe CS2, Macromedia Studio, Quark 6, etc, etc.
    If I purchase the new intel mac, would I be able to use the same software? or would I be forced to purchase a whole new set of everything I currently have?
    If the software will work on the intel G5, would it perform at the same rate/better than how it performs now on my PPC g5?
    Thanks in advance for any help.

    Rosetta:
    Most of the time you get a real 'hit' when a program first opens that is PPC. Very sluggish. They will require and use more memory than otherwise, too.
    Tests from last August aren't as helpful, there have been improvements, letting the Mac Pro pull even further ahead.
    http://www.barefeats.com/quad06.html
    Comparison Mac Models shows scores of all models. So there is 2x as much or more processing power, bandwidth, better video, as well as disk drives. A 'base' configuration would be 4-6GB RAM.
    And there are differences, more than between G4 and G5.
    People with experience would be Mac Pro Discussions
    Don't use Migration Assistant, and upgrade to CS3 etc. reinstall all your applications fresh.
    There are some drivers and plug-ins, that can be problems, and known.
    Mac Pro 2GHz 4GB 10K Raptor RAID Cinema HD   Mac OS X (10.4.9)   WD RE RAID Aaxeon FW800 PCIe MDD-G4 APC RS1500 Vista

  • Questions about OLE containers

    Hello,
    I try to use an OLE container for save any type of documents, the majority are Microsoft Word (*.doc), Acrobat Reader (*.pdf) and images (*.jpeg, *.jpg, *.bmp, ...)
    I prove to insert a document an save it in the database and all works fine. The document is saved in a BLOB column, and if I try to activate the OLE container I view the document correctly, but I have questions about OLE container:
    1.- Once I saved the document into the database (the icon of the document is shown into the OLE container), if I query the database to retrieve the documents, the OLE container not shown the icon of the document, and if I try to activate the OLE container, making double-click, it doesn't make anything.
    I think that the query to the database don't retrieve correctly the documents into the OLE container.
    2.- Once I saved the document into the database (the icon of the document is shown into the OLE container), if I try to activate the OLE container, depend the document I need to do twice double-click to open the document.
    If I try to open a Word document (*.doc) it need one double-click to activate, but if I try to open an Acrobat document (*.pdf) it need twice double-click to activate.
    Why? How can I open any type of documents with one double-click?
    3.- The form that I develop will work in client-server and in web mode.
    The problem is that if I try to run the form into web mode with OLE container, I have an error:
    "FRM-92100: Se ha interrumpido la conexión con el Servidor. Puede ser el resultado de un error de red o fallo en el Servidor. Debe reestablecer la conexión", and if I click in Details I have "Java Exception: java.lang.ArrayIndexOutOfBoundsException ...".
    If I delete the OLE item, it works fine, and I don't have any errors.
    I know that OLE container doesn't works in web mode, because this I will develop this functionality with JavaBean, but I would like that in client-server mode works with OLE container.
    There are any way to do this, that in web mode doesn't has this error, and in client-server mode works with OLE container?
    Thank you very much
    Jordi

    2. If you use Time Machine you can't browse those pictures on the Movable DIsk. It's not designed to work like that.
    3. Don't use copy and paste, try drag and drop instead.
    You don't tell us how you are managing these photos. I suggest that you use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the everything. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
    Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store

  • Please delete my question about backing up. I already found my answer.

    Hi,
    Please delete my question about backing up. I already found my answer. Just wanted to make sure that it was okay to backup the iPod_Control folder. I've read that other people have done this and re-imported back to iTunes. Here's the question I submitted. When I get my iPod back in order I am gonna backup the iPod_Control folder .
    https://discussions.apple.com/message/15836196#15836196
    Thanks,
    Liz

    No urgent reason to delete it. Just reply to yourself as above, if you care to, and then mark your own answer as correct. You won't get any points, but it will be clear you are closing out the topic.

  • Question about expression language

    Hello,
    I have a question about expression language - is it possible to access one variable using abother EL as variable name? For example?
    ${applicationScope[${sessionScope.project.name}]}Or is there any other way of achieving that?
    Thanks a lot for your help
    Cheers,
    Maciej
    Edited by: swider on Oct 29, 2008 2:12 AM

    I ran some other tests and I found out that following expression does not return value:
    ${applicationScope[sessionScope.project.aclId]}but this one is working
    ${applicationScope[sessionScope.aclId]}It is very strange. Project class ia simple JavaBean, has two members (Long and String).
    Any ideas what can be wrong with that?
    Cheers

  • Questions about your new HP Products? HP Expert Day: January 14th, 2015

    Thank you for coming to Expert Day! The event has now concluded.
    To find out about future events, please visit this page.
    On behalf of the Experts, I would like to thank you for coming to the Forum to connect with us.  We hope you will return to the boards to share your experiences, both good and bad.
     We will be holding more of these Expert Days on different topics in the months to come.  We hope to see you then!
     If you still have questions to ask, feel free to post them on the Forum – we always have experts online to help you out.
    So, what is HP Expert Day?
    Expert Day is an online event when HP employees join our Support Forums to answer questions about your HP products. And it’s FREE.
    Ok, how do I get started?
    It’s easy. Come out to the HP Support Forums, post your question, and wait for a response! We’ll have experts online covering our Notebook boards, Desktop boards, Tablet boards, and Printer and all-in-one boards.
    We’ll also be covering the commercial products on the HP Enterprise Business Community. We’ll have experts online covering select boards on the Printing and Digital Imaging and Desktops and Workstations categories.
    What if I need more information?
    For more information and a complete schedule of previous events, check out this post on the forums.
    Is Expert Day an English-only event?
    No. This time we’ll have experts and volunteers online across the globe, answering questions on the English, Simplified Chinese, and Korean forums. Here’s the information:
    Enterprise Business Forum: January 14th 7:00am to 12:00pm and 6:00pm to 11:00pm Pacific Time
    Korean Forum: January 15th 10am to 6pm Korea Time
    Simplified Chinese Forum: January 15th 10am to 6pm China Time
    Looking forward to seeing you on January 14th!
    I am an HP employee.

    My HP, purchased in June 2012, died on Saturday.  I was working in recently installed Photoshop, walked away from my computer to answer the phone and when I came back the screen was blank.  When I turned it on, I got a Windows Error Recovery message.  The computer was locked and wouldn't let me move the arrow keys up or down and hitting f8 didn't do anything. 
    I'm not happy with HP.  Any suggestions?

Maybe you are looking for

  • I type in my email address to be sent an identity verification code but I keep getting nothing

    I bought a new laptop and in the Settings and Accounts it tells me to verify my identity on this computer. So I follow the process and it says a code will be sent to my email address. However, nothing is sent to me! I've been doing this for 3 days no

  • Flicking colors !!

    Hello, I have a concern that takes my mind for several days I made a 3D animation in 3DSMax, I recorded in sequence TGA. So imported into After Effects for post-production, and there, horror, watching the footage, I see that the colors "flash" in pla

  • Changing font size in toolbar menu and apps

    How can I increase the font size in my toolbar and in things like iPhoto? It's so small on my big screen that it hurts my eyes to read it.

  • Multiple MIDI controllers

    Hey errbody, so I just got a second MIDI controller, but I can't figure out how to have the two controllers controlling two different channels. This is possible, right? Thanks a bunch

  • IPod Randomly skips tracks in the middle of play

    As the topic says, I have a 30GB ipod and it sometimes skip to the next song on my playlist after the first 10 seconds of the song. The song differs every time and if I were to go back to the skipped song, it'll play through fine. Then after a while