Dreamweaver

2001-02-03 Thread Charles Beckham








I seem to recall a
mention of DW extensions for 0.5…does anyone know where

I can get such
extensions?

 

charles beckham

 








Dreamweaver Extension 0.5

2001-02-03 Thread Charles Beckham








I seem to recall a
mention of DW extensions for 0.5…does anyone know where

I can get such
extensions?

 

charles beckham








PreparedStatement pool.

2001-02-03 Thread Johan Compagner

Hi,

I implement a PreparedStatement pool in the GenericConnection.

I only have one problem, I get a exception:

java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Function
sequence error
 java.lang.Throwable(java.lang.String)
 java.lang.Exception(java.lang.String)
 java.sql.SQLException(java.lang.String, java.lang.String, int)
 java.sql.SQLException sun.jdbc.odbc.JdbcOdbc.createSQLException(int, int,
int)
 void sun.jdbc.odbc.JdbcOdbc.standardError(short, int, int, int)
 boolean sun.jdbc.odbc.JdbcOdbc.SQLExecute(int)
 boolean sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute()
 java.sql.ResultSet sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery()
 java.sql.ResultSet
org.apache.struts.util.GenericPreparedStatement.executeQuery()

After i get a pooled prepared statement. and use that one.

Now i have boiled it down to this in the close method of GenericConnection

try
 {
  conn.setCatalog(this.catalog);
 }
 catch (SQLException e)
 {
  ;
 }

If i exclude this then everyting works,
Is this common behaviour?
How do you do this?

Johan Compagner







Re: ActionForward: scope of modifications?

2001-02-03 Thread Incze Lajos

On Wed, Jan 31, 2001 at 12:31:00PM -0800, John Raley wrote:
> I didn't do a thorough walk through the source, but it appears that if I
> modify an ActionForward returned from an ActionMapping passed to
> Action.perform I am changing global state in struts.  Is this correct?

Correct. So, you should avoid it. I think you can even get some
synchronization problems, too. At the very moment when you manipulate
a forward it can be just used by another app session. There is an
actions package to manipulate struts config classes runtime
(this is my understanding and I may be wrong).incze



RE: Problem with nightly build- property 'lowsrc'

2001-02-03 Thread rhayden

Quoc,

The problem was due to a different method signature in the ImgTag class (I
got it to work by editing the source and building Struts). I think Craig
fixed this a few days ago, so the change should be incorporated in the
latest nightly build. Make sure you have the latest build.

-Bob



-Original Message-
From: Quoc Le [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 6:07 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problem with nightly build- property 'lowsrc'


Bob,

I'm using weblogic, and I'm seeing this
problem, too.  Any luck finding a workaround?

Thanks,
quoc


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 2:07 PM
To: [EMAIL PROTECTED]
Subject: Problem with nightly build- property 'lowsrc'



The example app will no longer run on Weblogic 5.1. It worked with the last
build I downloaded (01-23). Has anyone else encountered this error- or is
this  specific to WL?


Thanks,
Bob


Parsing of JSP File '/index.jsp' failed: 
/index.jsp(-1): Error in tag library at: 'html': There is no setter method
for property 'lowsrc', for Tag class 'org.apache.struts.taglib.html.ImgTag'
probably occurred due to an error in /index.jsp line -1:
Mon Jan 29 16:58:11 EST 2001 


Mon Jan 29 16:58:10 EST 2001: 
resolving taglib uri '/WEB-INF/struts-bean.tld' to taglib-location
/WEB-INF/struts-bean.tld:
Mon Jan 29 16:58:10 EST 2001: 
resolving taglib uri '/WEB-INF/struts-html.tld' to taglib-location
/WEB-INF/struts-html.tld:
Mon Jan 29 16:58:11 EST 2001: 
Servlet failed with Exception
weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
'html': There is no setter method for property 'lowsrc', for Tag class
'org.apache.struts.tagli
b.html.ImgTag'
at
weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java:138)
at
weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java, Compiled
Code)
at
weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib.java,
Compiled Code)
at
weblogic.servlet.jsp.StandardTagLib.(StandardTagLib.java:125)
at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:87)
at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java, Compiled
Code)
at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java,
Compiled Code)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java, Compiled
Code)
at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1760)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1601)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java, Compiled
Code)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java, Compiled Code)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java, Compiled
Code)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
at
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java, Compiled
Code)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled
Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:217)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
4)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:101)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:124)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:907)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:851)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:252)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)



