JSP page in another window
If I have JSP page A and I want to open up JSP page B in a seperate and smaller window, while keeping JSP page A, is there a way to do this? I know it can be done with JavaScript. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
RE: returning an interface
The object you are returning is probably not serializable. You must implement Serializable. I have tons of methods that return the Collection interface. -Original Message- From: Paul Knepper [mailto:[EMAIL PROTECTED]] Sent: Friday, June 29, 2001 12:34 PM To: Orion-Interest Subject: returning an interface Has anyone ever returned an interface from an EJB? I get the following error: com.evermind.server.rmi.OrionRemoteException: Error (de-)serializing object: MyInterfaceImpl Here is my Remote Interface: public interface Test extends EJBObject { public IMyInterface getInterface() throws RemoteException; } Here is the implmentation of the method: public IMyInterface getInterface() throws RemoteException { return new MyInterfaceImpl(); } Thanks, Paul
Re: JSP page in another window
I do believe you can use the: response.setHeader(Window-target,_blank); approach to do such a thing, but I also recall that it's non-standard, and so you should check it to make sure it works with your target browser. Rian - Original Message - From: Kemp Randy [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, June 30, 2001 7:14 AM Subject: JSP page in another window If I have JSP page A and I want to open up JSP page B in a seperate and smaller window, while keeping JSP page A, is there a way to do this? I know it can be done with JavaScript. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: JSP page in another window
If you don't care what the size, features, and location of the second browser are, you can just set the target attribute in the href for page B to be _blank. If you want to control the appearance of the new window, you can use the javascript function: window.open(URL, windowName[, windowFeatures]) http://developer.netscape.com/docs/manuals/js/client/jsref/window.htm#120273 1 or http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html This will allow you to control the size, position, and features of the new browser you spawn. There are samples on the devguru site. This is not jsp specific, of course, since it's just client side javascript. A quick sample to open pageb.jsp in the same dir as pagea.jsp might be: script language=JavaScript function openNewWin() { window.open('pageb.jsp', 'newWin', 'height=200,width=300,resizable=yes'); return false; } /script a href=# onClick=return openNewWin()TEST/a This opens pageb.jsp in a resizable window named newWin, with the size specified. Hope this helps, Matt Pangaro Loki Technologies http://www.lokitech.com - Original Message - From: Kemp Randy [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, June 30, 2001 5:14 PM Subject: JSP page in another window If I have JSP page A and I want to open up JSP page B in a seperate and smaller window, while keeping JSP page A, is there a way to do this? I know it can be done with JavaScript.
How to reference arrays when creating finders in orion-ejb-jar.xml???
I have a home finder method with the following signature: Collection findByTypes(TypeEntity[] types) throws RemoteException; Is there a way to implement this method using CMP by either directly writing the query in ejb-jar.xml, or using orion-ejb-jar.xml method? I am using Orion 1.5.2. Thanks. -AP_
Re: How to reference arrays when creating finders in orion-ejb-jar.xml???
I haven't tried it yet, but you might try passing in a list instead (using Arrays.asList()), then in your query in orion-ejb-jar.xml use query=$type in ($1) Don't know if it'll work or not, but I don't think there's a way of looping over the contents of an array in the finder method. Jeff. On Sat, 30 Jun 2001 13:56:09 -0700 Alex Paransky [EMAIL PROTECTED] wrote: I have a home finder method with the following signature: Collection findByTypes(TypeEntity[] types) throws RemoteException; Is there a way to implement this method using CMP by either directly writing the query in ejb-jar.xml, or using orion-ejb-jar.xml method? I am using Orion 1.5.2. Thanks. -AP_
RE: Setting Up JDBC driver for Oracle database
Mong, The Oracle driver should come with Oracle. If you do a search in the oracle directory you should find a file call classes12.zip, copy that to the orion/lib directory. Here is an Oracle data source that works and I am using right now (This should be your data-sources.xml in the orion/config directory). ?xml version=1.0? !DOCTYPE data-sources PUBLIC Orion data-sources http://www.orionserver.com/dtds/data-sources.dtd; data-sources data-source class=com.evermind.sql.DriverManagerDataSource name=Oracle schema=database-schemas/oracle.xml location=jdbc/OracleCoreDS xa-location=jdbc/xa/OracleXADS ejb-location=jdbc/OracleDS max-connections=10 pooled-location=jdbc/OracleDS connection-driver=oracle.jdbc.driver.OracleDriver username=scott password=tiger url=jdbc:oracle:thin:@your server name or IP:1521:test inactivity-timeout=30 / /data-sources Good Luck Doug -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mong Kon Mo Sent: Friday, June 29, 2001 6:58 PM To: Orion-Interest Subject: Setting Up JDBC driver for Oracle database Hello, I am trying setup Orion to communicate with an Oracle 8.0.5.1 database. I've obtained the JDBC drivers from Oracle, but I'm confused about what I should be doing next. The Orion documentation says I need to copy the driver to the Orion\lib directory and add a data source in data-sources.xml; but what fields do I change and what values should I use? Can anyone, perhaps someone who uses Orion and Oracle, help clear up this process for me? Thanks in advance, Mong Kon Mo