RE: JBuilder 5, Struts 1.0 & WebLogic 6.0, a Tutorial

2001-08-14 Thread markus.colombo

I had to update the following part:

http://www.netstore.ch/mesi/strutstutorial/part2.html#Heading6

(I left out the dependencies tab, which prevented the struts.jar from being
in the war file...)


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 5:24 AM
To: [EMAIL PROTECTED]
Cc: Wymann, Roland
Subject: JBuilder 5, Struts 1.0 & WebLogic 6.0, a Tutorial


A small Tutorial can be found at:
http://www.netstore.ch/mesi/strutsTutorial/

Even if it is weblogic specific, it might be interresting for everybody who
develops with JBuilder.

Thanks to Anthony, Bill and everybody else in this list for the tips !




multipart/form-data problem

2001-09-10 Thread markus.colombo

Hi,

we implemented a JSP with a multipart/form-data form.
Everything seems to work fine except in the case when our form returns an
error on validation. We have a request parameter (GPKUpdate) to tell if we
do a update to an existing record or if we add a new record.
When our form bean adds an error during validation and the Entryform is
(should be) displayed again, the parameter is missing from the request:

Root cause of ServletException
javax.servlet.jsp.JspException: No parameter GPKUpdate was included in this
request
at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)

If we remove the enctype='multipart/form-data' attribute of the form (and
the html:file tag) error handling is working.

Are we missing something? It seems that the request parameters get lost in
case of an error in validation, but only when using
enctype='multipart/form-data' ?

We tried with 1.0 and the nightly build with the same effect.

Thanks for any input

Markus Colombo
Thales Information Systems


Here is the relevant code of our .jsp file:


<%@ page language="java" %>
<%@ taglib uri="/struts-html.tld" prefix="html" %>
<%@ taglib uri="/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/struts-bean.tld" prefix="bean" %>








  

  
  

  


  

  
  

  
  

  


/>
  
  

  
  


  
  

  

  
  


  

  











RE: Struts and JBuilder

2001-09-11 Thread markus.colombo



I know 
the setup for JBuilder 5: http://www.netstore.ch/mesi/strutstutorial/
I 
never worked with JBuilder 4, but it might be a starting 
point...
 
Regards
 
Markus

  -Original Message-From: Shea Kelly 
  [mailto:[EMAIL PROTECTED]]Sent: Dienstag, 11. September 2001 
  09:44To: [EMAIL PROTECTED]Subject: Struts 
  and JBuilder
  Hi 
  all,
   
  Anyone 
  know how to setup struts to be used with JBuilder4 EE??
  regards 
  Shea Kelly 
  Consultant Software 
  EngineerObject Oriented Pty LtdPO Box 
  528, North Sydney NSW 2059Phone: 
  +61 2 9957-1092Direct: +61 2 9459-3335Fax: +61 2 9956-5089 
  Mobile: 0416 110 
  499Email: 
  [EMAIL PROTECTED]Web:  
   


RE: [ANNOUNCE] Struts Console v0.2

2001-09-13 Thread markus.colombo

Good Job,

if you put:
SET CONSOLE_HOME=../
into the console.bat,
the path does not need to be explicitly specified in the batch file.

Regards

Markus

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 14. September 2001 05:04
To: [EMAIL PROTECTED]
Subject: [ANNOUNCE] Struts Console v0.2


Ok.  I've gotten lots of feedback from many people and
have started to incorporate it into the app.  I have
also made some bug fixes.

http://www.ejcenter.com/struts/


Changes with Struts Console v0.2

*) Changed console.bat to run "java" from the 
   %JAVA_HOME%\bin directory

*) Added tool tip text to "Add" and "Remove" buttons
   on the Action Mappings tab/screen.

*) Fixed bug where exceptions would be thrown if the
   Struts config file did not have all of the major
   elements (,  and
   ).  Now you can edit a file that
   has just:
 
   
   
 
   This makes the app now conform to the actual DTD
   which says that none of the major elements are
   required.

*) Added toolbar for convenient acces to "New", "Open"
   and "Save" functionality.
 
*) Added functionality for creating "New" Struts
   config files.  Use the "File" menu or toolbar to
   access the "New" function.

*) Changed default window size to 800x600 from
   640x480.  I think most people have moved to higher
   resolutions these days.
 
*) Added shell script for starting application under
   *NIX platforms. Thanks to Rogerio Saran 
   <[EMAIL PROTECTED]> for sending me his
   "console.sh" file.


I promise not to bombard everyone with an announcement
every day.  I have to sleep some time :)

Thanks,

James
[EMAIL PROTECTED]

ps. Please keep sending the suggestions.  I am working
on incorporating most of them.  Tell me what you want
and there's a good chance you'll get it.

__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/




RE: [Newbie] Display multiple error messages in a list

2001-09-25 Thread markus.colombo

If you just want a carriage return, add it to the message in the properties
file:
error.required.firstName=Please enter your firstname

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 25. September 2001 10:57
To: [EMAIL PROTECTED]
Subject: [Newbie] Display multiple error messages in a list


Several errors messages are store in the ActionErrors instance ( generated
in the validate method of a ActionForm ).

The tag  displays error messages without carriage return
between them.
What is the solution to display those messages with carriage return between
them (in a list by example) ?

Thanks by advance.

Bruno Morin.




RE: Problem integrating STRUTS and WEBLOGIC 6.0

2001-10-05 Thread markus.colombo

That problem only happens with the nightly build.
The following steps worked for me:

1. add Xerces 1.4.3 to the classpath (before the weblogic JAR's !)

2. Modify the method getParser() of Digester.java:

public SAXParser getParser() {

// Return the parser we already created (if any)
if (parser != null && parser instanceof SAXParser)
return (parser);

System.setProperty("javax.xml.parsers.SAXParserFactory",
"org.apache.xerces.jaxp.SAXParserFactoryImpl");
System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
"org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");

// Create and return a new parser
synchronized (this) {
try {
if (factory == null)
factory = SAXParserFactory.newInstance();
factory.setNamespaceAware(namespaceAware);
factory.setValidating(validating);
parser = factory.newSAXParser();
return (parser);
} catch (Exception e) {
log("Digester.getParser: ", e);
return (null);
}
}
}

3. Add the follwing lines to the Actionservlet part of web.xml (don't know
if this is needed):


  SAXParser
  org.apache.xerces.parsers.SAXParser


-Original Message-
From: BinhMinh Nguyen [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 4. Oktober 2001 20:29
To: [EMAIL PROTECTED]
Subject: Problem integrating STRUTS and WEBLOGIC 6.0


Hi,
I posted this one once, but I have response, please
help me.


I download the Struts overnight release version, I
then copy the struts-upload.war into the app directory
of weblogic. I then got the below error message.
Please help me spot out my problem, it took my hours
and I still could not fix it. It also happened when I
copy this same struts-upload.war into Tomcat 3.2.3
I really need this to be fix, help me please.
Thank you very much
BHN

Error Message:

  
<[WebAppServletContext(3162544,struts-upload)] Error
loading
et: 'action'
java.lang.NoSuchMethodError
at
org.apache.commons.digester.Digester.parse(Digester.java:859)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1273)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:460)
at
javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:638)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:581)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:526)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletC
ontext.java:1078)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServlet
Context.java:1022)
at
weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:499)
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)


__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just
$8.95/month.
http://geocities.yahoo.com/ps/info1