RE: Couldn´t_install_at_bea´s_weblogic

2001-02-03 Thread rhayden


There are 2 other things specific to my configuration which you may want to
consider if you are still having problems. I am not sure if this will help,
but because WL is so picky about the classpath you may want to give it a
shot:

1) I am using JDK1.3

2) I am not using the wlserver convenience program that is provided with the
WinNT version of WL. I had some problems with this program related to
setting up the classpath (it includes some extra stuff automatically) and it
was overly complicated to use. So, to start WL I use my own startup command
(simplified version of startweblogic.cmd) which contains the following (this
command should be run from the c:\weblogic directory, or whatever your WL
home is):


set
JAVA_CLASSPATH=c:\weblogic\lib\weblogic510sp8boot.jar;C:\weblogic\classes\bo
ot;c:\Java\Oracle\lib\Oraclethin817.zip;c:\java\xalan\xerces.jar

set
WEBLOGIC_CLASSPATH=c:\weblogic\lib\weblogic510sp8.jar;C:\weblogic\license;C:
\weblogic\classes;C:\weblogic\myserver\serverclasses;C:\weblogic\lib\weblogi
caux.jar

c:\jdk1.3\bin\java -ms16m -mx64m -classpath %JAVA_CLASSPATH%
-Dweblogic.class.path=%WEBLOGIC_CLASSPATH% -Dweblogic.home=c:\weblogic
-Djava.security.manager -Djava.security.policy=c:\weblogic\weblogic.policy
weblogic.Server



