Hello good afternoon. I have successfully serialized data in the past, however it seems as if I don;t fully understand the process. I have a class called ProgramState which stores a variable (called lastCreated) with custom class LinesProject and an ArrayList variable(called recentProjects) of this custom class. The purpose of these variables is to store the last created project as well as a list of five recently opened projects. Here is ProgramState: public class ProgramState implements Serializable{ private LinesProject lastCreated; private ArrayList<LinesProject> recentProjects; public ProgramState() { lastCreated=new LinesProject(); recentProjects=new ArrayList<LinesProject>(); } public ProgramState(LinesProject proj) { lastCreated=proj; recentProjects=new ArrayList<LinesProject>(); } //Setters …

Member Avatar
Member Avatar
+0 forum 3

Oh boy They ust be tired of me now. My trouble: I have two ArrayLists of custom classes. ``ArrayList<Subject>` **a**` ``ArrayList<Student>` **b**` Within those custom classes are other custom classes which themselves have primitive data types as well as an ArrayList of other custom classes. It's a big circus going on. How do I XMLEncode those two ArrayLists, **a** and **b**, so that all the information within them branching all the way down, is saved? (Also, is it possible to save both of these to the same file please?)

Member Avatar
Member Avatar
+0 forum 4

how to make a bean application scoped so that it will persist as long as the web application is running??? and how can we access it in our controller?? thank you

Member Avatar
Member Avatar
+0 forum 3

Hello ! I'm developing a WebApp using [this example](http://www.primefaces.org/showcase/ui/datatableRowSelectionByColumn.jsf) where I: 1. Connect to MySQL and download data. 2. Populate dataTable with downloaded data using. 3. Fetch(view button) the record and display its details in a dialog. Problem begins when I download the records and click on the viewButton(no matter what record) it displays in a dialog only the first downloaded record. My problem is in line: > <f:setPropertyActionListener value="#{car}" target="#{tableBean.selectedCar}" /> The aplication pattern: jsp -> managedBean -> sessionBean -> entityBean My code: JSP: <h:form id="form"> <p:growl id="msgs" showDetail="true" /> <p:dataTable id="dataTable" selection="true" value="#{cars.getCarList()}" var="car" style="font-size: 12px"> <f:facet name="header"> …

Member Avatar
Member Avatar
+0 forum 1

Hello, I have a question regarding implementations of uploading a file from a browser to a server. I have currently two pages, page (1) is used to select the file. Using a form-submit section, the form is passed to page(2). Page (2) now gets a javabean, passing `request` to it. It manipulates the request to get the encoded date. This all works. However, running the code in the javabean is approximately 120 times slower than as a scriplet in a .jsp file. Any suggestions? Regards, Matthew

Member Avatar
+0 forum 0

Hi folks, This is my first thread in Spring Framework and I am new to it . While creating a web app in Spring framework I cannot deploy it as it contains few errors. I couldnot resolve. So i seek help from you . . Bean creation exception is the one i got. System specification : winxp, glassfish server , netbeans IDE Stacktrace is [CODE] INFO: PWC1412: WebModule[/SpringDemo] ServletContext.log():Initializing Spring root WebApplicationContext INFO: Root WebApplicationContext: initialization started INFO: Refreshing Root WebApplicationContext: startup date [Tue Sep 28 12:27:41 IST 2010]; root of context hierarchy INFO: Loading XML bean definitions from ServletContext …

Member Avatar
Member Avatar
+0 forum 1

hi friends, I am a novice java programmer. I am in a learning process in java servlets. But i struck into a Class method which should return a result set([B]result of a join query[/B])as a an arrayList using the existing bean class. I will show my code as some one can point out what i should do or suggest me a (standard) method to access it. I am having a separate bean class for table users and table books. A book table which has list of books info, A user table which has list of users info, when a user …

Member Avatar
Member Avatar
+0 forum 2

The End.