UNSUSCRIBE
jsp:setProperty tag
In a jsp page I use: jsp:useBean id="personaFisicaNP" class="it.unical.anagrafiche.np.PersonaFisicaNP" /jsp:setProperty name="personaFisicaNP" property="*" / This page is called from another form jsp page with a certain number of form fields... Well, some fields of my bean are String, some other are Integer. I get that the setProperty tag works well with String type fileds, but Integer ones return nulls... I got jsp specification from Sun and I saw that Integer, String, Byte and so on should be returned well from a form containing this kind of objects. I tryed my code on JRun 3.1 and it goes with no problem. Is this an Orion problem or am I missing something? Thanks in advance, Nicola
Re: Concurrent modification
Thanks, I solved the problem, and that was the answer... - Original Message - From: "Jeff Schnitzer" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, April 04, 2001 1:07 AM Subject: RE: Concurrent modification ConcurrentModificationException is the result of a fail-fast iterator in the JDK 1.2+ collections framework. If one thread is iterating a collection and another thread modifies the collection, the next call to the iterator will immediately throw this exception. In the ugly old days of Hashtable and Vector, the results of concurrent modification were undefined. You need to rethink your synchronization strategy for whatever shared data you are initializing in initsequence.jsp. Jeff -Original Message- From: Ing. Nicola Folino [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 12:36 AM To: Orion-Interest Subject: Concurrent modification I have a web application with some jsp pages. If I click twice on a link to another jsp page, I get the exception: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.next(Unknown Source) at java.util.Collections$6.nextElement(Unknown Source) at __jspPage21_initsequence_jsp._jspService(__jspPage21_initsequence_jsp .java:38) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.xj(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d3.sw(JAX) at com.evermind.server.http.d3.su(JAX) at com.evermind.server.http.ef.s1(JAX) at com.evermind.server.http.ef.do(JAX) at com.evermind.util.f.run(JAX) Keep in mind that go to the other link through an intermediate page which uses the directive jsp:forward page="somePage". The same application runs perfectly on JRun, but I saw that Allaire J2EE Server moves from standard, so I'd like to develope on Orion... Thanks
Re: Returning Collections from ejbFindXXX()
When you return something in a Collection ejbFindByXXX method, what you return is the KEY of your table (in your case I think the key is a String...). What you get in the home interface is a collection of remote references of your ejb-object (for example Customer object in a CustomerBean ejb...). - Original Message - From: "Permjeet Pandha" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Tuesday, April 03, 2001 3:53 PM Subject: Returning Collections from ejbFindXXX() Hi, Has anyone tried to return Collections from a BMP ejbFindAll() type of operation? I return an ArrayList of String objects, the client receives this list ok but gets a cast exception on trying to extract the String from the list. eg. public Collection ejbFindAll() throws java.rmi.RemoteException, javax.ejb.FinderException { ArrayList v = new ArrayList(); v.add("First"); v.add("Second"); return v; } and the client code: Collection coll = home.findAll(); System.out.println(coll.size() + coll.toString()); // this shows correct count and contents: "2[First, Second]" Iterator iterator = coll.iterator(); while(iterator.hasNext()) { String s = (String)iterator.next();// class cast exception System.out.println("Desc=" + s); } On closer inspection with a debugger it turns out the objects in the list are of class __Proxy5, some sort of orion proxy object. This appears to be a bug but I'd like to be sure in case its me. Has anyone done this successfully? I'm using orion 1.4.5, I cannot seem to upgrade with autoupdate due to (probably) firewall restrictions. TIA Permjeet
Re: usebean tag
Dear Alessandro, the problem is in the page where I use the tag. I miss that value just there and I save the dipartimentoQuery in the session. The mai problem is with the jsp:setProperty tag. It saves string values, but losts Integers! You're Italian, aren't you? I'm from Cosenza... Thanks... - Original Message - From: "Alex 'Kazuma' Garbagnati" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Friday, March 30, 2001 8:51 PM Subject: Re: usebean tag This is the code: jsp:useBean id="dipartimentoQuery" class="it.unical.amministrazione.np.DipartimentoQuery" / jsp:setProperty name="dipartimentoQuery" property="*" / In my jsp page this code would take the values from a previous form and take them in my bean, but I lost the Integer value idUniversita (it was in a select tag). So I had to take it by a request.getParameer("idUniversita")... Is this an Orion bug, is this a Nicola's bug? Too strange! Thanks in advance... Nicola, When you use the jsp:useBean tag with that syntax, you are inserting that bean in the page scope. Once the page is completed, that scope will be cleaned up and your bean will be lost, so, if in a previous page you have set the idUniversita member, it will be lost. Try inserting that bean in the session scope, for example, so it will be accessible to the next page and you will not use that value. Best Regards, Kazuma Cos'e' il genio. E' fantasia intuizione, colpo d'occhio e velocita' d'esecuzione. (Amici Miei) --- Alessandro A. 'Kazuma' Garbagnati http://www.kazuma.net/ ICQ UIN: 1600386 Mountain View, CA, 94043 - USA
Re: JRun again...
I've forgotten to put " only on the mail, not in the code... But you're right on Orion vs JRun. Thanks - Original Message - From: Patrik Andersson To: Orion-Interest Sent: Friday, March 30, 2001 11:17 AM Subject: SV: JRun again... YOu have forgotten that in the world of xml, you cannot forget ". jsp:forward page="%= back[0] %" / would probably work. And while you're at it. Don't try to hard using JRun when Orion does everything so much better. regards, Patrik Andersson -Ursprungligt meddelande-----Från: Ing. Nicola Folino [mailto:[EMAIL PROTECTED]]Skickat: den 30 mars 2001 10:22Till: Orion-InterestÄmne: JRun again... I tried this code in a jsp page on JRun 3.0: jsp:forward page=%=back[0]% / where back[0] is a String variable. And I get a parse exception! I found on JSP specification 1.1 that line of code is correct and in fact it runs well on Orion. Does someone knows some other deviations of JRun from j2ee 1.2.1 standard? Thanks. P.S.: JRun accepts also %=pippo;% %=pippo% but the first is wrong to actual specifications
usebean tag
This is the code: jsp:useBean id="dipartimentoQuery" class="it.unical.amministrazione.np.DipartimentoQuery" /jsp:setProperty name="dipartimentoQuery" property="*" / In my jsp page this code would take the values from a previous form and take them in my bean, but I lost the Integer value idUniversita (it was in a select tag). So I had to take it by a request.getParameer("idUniversita")... Is this an Orion bug, is this a Nicola's bug? Too strange! Thanks in advance...