-Original Message-
From: mikedanese [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 8:51 AM
To: [EMAIL PROTECTED]
Subject: Re: Couldn´t_install_at_bea´s_weblogic


hi,  me to on  weblogic(5.10) .  All the examples I have tried get hung on
the .tld file w/ the following exception:

Parsing of JSP File '/struts3/index.jsp' failed:




/struts3/index.jsp(2): Could not parse deployment descriptor:
java.io.IOException: cannot resolve '/WEB-INF/struts-bean.tld' into a valid
tag library
probably occurred due to an error in /struts3/index.jsp line 2:
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>




Thu Feb 01 20:07:38 PST 2001

any tips on this error appreciated.   MikeD


 Original Message -
From: "Wong Kok Wai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 11:51 PM
Subject: Re: Couldn´t_install_at_bea´s_weblogic


> The first step is to check you're using SP8.
>
> The second step is to check whether struts.jar has
> been added to the Java or Weblogic classpath. If so,
> you must remove it from both these classpaths and just
> put struts.jar in the WEB-INF/lib directory and
> WebLogic will load the classes from there.
>
> --- Gustavo Hexsel <[EMAIL PROTECTED]> wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> >
> > Hello, I´m trying to use Struts with BEA´s
> > Weblogic, but can´t even
> > make the example work! I´m having ClassCastException
> > errors at the load()
> > method at MessageTag; it´s probably some problem
> > with the ClassLoaders,
> > since the class is really a MessageResources. But
> > there is only one copy of
> > the application running and there is only one copy
> > of the MessageResources
> > installed.
> >
> > Heelp!
> >
> > Best regards,
> > Quartz (Gustavo Hexsel, [EMAIL PROTECTED])
> >
> > -BEGIN PGP SIGNATURE-
> > Version: PGPfreeware 6.5.8 for non-commercial use
> > 
> >
> >
> iQEVAwUBOnm2RRHqwb4rXhmVAQFsXwgAnxcsDE0ua+72/zd8mean0tKYnjXOplIl
> >
> or9VZVsj3q+s2ch38KUQlwCs47UTxJjbBatNbu4cRvoHc8Q8av0R8Lun3BB5P7xP
> >
> Wnq3Xua/hgHilEKT3iID1AOCgGL8Oc5QlQb63E+F0Yp9ok8j4231VgH7ARGdFXml
> >
> Qbr/LMCb5832hNIFpH2qotgNtVTGP0sZV03bM4was73dUel1xf9UUndDX7yAoNtB
> >
> J78APev6OJvg7x6SJ8CTBeDSj9neOVd6ESKrARE1A0RDw/PFTOF77EU/Tsbwm8VA
> >
> HAUKFEmtWln6ilw094PverVIWjIAZN+2oQU5CfuUgOvhEp76tzzzEw==
> > =Z/HZ
> > -END PGP SIGNATURE-
>
>
> __
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/
>



RE: can a ActionForm be ever null in Action class

2001-02-03 Thread Philip Hart

Hi Martin (et al)

The Null Object pattern is a really simple and neat way to eliminate the
need to test for null object references before making a method call. You
know the typical sort of thing:

SomeActionClass foo = null;
...
foo = ...   // Some possible assigment, or not, depending on code.
...

// Make sure not null before sending method
if (foo != null)
{
foo.doSomething();
}

Instead, one uses the power of inheritance to create a sibling class whose
entire "rasion d'etre" is to do nothing. For example, in adapting the above
case, one could have the following class hierarchy:-

-
|   |
| ActionParentClass |
|   |
-
| doSomething()   |
-
|
^
 / \
 ---
|
-
|   |
-   -
|   |   |   |
| SomeActionClass   |   | NullActionClass   |
|   |   |   |
-   -


The required "business logic" is placed in the SomeActionClass.doSomething()
method, whereas the NullActionClass.doSomething() method is left empty.
Thus, a call to the doSomething() method will either execute the business
logic or do precisely nothing, depending on the *actual* class to which the
message is sent.

Now, whenever a variable is declared and initialised, it is assigned a
reference to an instance of the Null Class rather than just the value
"null". So, the code above is simplifed to the following:-

ActionParentClass foo = new NullActionClass();  // Object must be of common
superclass
...
foo = ...   // Some possible assigment, or not, depending on code.
...

// Execute method
foo.doSomething();  // No need to caheck for null value.



This might not seem a big deal, saving but a few lines of code; but think
how many times one has to write such test code! Or, indeed, how many times
one forgets to write such code! This aproach is much more robust.


An additional spin on this technique is to make the NullActionClass a
Singleton, such that there is exactly one instance of the NullActionClass
which is shared. After all, if it doesn't really do anything, why do you
need more than one instance cluttering up the memeory space!!!


I hope you find this short explanation helpful (even if it's not up to the
standard of pro authors :-), and can see how it might be useful in avoiding
the dreaded NullPointerException.


Happy Strutting,
Philip Hart


> -Original Message-
> From: Martin Cooper [mailto:[EMAIL PROTECTED]]
> Sent: 03 February 2001 05:45
> To: [EMAIL PROTECTED]
> Subject: Re: can a ActionForm be ever null in Action class
>
>
> Philip,
>
> Could you expand on this a little? I don't have "Patterns in Java", and am
> not familiar with the Null Object pattern, but I'd like to understand what
> you're suggesting.
>
> Thanks.
>
> --
> Martin Cooper
> Tumbleweed Communications
>
> - Original Message -
> From: "Philip Hart" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, February 02, 2001 12:47 PM
> Subject: RE: can a ActionForm be ever null in Action class
>
>
> > Hi All
> >
> > Just a thought, but couldn't we use the Null Object pattern (pp 365-369,
> > Patterns in Java Volume 1, Mark Grand) as a default for this scenario?
> >
> > It would mean that there would be no further need to make an
> explicit test
> > for null, as calling the corresponding method will have no effect.
> >
> > As I said, just a thought. In any case, keep up the brilliant work.
> >
> >
> > Cheers,
> > Philip Hart
> >
> > > -Original Message-
> > > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> > > Sent: 02 February 2001 17:42
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: can a ActionForm be ever null in Action class
> > >
> > >
> > > Anand Raman wrote:
> > >
> > > > Hi guys
> > > >
> > > > I noticed in the struts-example application a check to find whether
> the
> > > > ActionForm "form" passed to the perform method of Action class
> > > is null or
> > > > not.
> > > >
> > > > Is it really necesarry.. I am not able to come up wi

Re: What happend to the binary's??

2001-02-03 Thread Ted Husted

Craig had some technical problems, but they are being addressed. Stay
tuned ...

*** REPLY SEPARATOR  ***

On 2/3/2001 at 1:09 PM Johan Compagner wrote:

>They aren't there or only 1K great of the last few day's
>
>Johan C.



-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/





What happend to the binary's??

2001-02-03 Thread Johan Compagner

They aren't there or only 1K great of the last few day's

Johan C.