Réf. : RE: Digester help needed !

2001-10-04 Thread pf . garcia




Try to add this to your digester initilization :

digester.addCallMethod("loginerr/errnum", "setErrnum",0);
digester.addCallMethod("loginerr/errdesc", "setErrdesc",0);

It will tell the digester to call the setErrnum() method of the object on
top of its stack (the instance of ErrResp), passing it the body of the
errnum element as a String.
You can refer to the javadoc for the class CallMethodRule in the digester
package.

Hope this help.

P-F





   (Embedded image moved to file: pic19718.pcx)
"PAULA YOUNG"  <[EMAIL PROTECTED]>
 04/10/2001 23:09


Veuillez répondre à [EMAIL PROTECTED]

Pour :<[EMAIL PROTECTED]>
cc :

Objet :   RE: Digester help needed ! -- peculiar

I'm reposting to fix the typo "public void setgetErrdesc...".  text below
is
corrected.  I'm still having the same parsing problem as before.

You know, if I reformat the XML string to look like this:


...it works fine (I can create my bean using the digester).

The question is why doesn't work for the XML formatted as:
 
 18
 Your smallcorp site login has
expired!!


Aren't both xml formats correct?  Are these Digester peculiarities, or SAX?

I have tons of XML I need to parse that have this latter format and am
desperate to make this work!!

Thanks,  Paula Young

  -Original Message-
 From:  Paula Young
[mailto:[EMAIL PROTECTED]]
 Sent:  Thursday, October 04, 2001 1:34 PM
 To:   [EMAIL PROTECTED]
 Subject:   Digester help needed !

 I need some basic DIGESTER help!  I think I'm trying
to do
something simple, but it's not working for me and I've tried several
things,
etc,etc,etc...  I just want to parse  an XML string that looks like:
 
 18
 Your smallcorp site login has
expired!!
 

 My ErrResp.java bean that should result in the parse
looks
like:

 package com.oaktree.struts.common;

 import java.io.Serializable;

 public class ErrResp implements Serializable {
private int errnum = 0;
private String errdesc = null;

 // -- integer code for the error
public int getErrnum() {
   return errnum;
}

public void setErrnum(int errnum) {
   this.errnum = errnum;
}

// -- description of error
public String getErrdesc() {
   return errdesc;
}

public void setErrdesc(String errdesc) {
   this.errdesc = errdesc;
}

// -- Utils
public String toString()  {
   StringBuffer sb = new StringBuffer("ErrResp is:
\n");


   sb.append("Errnum=" + errnum + ".\n");
   sb.append("Errdesc=" + errdesc + ".\n");
   return sb.toString();
}


 }

 AND my code (in the LoginAction.java ) looks like:

  // simulate XML string return for an error.
   StringBuffer xmlerr = new StringBuffer("");
   xmlerr.append("\n");

   xmlerr.append("18\n");
   xmlerr.append("Your smallcorp site
login has
expired!!\n");

   xmlerr.append("\n");

   // Use Apache digester util to parse that xml
string.
   // LoginResp bean : it contains: Away, Buddy,
Group
beans
   String xrsp = xmlerr.toString();
   System.out.println("XML is:\n" + xrsp);
   Digester digester = new Digester();
   digester.push(this);
   digester.setDebug(10);
   digester.setValidating(false);
   digester.addObjectCreate("loginerr",
   "com.oaktree.struts.common.ErrResp");
   digester.addSetProperties("loginerr");
   digester.addSetNext("loginerr", "gotErr",
   "com.oaktree.struts.common.ErrResp");

   try {
   digester.parse(new
org.xml.sax.InputSource(new
StringReader(xrsp)));
   } catch (IOException e){
   e.printStackTrace();
   } catch (SAXException e) {
 

RE: Pop-Up Window

2001-10-04 Thread Tricia Ong Cheah Yen

i do apologise for not stating clearly my problem. my pop-up window has
to display form which i had declared in my struts-config.xml file

!-- Display Email Friend -->




so how do i write that upon clicking the button, my EmailFriendAction
class will be executed? i need to do initialization in my
EmailFriendAction class.

TIA
+trish



-Original Message-
From: John Schroeder [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 1:16 AM
To: [EMAIL PROTECTED]
Subject: RE: Pop-Up Window


Hi Tricia,

try adding a .do to showEmailFriend ("/util/showEmailFriend.do"). That
should solve it.

--John




-Original Message-
From: Tricia Ong Cheah Yen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 9:49 AM
To: [EMAIL PROTECTED]
Subject: Pop-Up Window
Importance: High


i've got this Javascript that pops up another window to display a Strut
form


function openWin() {
window.open("/util/showEmailFriend","_blank", "
toolbar=0,scrollbars=0,status=1,resizable=0,menubar=0,width=400,height=5
00");
}



but i kept getting an error... "can't find
C:/iPlanet/Servers/docs/util/showEmailFriend.do (File not found)"

any pointer in how i should i go about acheiving this?
+trish



RE: Problem integrating STRUTS and WEBLOGIC 6.0

2001-10-04 Thread Ajay Chitre

BinhMinh,

Here's what I did to run this on Tomcat 3.2.3:

1)  Copied the struts-upload.war file to \jakarta-tomcat-3.2.3\webapps
folder.

2)  In \jakarta-tomcat-3.2.3\conf\server.xml, I added the following lines;




3)  Started Tomcat and typed :  http://localhost:8080/upload

This works for me under Tomcat.

I haven't heard good things about Weblogic 6.0, so I would recommend
upgrading to 6.1 or downgrading to 5.1.  If you still run into problems with
Weblogic 5.1 or 6.1, let me know.  I will send you instruction for those
later.

Hope this helps.  Thanks.

-Original Message-
From: BinhMinh Nguyen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 11:29 AM
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




RE: https and struts - forcing an https connection

2001-10-04 Thread Michael Mok

Hi Matt

Here is the code I have written to redirect connection from HTTP to HTTPS
and vice versa

/*
*
*
* Function to perform HTTP and HTTPS redirection
* Author : Michael Mok ([EMAIL PROTECTED])
* Version : 1.0
*
*
*/

public static String getURL(org.apache.struts.action.ActionForward
forward, javax.servlet.http.HttpServletRequest  
request, boolean secure)
{
String path = forward.getPath();
String contextPath =
request.getContextPath().equals("/")?"":request.getContextPath();
String serverPort = Integer.toString(request.getServerPort());
StringBuffer url = new StringBuffer();
if (secure) { //user has requested to secure the server
url.append("https://";);
serverPort = ( serverPort.equals("80")?"":":"+serverPort);
} else {
url.append("http://";);
serverPort = ( serverPort.equals("443")?"":":"+serverPort);
}
url.append(request.getServerName());
//this only work if you are using the default port 80 and port 443
as secure connection
url.append(serverPort);
url.append(request.getContextPath());
url.append(path);
return url.toString();
}

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Friday, 5 October 2001 4:48
To: [EMAIL PROTECTED]
Subject: https and struts - forcing an https connection


Does anyone know if it's possible in xml configuration files (or my jsp
using
tag libraries) to make my application only accessible via an https
connection?

I know I can use javascript on my form-login page to do a redirection, but
I'm
hoping there's a cleaner way.

Thanks,

Matt


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




Beginner material on struts

2001-10-04 Thread dion

How to go about it:
 - read the resources link from the struts home page
http://jakarta.apache.org/struts/userGuide/resources.html
 - see ted husted's home page
 - try a simple app for yourself
 - read the struts-example app
 - read the mailing list archives
 - practice

>Do I need to know UML first ?
What makes you think this?


Have you read the user's guide? Installation notes? taglib guides and
references?
--
dIon Gillard, Multitask Consulting
Work:  http://www.multitask.com.au
JavaNews: http://www.multitask.com.au/JavaNews
MultitaskConsulting footer




Beginner material on struts

2001-10-04 Thread Amitkumar J Malhotra



Hello Everyone,
I am newbie in struts, could some one tell me as to how to go about it, I mean
the material that is available online , Do I need to know UML first ?I have a
fair knowledge of servlets and jsp ,I have already downloaded the struts files
from ASF site.
any tutorials and url's would be welcomed

thanx
Amit





Client-side Newsgroup

2001-10-04 Thread Alex Lin

Hi,

Is it possible to use client-side newsgroup to access struts forum ?
Such as:
news://newsgroups.borland.com/borland.public.jbuilder.corba-rmi

Thanks,
Alex Lin




Installing Struts on WebSphere Application Server 3.5.3 Advanced underWindows NT

2001-10-04 Thread dion

George,

how about posting your stack trace etc, and let everyone help you :)
--
dIon Gillard, Multitask Consulting
Work:  http://www.multitask.com.au
JavaNews: http://www.multitask.com.au/JavaNews
- Forwarded by dIon Gillard/Multitask Consulting/AU on 05/10/2001 11:28
AM -
Installing Struts on WebSphere Application Server 3.5.3 Advanced under Windows NT


Hi,

I am having a tough time trying to install Struts on WebSphere Application
Server 3.5.3 Advanced under Windows NT.
Has anyone tried installing Struts in Windows NT with Websphere Application
Server 3.5.3 Advanced?

I followed exactly all the instruction given in
http://www.husted.com/about/struts/FAQ/installation.htm  for Windows 2000
platform  (as attached after  below ) but still could not get it to
work!  I am getting errors like "Cannot find ActionMappings, etc...
According to the attached description, I am still  still bombing on the
struts-config issue that Richard discovered.
The fix proposed below could not fix my problem.

Can someone tell me who Richard is? What is the issue he discovered? What
is the solution if available?
Where can I get relevant information for solutions? Your help is highly
appreciated!

Regard,

George Lee


MultitaskConsulting footer




Problem with action servlet and Websphere 3.5.4 with Struts

2001-10-04 Thread dion

Do you have a web.xml in the servlets/web/web-inf directory?
--
dIon Gillard, Multitask Consulting
Work:  http://www.multitask.com.au
JavaNews: http://www.multitask.com.au/JavaNews
- Forwarded by dIon Gillard/Multitask Consulting/AU on 05/10/2001 11:21
AM -
Problem with action servlet and Websphere 3.5.4 with Struts


Hi everyone,

I have a problem using Websphere 3.5.4 with Struts

I keep getting the following error for the My action servlet when I
start my web app

action : Mapping for servlet 'action' = 'null'


I have the following small piece of XML code in my struts-config.xml
file.  (This is only
a small piece of the XML file, not the whole thing)

 
 
  
  
  
 
  

com.royalbank.wcm_ws.action.AddBankUserAction  DOES exist and is in my
class path but when I load  http://myServer/MyWebApp/addBankUser.do
I get the following error on my browser.
PS: my action servlet is setup up with the tag -->
*.do

Root Error-1: Invalid path /addBankUser was requested
com.ibm.servlet.engine.webapp.WebAppErrorReport: Invalid path
/addBankUser was requested

Any one know how to solve the problem ?

Thanks,

Bryan

Bryan Mallinson

Software Developer
Toronto Global Development Centre
Infosys Technologies Ltd.

Tel:  (416) 224-7469
Fax: (416) 224-7449
Email: [EMAIL PROTECTED]



   
   
   
  Previous Document (Embe (Embe Next Document  
dded   dded
image image
moved moved
to   to
file: file:
pic18 pic06
467.p 334.p
cx) cx)
   
Return to View 
   
(Embedded image moved to   
  file: pic26500.pcx)  
   



MultitaskConsulting footer
 pic18467.pcx
 pic06334.pcx
 pic26500.pcx


Error: MAPPING configuration error for request URI

2001-10-04 Thread Brett Porter
Title: Error: MAPPING configuration error for request URI





Hi,


I'm getting this error out of either struts or Tomcat. I'm a bit confused - the number of them (13) at a time, matches the number of action mappings I have, so it appears to be Struts related, but grepping the source doesn't reveal it. It isn't an exception - just a message like so:

2001-10-04 17:33:11 StandardHost[localhost]: MAPPING configuration error for request URI
x13


I only noticed after introducing Xerces as the parser instead of Crimson/JAXP - this is a requirement of Castor (just using Xerces in WEB-INF/lib causes some other problems).

It isn't critical - it doesn't actually cause anything to break as far as I can see, but I'd prefer to resolve it to make sure.

I've found nothing on either web or the mailing list archives for struts or tomcat to see what this might be caused by.


Cheers,
Brett


 





Fwd: Tomcat 4.0 and web.xml

2001-10-04 Thread Matt Raible


Can anyone tell me where the following should be placed in the web.xml file? 

   
  30 
   
 
Also, does anyone know how to turn on logging in the console on Tomcat 4.0. 

I tried posting these questions to the tomcat-user group, but they haven't
appeared yet - and it's been 12 hours!

Thanks,

Matt

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



RE: Problem getting the Struts example to work on Tomcat

2001-10-04 Thread Ajay Chitre

Ramakant,

I am not exactly sure when you're getting this message.  I am using Tomcat
3.2.3 and this is what I did.

1)  Copied the struts-example.war file to C:\jakarta-tomcat-3.2.3\webapps
folder.

2)  In C:\jakarta-tomcat-3.2.3\conf\server.xml, I added the following lines;




3)  Started Tomcat and typed :  http://localhost:8080/ex

This works for me.  Looks like you're having some classpath related problems.
 May be if you give me more info I can help.  Thanks.



-- Original Message --

>Hi,
>
>I am new to Struts and am having a hard time getting the Struts Example
>to work on my Tomcat 3.2.1
>
>I have dumped the trace of the error below. I would really appreciate if
>you can help me out with this. Thanks in advance.
>
>New org.apache.struts.webapp.example.User
>Begin event threw exception
>java.lang.ClassNotFoundException: org.apache.struts.webapp.example.User
>java.lang.Class
>java.net.URLClassLoader.findClass(java.lang.String)
>java.lang.Class
>java.lang.ClassLoader.loadClass(java.lang.String, boolea
>n)
>java.lang.Class
>sun.misc.Launcher$AppClassLoader.loadClass(java.lang.Str
>ing, boolean)
>java.lang.Class
>java.lang.ClassLoader.loadClass(java.lang.String)
>void
>org.apache.commons.digester.ObjectCreateRule.begin(org.xml.sax.Attr
>ibutes)
>void
>org.apache.commons.digester.Digester.startElement(java.lang.String,
> java.lang.String, java.lang.String, org.xml.sax.Attributes)
>void
>org.apache.xerces.parsers.SAXParser.startElement(org.apache.xerces.
>utils.QName, org.apache.xerces.framework.XMLAttrList, int)
>void
>org.apache.xerces.validators.common.XMLValidator.callStartElement(o
>rg.apache.xerces.utils.QName)
>boolean
>org.apache.xerces.framework.XMLDocumentScanner.scanElement(org.a
>pache.xerces.utils.QName)
>boolean
>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher
>.dispatch(boolean)
>boolean
>org.apache.xerces.framework.XMLDocumentScanner.parseSome(boolean
>)
>void
>org.apache.xerces.framework.XMLParser.parse(org.xml.sax.InputSource
>)
>java.lang.Object
>org.apache.commons.digester.Digester.parse(java.io.Inpu
>tStream)
>void org.apache.struts.webapp.example.DatabaseServlet.load()
>void org.apache.struts.webapp.example.DatabaseServlet.init()
>void
>javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
>void org.apache.tomcat.core.ServletWrapper.doInit()
>void org.apache.tomcat.core.Handler.init()
>void org.apache.tomcat.core.ServletWrapper.init()
>void
>org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(org.
>apache.tomcat.core.Context)
>void
>org.apache.tomcat.core.ContextManager.initContext(org.apache.tomcat
>.core.Context)
>void org.apache.tomcat.core.ContextManager.init()
>void
>org.apache.tomcat.startup.Tomcat.execute(java.lang.String[])
>void org.apache.tomcat.startup.Tomcat.main(java.lang.String[])
>cannot load servlet name: database
>
>Regards,
>RK
>
>



Ajay Chitre

Diligent Team, Inc.
(Where Diligent People Work as a Team)

http://www.DiligentTeam.com





RE: Struts DB example

2001-10-04 Thread Brett Porter
Title: RE: Struts DB example





Castor has a mailing list you can subscribe to from http://www.exolab.org. The examples it comes with are quite good, and the list will be helpful in getting them configured for you.

As far as using it with Struts (as I do), I've placed a wrapper around the persistence mechanism and retrieving/updating the business objects from my action classes, then calling methods on them. This is because most of the actions are simple and there was no need to shadow business classes with a data object.

Cheers,
Brett


-Original Message-
From: Viet Kevin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 4 October 2001 7:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Struts DB example



On Thu, 4 Oct 2001 14:03:04 +0530
"Amitkumar J Malhotra" <[EMAIL PROTECTED]> wrote:


> 
> 
> Micheal
> please could you tell me something more about castor JDO
> 
> Thanx
> Amit
> 


I'm interested too in Castor JDO, it will be cool i can have real-code examples to understand the whole thing





RE: Installing Struts on WebSphere Application Server 3.5.3 Advanced under Windows NT

2001-10-04 Thread MCMURRY, NANCY A (SBCSI)

Hi,
You mention Struts and WebSphere. I have the same goal, however my approach
is to get Struts to work in Visual Age for Java 3.5.2 with the WebSphere
test environment first and them move what I learn to the WebSphere Server.
Each document has locations of where to download the Struts and the Apache
Tomcat servlet engine. These two downloads were key to removing my errors.
Good Luck. 

This is were I am getting most of my information. Look at all of this doc,
because VAJ 3.5.3 is mentioned later in the document.
http://www7.software.ibm.com/vad.nsf/data/document2558?OpenDocument&p=1&BCT=
1&Footer=1

Overview of the two together. I found this to be more information than
instructive.
http://www7.software.ibm.com/vad.nsf/Data/Document2557?OpenDocument&p=1&BCT=
1

This may help with Tag Libraries
http://www7.software.ibm.com/vad.nsf/data/document4367?OpenDocument&p=1&BCT=
1&Footer=1


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 4:13 PM
To: [EMAIL PROTECTED]
Subject: Installing Struts on WebSphere Application Server 3.5.3
Advanced under Windows NT


Hi,

I am having a tough time trying to install Struts on WebSphere Application
Server 3.5.3 Advanced under Windows NT.
Has anyone tried installing Struts in Windows NT with Websphere Application
Server 3.5.3 Advanced?

I followed exactly all the instruction given in
http://www.husted.com/about/struts/FAQ/installation.htm  for Windows 2000
platform  (as attached after  below ) but still could not get it to
work!  I am getting errors like "Cannot find ActionMappings, etc...
According to the attached description, I am still  still bombing on the
struts-config issue that Richard discovered.
The fix proposed below could not fix my problem.

Can someone tell me who Richard is? What is the issue he discovered? What
is the solution if available?
Where can I get relevant information for solutions? Your help is highly
appreciated!

Regard,

George Lee



Installing on WebSphere 3.5.3
[Chris Assenza] After quite a bit of effort, I have finally gotten the
Struts example to work flawlessly in WebSphere 3.5.3.
What's funny is that I was reading your post Richard and was thinking to
myself: "Gee, I've done ALL of this EXACTLY --
in fact I'm even on the same OS, just different drive letters, WHAT could be
wrong??" Then it hit me, looking through your
 steps  below I found the one thing that was different that had completely
slipped through - jaxp 1.0.1. I was using jaxp 1.1.1!!
Crimson is a separate jar now, that includes the stuff from parser.jar, but
it apparently does something different then 1.0.1
and it was just screwing everything up! I downloaded 1.0.1 and got
significantly further then I ever have, but ran into another
 problem. WebSphere reported that the public identifiers for the DTD's were
malformed URLs. Luckily, I saw on another
mailing list an issue with WebSphere & Struts not liking PUBLIC DTD refs, so
I changed them to SYSTEM and away it flew -
flawlessly.

For those people who run into these issues (and because I have to document
it for work anyway - here is Richard's list again
revised with more detail on some of the bugs I encountered. (BTW, adding web
to the classpath did not help me, I had to
move it to the servlets directory).

Server: Windows 2000 Server with WebSphere 3.5.3 Advanced

Start up the adminserver.
Start up Admin Console.
Use the Convert War file task to convert the struts-example.war from the
struts-b1 distrib as-is.
Convert to the default_server, default servlet engine and standard install
directory
(c:\websphere\appserver\hosts\default_host).
Create a WEB-INF directory in the servlets dir and copy struts-config.xml,
database.xml AND web.xml into it (Keep WEB-INF
with all the TLD's under web - both WEB-INF directories must be present).
Copy jaxp 1.0.1's (NOT 1.1.1's) jaxp.jar and parser.jar to the servlets
directory of the strut-example webapp.
In the servlets directory, open struts.jar with WinZip. Extract the three
DTD's (struts-config_1_0.dtd, web-app_2_2.dtd
and web-app_2_3.dtd) into the servlets directory making sure you use folder
names (so the files extract to servlets/org/apache/struts/resources).
Click on struts-example in the Admin Console under Default Server/Default
Servlet Engine and click the advanced tab on the
right hand side of the screen.
Down where it says Default Error Page, enter /ErrorReporter and then click
Apply.
Start the Default Server via the Admin Console. You should see a whole bunch
of ActionServlet messages in the default_host_stdout.log file with no
exceptions.
Via a browser accessed the app using
http://localhost/struts-example/index.jsp.
If it returns "Application not Available" then go back to the Admin Console,
right-click on struts-example and select Restart WebApp.
Once it reports success, go back to the URL above and try again - it should
work fl

Installing Struts on WebSphere Application Server 3.5.3 Advanced underWindows NT

2001-10-04 Thread George . Lee

Hi,

I am having a tough time trying to install Struts on WebSphere Application
Server 3.5.3 Advanced under Windows NT.
Has anyone tried installing Struts in Windows NT with Websphere Application
Server 3.5.3 Advanced?

I followed exactly all the instruction given in
http://www.husted.com/about/struts/FAQ/installation.htm  for Windows 2000
platform  (as attached after  below ) but still could not get it to
work!  I am getting errors like "Cannot find ActionMappings, etc...
According to the attached description, I am still  still bombing on the
struts-config issue that Richard discovered.
The fix proposed below could not fix my problem.

Can someone tell me who Richard is? What is the issue he discovered? What
is the solution if available?
Where can I get relevant information for solutions? Your help is highly
appreciated!

Regard,

George Lee


Installing on WebSphere 3.5.3
[Chris Assenza] After quite a bit of effort, I have finally gotten the Struts example 
to work flawlessly in WebSphere 3.5.3.
What's funny is that I was reading your post Richard and was thinking to myself: "Gee, 
I've done ALL of this EXACTLY --
in fact I'm even on the same OS, just different drive letters, WHAT could be wrong??" 
Then it hit me, looking through your
 steps  below I found the one thing that was different that had completely slipped 
through - jaxp 1.0.1. I was using jaxp 1.1.1!!
Crimson is a separate jar now, that includes the stuff from parser.jar, but it 
apparently does something different then 1.0.1
and it was just screwing everything up! I downloaded 1.0.1 and got significantly 
further then I ever have, but ran into another
 problem. WebSphere reported that the public identifiers for the DTD's were malformed 
URLs. Luckily, I saw on another
mailing list an issue with WebSphere & Struts not liking PUBLIC DTD refs, so I changed 
them to SYSTEM and away it flew -
flawlessly.

For those people who run into these issues (and because I have to document it for work 
anyway - here is Richard's list again
revised with more detail on some of the bugs I encountered. (BTW, adding web to the 
classpath did not help me, I had to
move it to the servlets directory).

Server: Windows 2000 Server with WebSphere 3.5.3 Advanced

Start up the adminserver.
Start up Admin Console.
Use the Convert War file task to convert the struts-example.war from the struts-b1 
distrib as-is.
Convert to the default_server, default servlet engine and standard install directory
(c:\websphere\appserver\hosts\default_host).
Create a WEB-INF directory in the servlets dir and copy struts-config.xml, 
database.xml AND web.xml into it (Keep WEB-INF
with all the TLD's under web - both WEB-INF directories must be present).
Copy jaxp 1.0.1's (NOT 1.1.1's) jaxp.jar and parser.jar to the servlets directory of 
the strut-example webapp.
In the servlets directory, open struts.jar with WinZip. Extract the three DTD's 
(struts-config_1_0.dtd, web-app_2_2.dtd
and web-app_2_3.dtd) into the servlets directory making sure you use folder names (so 
the files extract to servlets/org/apache/struts/resources).
Click on struts-example in the Admin Console under Default Server/Default Servlet 
Engine and click the advanced tab on the
right hand side of the screen.
Down where it says Default Error Page, enter /ErrorReporter and then click Apply.
Start the Default Server via the Admin Console. You should see a whole bunch of 
ActionServlet messages in the default_host_stdout.log file with no
exceptions.
Via a browser accessed the app using http://localhost/struts-example/index.jsp.
If it returns "Application not Available" then go back to the Admin Console, 
right-click on struts-example and select Restart WebApp.
Once it reports success, go back to the URL above and try again - it should work 
flawlessly.
For whatever reason, some installations do not like XML files that reference PUBLIC 
DTD's - if in looking at the default_host_stdout.log file you see
errors about invalid public URL references during DTD registrations, or if your pages 
say "cannot find //logon or //saveRegistration (ie. action
mappings) then do the following:

Stop Default Server
Go to servlets\WEB-INF\ and edit web.xml and struts_config.xml.
In the DOCTYPE declaration, change the word PUBLIC to SYSTEM and completely
remove the line that reads "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
from web.xml and remove "-//Apache Software Foundation//DTD Struts Configuration
1.0//EN" from struts-config.xml.
Save these changes and go back to step 10 above.
Just as a troubleshooting guide -

If you are getting errors like "Cannot find ActionMappings, etc..." or "Cannot find 
key org.apache.struts.MESSAGE"
 then your application is most likely still bombing on the struts-config issue that 
Richard discovered. The above steps
 SHOULD correct that leaving nothing out. If you are getting 404 errors about //logon 
or so

Problem getting the Struts example to work on Tomcat

2001-10-04 Thread Ramakant V. Kulkarni

Hi,

I am new to Struts and am having a hard time getting the Struts Example
to work on my Tomcat 3.2.1

I have dumped the trace of the error below. I would really appreciate if
you can help me out with this. Thanks in advance.

New org.apache.struts.webapp.example.User
Begin event threw exception
java.lang.ClassNotFoundException: org.apache.struts.webapp.example.User
java.lang.Class
java.net.URLClassLoader.findClass(java.lang.String)
java.lang.Class
java.lang.ClassLoader.loadClass(java.lang.String, boolea
n)
java.lang.Class
sun.misc.Launcher$AppClassLoader.loadClass(java.lang.Str
ing, boolean)
java.lang.Class
java.lang.ClassLoader.loadClass(java.lang.String)
void
org.apache.commons.digester.ObjectCreateRule.begin(org.xml.sax.Attr
ibutes)
void
org.apache.commons.digester.Digester.startElement(java.lang.String,
 java.lang.String, java.lang.String, org.xml.sax.Attributes)
void
org.apache.xerces.parsers.SAXParser.startElement(org.apache.xerces.
utils.QName, org.apache.xerces.framework.XMLAttrList, int)
void
org.apache.xerces.validators.common.XMLValidator.callStartElement(o
rg.apache.xerces.utils.QName)
boolean
org.apache.xerces.framework.XMLDocumentScanner.scanElement(org.a
pache.xerces.utils.QName)
boolean
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher
.dispatch(boolean)
boolean
org.apache.xerces.framework.XMLDocumentScanner.parseSome(boolean
)
void
org.apache.xerces.framework.XMLParser.parse(org.xml.sax.InputSource
)
java.lang.Object
org.apache.commons.digester.Digester.parse(java.io.Inpu
tStream)
void org.apache.struts.webapp.example.DatabaseServlet.load()
void org.apache.struts.webapp.example.DatabaseServlet.init()
void
javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void org.apache.tomcat.core.ServletWrapper.doInit()
void org.apache.tomcat.core.Handler.init()
void org.apache.tomcat.core.ServletWrapper.init()
void
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(org.
apache.tomcat.core.Context)
void
org.apache.tomcat.core.ContextManager.initContext(org.apache.tomcat
.core.Context)
void org.apache.tomcat.core.ContextManager.init()
void
org.apache.tomcat.startup.Tomcat.execute(java.lang.String[])
void org.apache.tomcat.startup.Tomcat.main(java.lang.String[])
cannot load servlet name: database

Regards,
RK




RE: tomcat 4.0 and struts problem

2001-10-04 Thread Brett Porter
Title: RE: tomcat 4.0 and struts problem





Hi,


There was a similar problem discussed last week. My solution at the time was similar, and a bit dodgy :)
I've just read the Tomcat 4 Class Loader HOWTO today and that explains the problems - as you've said its all to do with XML parsers.

I think the suggestion from them is to move crimson and jaxp to $CATALINE_HOME/common/lib from jasper/lib, and not to put anything in your WEB-INF/lib directory. If you need Xerces 1.3+ instead, remove crimson & jaxp from jasper/lib and put Xerces in common/lib (not WEB-INF/lib).

I'm about to see if it fixes my struts mapping problems, and repost if not.


Cheers,
Brett


-Original Message-
From: Domingo Aguilera [mailto:[EMAIL PROTECTED]]
Sent: Friday, 5 October 2001 12:28 AM
To: [EMAIL PROTECTED]
Subject: RE: tomcat 4.0 and struts problem



I had the same problem.


What I did was:


1 - Download Jboss ( www.jboss.org )


2 - In the directory lib of jboss you can find crimson.jar and jaxp.jar
files.


3 - Copy the two files to your $TOMCAT/webapps/yourapp/WEB-INF/lib


4 - Restart tomcat.





Tomcat 4

2001-10-04 Thread David Bolsover


Using TC3.2.1 I was able to view all request parameters on the system.out
stream.

Does anyone know how to configure TC4 to provide this data?


David Bolsover
1 Stephouses,
Hollywood Lane,
Mellor,
Stockport,
Cheshire,
SK6 5LR

Tel: +44(0)161 427 6920
Fax: +44(0)161 427 6922
Mobile : +44 07773428118
E-Mail : [EMAIL PROTECTED]
Web: http://www.bolsover.com




Re: Struts 1.1 Beta and release version questions

2001-10-04 Thread Ted Husted

Technically, the nightly releases are "pre-betas". When the time comes,
there would be a formal beta (or "release candidate). But I don't think
we are anywhere near that point yet ;-)

BinhMinh Nguyen wrote:
> 
> Hi,
> 
> I am currently using Struts 1.0 and very happy with
> it.
> 
> But when I tried overnight version of struts1.1, I
> have alot of problems. I dont want to switch into
> version 1.1 yet since it is not stable for now, but in
> the other hand, I want to up front too.
> 
> my decision is now based on how soon the next beta
> version of struts 1.1 is out and how long after beta,
> a release version is out.
> this will help us make the decision very much
> thank you
> Binh
> 
> __
> Do You Yahoo!?
> NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1



more on 'include' with Struts

2001-10-04 Thread David Corbin

It has come to my attention (and I notice several threads in the archives)
that one include generally doesn't work well with Struts.  I've tried to
work around it in a whole bunch of ways.  Then I had this idea:

Is there any reason that actions have to be forwarded instead of included?
If I had the option for an action to do an include instead of a forward,
then some workarounds might actually work.  like



Thoughts?





Re: Struts capability to support file downloads

2001-10-04 Thread Scott Ryan

The technique appears to work but after the download I want to forward
to another page and it appears that if you return a forward to struts it
has a problem because you have already used the response.   
Do I have to return a null when I am done with the download?



Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 10/04/01 01:14PM >>>
The "always ask..." checkbox for me is checked and greyed.  If I choose

save to disk, then it saves fine and exits, but if I choose to open
with an 
application, then the box comes up twice.  Now, if webservers can
create 
the proper headers for downloads, I should be able to as well.  I just

don't know the proper "open sesame"  Tom

At 02:24 PM 10/4/2001 -0400, you wrote:


>Hi Tom,
>
>Not sure on how to stop it.  Is it something to do with the checkbox
on IE's
>File Download dialog which says "Always ask..."?
>
>Dave
>
>PS  I get 2 dialogs on netscape two!
>
>
>
>
>Tom Tibbetts <[EMAIL PROTECTED]> on 10/04/2001
02:07:19
>PM
>
>Please respond to [EMAIL PROTECTED]

>
>To:   [EMAIL PROTECTED] 
>cc:(bcc: David Hay/Lex/Lexmark)
>Subject:  Re: Struts capability to support file downloads
>
>
>
>Hi Scott.
>not that I know of.  I ended up grabbing the ServletOutputStream from
the
>response and streaming my file to the client that way.  On the JSP, I
>create a link that points to action mapping I've designated to do the
>download. Remember to set the content type of the file.  For the
header, do
>the following:
>  response.setHeader(
>  "Content-Disposition",
>  "attachment; filename=\"" +
>  fileName +
>  "\"" );
>
>now, a question for all those who've done this before me.  When I do
this,
>IE will pop up two dialog boxes in a row asking if I wish to save or
open
>an application to deal with the download.  Netscape will just open up
a
>file save dialog box.  Is there anyway to keep IE from doing the two
dialog
>boxes???:
>
>
>At 11:47 AM 10/4/2001 -0600, you wrote:
> >I noticed there is support in struts to allow a person to load a
file
> >from their local station to the server.
> >
> >Is there support to go the other direction?  I have an application
that
> >allows the user to download data to a file on their local system. 
I
> >would like to create the data on the server and then pop up a window
to
> >allow the user to select a location to store the data on their box. 
I
> >would then stream the data to that file on their system.
> >
> >Any suggestions would be appreciated or pointers to other sites
that
> >might discuss this.
> >
> >Thanks
> >
> >Scott Ryan
> >Developer
> >First Bank Data Corporation
> >Work: (303) 235-1485
> >Cell:(303 263-3044




RE: Digester help needed ! -- peculiar

2001-10-04 Thread Paula Young

I'm reposting to fix the typo "public void setgetErrdesc...".  text below is
corrected.  I'm still having the same parsing problem as before.

You know, if I reformat the XML string to look like this:


...it works fine (I can create my bean using the digester).

The question is why doesn't work for the XML formatted as:

18
Your smallcorp site login has expired!!


Aren't both xml formats correct?  Are these Digester peculiarities, or SAX?

I have tons of XML I need to parse that have this latter format and am
desperate to make this work!!

Thanks,  Paula Young

 -Original Message-
From:   Paula Young [mailto:[EMAIL PROTECTED]] 
Sent:   Thursday, October 04, 2001 1:34 PM
To: [EMAIL PROTECTED]
Subject:Digester help needed !

I need some basic DIGESTER help!  I think I'm trying to do
something simple, but it's not working for me and I've tried several things,
etc,etc,etc...  I just want to parse  an XML string that looks like:

18
Your smallcorp site login has expired!!


My ErrResp.java bean that should result in the parse looks
like:

package com.oaktree.struts.common;

import java.io.Serializable;

public class ErrResp implements Serializable {
   private int errnum = 0;
   private String errdesc = null;

// -- integer code for the error
   public int getErrnum() {
  return errnum;
   }

   public void setErrnum(int errnum) {
  this.errnum = errnum;
   }

   // -- description of error
   public String getErrdesc() {
  return errdesc;
   }

   public void setErrdesc(String errdesc) {
  this.errdesc = errdesc;
   }

   // -- Utils
   public String toString()  {
  StringBuffer sb = new StringBuffer("ErrResp is:\n");


  sb.append("Errnum=" + errnum + ".\n");
  sb.append("Errdesc=" + errdesc + ".\n");
  return sb.toString();
   }


}

AND my code (in the LoginAction.java ) looks like:

 // simulate XML string return for an error.
  StringBuffer xmlerr = new StringBuffer("");
  xmlerr.append("\n");

  xmlerr.append("18\n");
  xmlerr.append("Your smallcorp site login has
expired!!\n");

  xmlerr.append("\n");

  // Use Apache digester util to parse that xml string.
  // LoginResp bean : it contains: Away, Buddy, Group
beans
  String xrsp = xmlerr.toString();
  System.out.println("XML is:\n" + xrsp);
  Digester digester = new Digester();
  digester.push(this);
  digester.setDebug(10);
  digester.setValidating(false);
  digester.addObjectCreate("loginerr",
  "com.oaktree.struts.common.ErrResp");
  digester.addSetProperties("loginerr");
  digester.addSetNext("loginerr", "gotErr",
  "com.oaktree.struts.common.ErrResp");

  try {
  digester.parse(new org.xml.sax.InputSource(new
StringReader(xrsp)));
  } catch (IOException e){
  e.printStackTrace();
  } catch (SAXException e) {
  e.printStackTrace();
  }




The 'gotErr ' that's referred to above is in the
LoginAction.java class and is simply:

// Method called after parsing a Loginerr XML Response:
public void gotErr(ErrResp er)
{
System.out.println("ErrResp bean:\n" +
er.toString());
}




When it runs, the debug output I see in my window is:

New com.oaktree.struts.common.ErrResp
Set com.oaktree.struts.common.ErrResp properties
Call com.oaktree.struts.logon.LogonAction.gotErr(ErrResp is:
Errnum=0.
Errdesc=null.
)
ErrResp bean:
ErrResp is:
Errnum=0.
Errdesc=null.

Pop com.oaktree.struts.common.ErrResp

... I see the ErrResp object gets created, then properties
set, but when gotErr is ca

https and struts - forcing an https connection

2001-10-04 Thread Matt Raible

Does anyone know if it's possible in xml configuration files (or my jsp using
tag libraries) to make my application only accessible via an https connection?

I know I can use javascript on my form-login page to do a redirection, but I'm
hoping there's a cleaner way.

Thanks,

Matt


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



Re: Validation Framework: validating field length

2001-10-04 Thread steven . valin

Read under "Numeric quantifiers"

http://gnosis.cx/publish/programming/regular_expressions.html

On Thu, 04 October 2001, Matt Raible wrote:

> 
> In response to:
> 
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15960.html
> 
> Dave - what regular expression would I use to say "any characters, just less
> than 1000 characters"?
> 
> Thanks,
> 
> Matt
> 
> __
> Do You Yahoo!?
> NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1

--
Steven Valin
[EMAIL PROTECTED]



Re: Validation Framework: validating field length

2001-10-04 Thread Matt Raible

In response to:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15960.html

Dave - what regular expression would I use to say "any characters, just less
than 1000 characters"?

Thanks,

Matt

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



RE: Problem integrating STRUTS and WEBLOGIC 6.0

2001-10-04 Thread Padma Ginnaram
Title: RE: Problem integrating STRUTS and WEBLOGIC 6.0





The problem is in weblogic6.0. Read these messages for details.


http://www.mail-archive.com/jakarta-commons@jakarta.apache.org/msg02086.
http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg02611.html


-Padma


-Original Message-
From: BinhMinh Nguyen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 2:29 PM
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.java:581)
    at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:526)
    at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1078)
    at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.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





Re: Adding Xml Tag in "Struts-Config.xml" file

2001-10-04 Thread Christophe Marchand

An  entry in your web.xml should be the solution.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 04, 2001 2:55 PM
Subject: RE: Adding Xml Tag in "Struts-Config.xml" file


I have an application-config.xml.
But how my application could know the name of the file without using a
constants file ?


-Message d'origine-
De: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Date: jeudi 4 octobre 2001 15:41
À: [EMAIL PROTECTED]
Objet: Re: Adding Xml Tag in "Struts-Config.xml" file


<[EMAIL PROTECTED]> wrote:

> I need to configure my application by Xml.
>
> Is it possible to add personnal XmlTags in the "Struts-Config.xml file
> and manipulate them in a "Action" class with the Digester ?
>
> Thxs.
>
> Bruno


Why in strus-config.xml, why don't you create your own
application-config.xml?

--
gR







Re: Struts capability to support file downloads

2001-10-04 Thread Tom Tibbetts

The "always ask..." checkbox for me is checked and greyed.  If I choose 
save to disk, then it saves fine and exits, but if I choose to open with an 
application, then the box comes up twice.  Now, if webservers can create 
the proper headers for downloads, I should be able to as well.  I just 
don't know the proper "open sesame"  Tom

At 02:24 PM 10/4/2001 -0400, you wrote:


>Hi Tom,
>
>Not sure on how to stop it.  Is it something to do with the checkbox on IE's
>File Download dialog which says "Always ask..."?
>
>Dave
>
>PS  I get 2 dialogs on netscape two!
>
>
>
>
>Tom Tibbetts <[EMAIL PROTECTED]> on 10/04/2001 02:07:19
>PM
>
>Please respond to [EMAIL PROTECTED]
>
>To:   [EMAIL PROTECTED]
>cc:(bcc: David Hay/Lex/Lexmark)
>Subject:  Re: Struts capability to support file downloads
>
>
>
>Hi Scott.
>not that I know of.  I ended up grabbing the ServletOutputStream from the
>response and streaming my file to the client that way.  On the JSP, I
>create a link that points to action mapping I've designated to do the
>download. Remember to set the content type of the file.  For the header, do
>the following:
>  response.setHeader(
>  "Content-Disposition",
>  "attachment; filename=\"" +
>  fileName +
>  "\"" );
>
>now, a question for all those who've done this before me.  When I do this,
>IE will pop up two dialog boxes in a row asking if I wish to save or open
>an application to deal with the download.  Netscape will just open up a
>file save dialog box.  Is there anyway to keep IE from doing the two dialog
>boxes???:
>
>
>At 11:47 AM 10/4/2001 -0600, you wrote:
> >I noticed there is support in struts to allow a person to load a file
> >from their local station to the server.
> >
> >Is there support to go the other direction?  I have an application that
> >allows the user to download data to a file on their local system.  I
> >would like to create the data on the server and then pop up a window to
> >allow the user to select a location to store the data on their box.  I
> >would then stream the data to that file on their system.
> >
> >Any suggestions would be appreciated or pointers to other sites that
> >might discuss this.
> >
> >Thanks
> >
> >Scott Ryan
> >Developer
> >First Bank Data Corporation
> >Work: (303) 235-1485
> >Cell:(303 263-3044




RE: Pop-Up Window

2001-10-04 Thread feeley . jp

I have a question along a similar vein:

I have a pop up window that is used to populate a set of items in a main form.
This pop up window is used in several different places.

I have 2 ActionForm classes and separate Actions for the main and the pop up
form.

I need an approach on how to close the pop up window and re-call the action for
the main window, preserving the data on the main form, while adding the new data
populated on the pop up form. I see a strange mix of Javascript and
Action/ActionForm classes, and I don't know if there is a straightforward way to
handle it. The reusability of the pop up form is the key issue here.

Thanks,
Joe



 Internet Mail Message  
 Received from host:  daedalus.apache.org   
 [64.125.133.20]



From: John Schroeder <[EMAIL PROTECTED]> on 10/04/2001 05:16 PM GMT
 
 John Schroeder   To:   [EMAIL PROTECTED]   
   <[EMAIL PROTECTED]>   Cc:(bcc: Joe Feeley-JP/PGI)
  Subject:  RE: Pop-Up Window
 
10/04/2001 01:16 PM  
  Please respond to  
 [EMAIL PROTECTED]  
 





Hi Tricia,

try adding a .do to showEmailFriend ("/util/showEmailFriend.do"). That
should solve it.

--John




-Original Message-
From: Tricia Ong Cheah Yen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 9:49 AM
To: [EMAIL PROTECTED]
Subject: Pop-Up Window
Importance: High


i've got this Javascript that pops up another window to display a Strut
form


function openWin() {
 window.open("/util/showEmailFriend","_blank", "
toolbar=0,scrollbars=0,status=1,resizable=0,menubar=0,width=400,height=5
00");
 }



 but i kept getting an error... "can't find
C:/iPlanet/Servers/docs/util/showEmailFriend.do (File not found)"

 any pointer in how i should i go about acheiving this?
+trish





RE: REPOST: A hint how to do the following with a bean.

2001-10-04 Thread Alex Colic



Thanks for all the help. I got it working.

Alex



double check locking in ActionServlet not thread safe?

2001-10-04 Thread Chris Wilson

hello,

i was looking at the source code of
org.apache.struts.action.ActionServlet and noticed that it makes use of
double check locking:

...

protected Action processActionCreate(ActionMapping mapping,
 HttpServletRequest request) {

// Acquire the Action instance we will be using
String actionClass = mapping.getType();
if (debug >= 1)
log(" Looking for Action instance for class " +
actionClass);
Action actionInstance = (Action) actions.get(actionClass);
if (actionInstance == null) {
synchronized (actions) {
if (debug >= 1)
log("  Double checking for Action instance already
there");
// Double check to avoid a race condition
actionInstance = (Action) actions.get(actionClass);
if (actionInstance != null)
return (actionInstance);

...

there have been several threads in the java developer forums talking
about whether this is actually thread safe or not depending on the jvm.

http://forum.java.sun.com/thread.jsp?forum=52&thread=95242

http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html

i'm wondering if this design choice was made for a particular reason in
spite of the above information, or if the above issues were unknown to
whoever wrote this part of struts?

in general, i'm trying to discover when and how to best synchronize in
my applications and was looking at struts to get some examples.

one other question...  are the ServletContext set/getAtribute calls
thread safe, or must i sync when i use them?

could craig or any other thread-safe aware developers out there speak to
these issues?

cheers,
chris

| chris wilson || web dev ||| [EMAIL PROTECTED] || |
www.wondergeek.com | | 



Struts 1.1 Beta and release version questions

2001-10-04 Thread BinhMinh Nguyen

Hi,

I am currently using Struts 1.0 and very happy with
it.

But when I tried overnight version of struts1.1, I
have alot of problems. I dont want to switch into
version 1.1 yet since it is not stable for now, but in
the other hand, I want to up front too.

my decision is now based on how soon the next beta
version of struts 1.1 is out and how long after beta,
a release version is out.
this will help us make the decision very much
thank you 
Binh

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



Problem integrating STRUTS and WEBLOGIC 6.0

2001-10-04 Thread BinhMinh Nguyen

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.java:581)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:526)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1078)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.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



Re: Struts capability to support file downloads

2001-10-04 Thread dhay



Hi Tom,

Not sure on how to stop it.  Is it something to do with the checkbox on IE's
File Download dialog which says "Always ask..."?

Dave

PS  I get 2 dialogs on netscape two!




Tom Tibbetts <[EMAIL PROTECTED]> on 10/04/2001 02:07:19
PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Re: Struts capability to support file downloads



Hi Scott.
not that I know of.  I ended up grabbing the ServletOutputStream from the
response and streaming my file to the client that way.  On the JSP, I
create a link that points to action mapping I've designated to do the
download. Remember to set the content type of the file.  For the header, do
the following:
 response.setHeader(
 "Content-Disposition",
 "attachment; filename=\"" +
 fileName +
 "\"" );

now, a question for all those who've done this before me.  When I do this,
IE will pop up two dialog boxes in a row asking if I wish to save or open
an application to deal with the download.  Netscape will just open up a
file save dialog box.  Is there anyway to keep IE from doing the two dialog
boxes???:


At 11:47 AM 10/4/2001 -0600, you wrote:
>I noticed there is support in struts to allow a person to load a file
>from their local station to the server.
>
>Is there support to go the other direction?  I have an application that
>allows the user to download data to a file on their local system.  I
>would like to create the data on the server and then pop up a window to
>allow the user to select a location to store the data on their box.  I
>would then stream the data to that file on their system.
>
>Any suggestions would be appreciated or pointers to other sites that
>might discuss this.
>
>Thanks
>
>Scott Ryan
>Developer
>First Bank Data Corporation
>Work: (303) 235-1485
>Cell:(303 263-3044










Re: Struts capability to support file downloads

2001-10-04 Thread Tom Tibbetts

Hi Scott.
not that I know of.  I ended up grabbing the ServletOutputStream from the 
response and streaming my file to the client that way.  On the JSP, I 
create a link that points to action mapping I've designated to do the 
download. Remember to set the content type of the file.  For the header, do 
the following:
 response.setHeader(
 "Content-Disposition",
 "attachment; filename=\"" +
 fileName +
 "\"" );

now, a question for all those who've done this before me.  When I do this, 
IE will pop up two dialog boxes in a row asking if I wish to save or open 
an application to deal with the download.  Netscape will just open up a 
file save dialog box.  Is there anyway to keep IE from doing the two dialog 
boxes???:


At 11:47 AM 10/4/2001 -0600, you wrote:
>I noticed there is support in struts to allow a person to load a file
>from their local station to the server.
>
>Is there support to go the other direction?  I have an application that
>allows the user to download data to a file on their local system.  I
>would like to create the data on the server and then pop up a window to
>allow the user to select a location to store the data on their box.  I
>would then stream the data to that file on their system.
>
>Any suggestions would be appreciated or pointers to other sites that
>might discuss this.
>
>Thanks
>
>Scott Ryan
>Developer
>First Bank Data Corporation
>Work: (303) 235-1485
>Cell:(303 263-3044




Re: How to customize the way Validation Error is display

2001-10-04 Thread David Winterfeldt

I'm not sure if this is what you were asking about,
but you can use html:messages instead of html:errors
to give a little more control over displaying errors. 
The html:messages tag iterates over the errors so you
can insert markup around an individual message.  You
can also use the property attribute to retrieve a
message for an individual property (html:errors and
html:messages) so you could display an error message
next to each field.


   
  
   


David

--- Adam Grohs <[EMAIL PROTECTED]> wrote:
> Have a look at an implimentation description and
> sample that I've put
> together at www.leanonme.org.  Hope this helps.
> Thanks,
> Adam S. Grohs
> [EMAIL PROTECTED]
> 
> - Original Message -
> From: "Minh Tran" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 03, 2001 3:40 PM
> Subject: How to customize the way Validation Error
> is display
> 
> 
> > Does anyone know how to control and customize the
> way the validation error
> > is display when when fills out incorrect form
> information?
> >
> > Thanks,
> > Minh
> >
> 


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



Re: Struts capability to support file downloads

2001-10-04 Thread dhay



Scott,

Yep, this is no problem.  In your action simply open a stream, do what you want,
and then return *null* from the Action.

If you're utilising the regular download dialog, you'll want to set the response
content/header stuff.  So in your action you might have something like:

 response.setContentType("mytype");
 response.setHeader("Content-disposition", "attachment;
filename=\"myfilename.xxx\"");
 response.addHeader("Content-description", "my description");
 ServletOutputStream stream = response.getOutputStream();
 //write whatever to stream
stream.close();
return null;

Cheers,

Dave





"Scott Ryan" <[EMAIL PROTECTED]> on 10/04/2001
01:47:32 PM

Please respond to [EMAIL PROTECTED]

To:   "<" <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Struts capability to support file downloads



I noticed there is support in struts to allow a person to load a file
from their local station to the server.

Is there support to go the other direction?  I have an application that
allows the user to download data to a file on their local system.  I
would like to create the data on the server and then pop up a window to
allow the user to select a location to store the data on their box.  I
would then stream the data to that file on their system.

Any suggestions would be appreciated or pointers to other sites that
might discuss this.

Thanks

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044









Struts capability to support file downloads

2001-10-04 Thread Scott Ryan

I noticed there is support in struts to allow a person to load a file
from their local station to the server.  

Is there support to go the other direction?  I have an application that
allows the user to download data to a file on their local system.  I
would like to create the data on the server and then pop up a window to
allow the user to select a location to store the data on their box.  I
would then stream the data to that file on their system.

Any suggestions would be appreciated or pointers to other sites that
might discuss this.

Thanks

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



Digester help needed !

2001-10-04 Thread Paula Young

I need some basic DIGESTER help!  I think I'm trying to do something simple,
but it's not working for me and I've tried several things, etc,etc,etc...  I
just want to parse  an XML string that looks like:

18
Your smallcorp site login has expired!!


My ErrResp.java bean that should result in the parse looks like:

package com.oaktree.struts.common;

import java.io.Serializable;

public class ErrResp implements Serializable {
   private int errnum = 0;
   private String errdesc = null;

// -- integer code for the error
   public int getErrnum() {
  return errnum;
   }

   public void setErrnum(int errnum) {
  this.errnum = errnum;
   }

   // -- description of error
   public String getErrdesc() {
  return errdesc;
   }

   public void setgetErrdesc(String errdesc) {
  this.errdesc = errdesc;
   }

   // -- Utils
   public String toString()  {
  StringBuffer sb = new StringBuffer("ErrResp is:\n");


  sb.append("Errnum=" + errnum + ".\n");
  sb.append("Errdesc=" + errdesc + ".\n");
  return sb.toString();
   }


}

AND my code (in the LoginAction.java ) looks like:

 // simulate XML string return for an error.
  StringBuffer xmlerr = new StringBuffer("");
  xmlerr.append("\n");

  xmlerr.append("18\n");
  xmlerr.append("Your smallcorp site login has
expired!!\n");

  xmlerr.append("\n");

  // Use Apache digester util to parse that xml string.
  // LoginResp bean : it contains: Away, Buddy, Group beans
  String xrsp = xmlerr.toString();
  System.out.println("XML is:\n" + xrsp);
  Digester digester = new Digester();
  digester.push(this);
  digester.setDebug(10);
  digester.setValidating(false);
  digester.addObjectCreate("loginerr",
  "com.oaktree.struts.common.ErrResp");
  digester.addSetProperties("loginerr");
  digester.addSetNext("loginerr", "gotErr",
  "com.oaktree.struts.common.ErrResp");

  try {
  digester.parse(new org.xml.sax.InputSource(new
StringReader(xrsp)));
  } catch (IOException e){
  e.printStackTrace();
  } catch (SAXException e) {
  e.printStackTrace();
  }




The 'gotErr ' that's referred to above is in the LoginAction.java class and
is simply:

// Method called after parsing a Loginerr XML Response:
public void gotErr(ErrResp er)
{
System.out.println("ErrResp bean:\n" + er.toString());
}




When it runs, the debug output I see in my window is:

New com.oaktree.struts.common.ErrResp
Set com.oaktree.struts.common.ErrResp properties
Call com.oaktree.struts.logon.LogonAction.gotErr(ErrResp is:
Errnum=0.
Errdesc=null.
)
ErrResp bean:
ErrResp is:
Errnum=0.
Errdesc=null.

Pop com.oaktree.struts.common.ErrResp

... I see the ErrResp object gets created, then properties set, but when
gotErr is called, the bean is empty.  I'm not understanding why this
straightforward case isn't working!  Otherwise, I think the Digester utility
is pretty slick, and I'd also be interested in the reverse-digester utility,
if any, question in "tiles / portal / digester" message subject post.

Paula Young

 winmail.dat


Best practice validation of text and text area lengths ?

2001-10-04 Thread Scott Ryan

What is the best approach for using the Validator to make sure input
text is under a specified length?  

Are textareas supported by the validation framework?

Thanks

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



Re: OS / Browser tag?

2001-10-04 Thread Ted Husted

There's talk about doing something with a "os/browser bean" that would
handle the detection, and then you could use a tag to expose that
information in the page if needed.

In any event, this functionality is not directly related to the
framework resources, and so would be best provided by a generic
extension developed somewhere like Jakarta Taglibs. 

Now that places like Jakarta Taglibs is running full steam, and the
standard taglibs are on the horizon, it is unlikely that any new
functionality will be added to the Struts logic tags. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


[EMAIL PROTECTED] wrote:
> 
> Hi Jay,
> 
> Yeah, coming down to having two tags.  Would be great to add them to
> logic:present tag, but not sure it would work - seems to me there is a
> fundamental difference in that logic:present is checking for values in the
> request.
> 
> What do others think?
> 
> Dave
> 
> PS  Cross posting to dev list too.
> 
> Jay Patel <[EMAIL PROTECTED]> on 10/04/2001 11:11:34
> AM
> 
> Please respond to [EMAIL PROTECTED]
> 
> To:   "'[EMAIL PROTECTED]'"
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: OS / Browser tag?
> 
> I like the idea for the OS and Browser check. However I would suggest that
> the checks be made separately and not within one tag. How about if we can
> modify the logic:present to have two more parameters? ( that can also go for
> notPresent ).
> 
> E.g.
> 
> 
>   
> 
> 
> 
>   
> 
> 
> Above approach will result in less of a learning curve and fewer tags.
> 
> My $0.02
> 
> Jay Patel
> [EMAIL PROTECTED]
> 
> -Original Message-
> From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 04, 2001 8:13 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: OS / Browser tag?
> 
> I have something written that will do the server-side browser detection,
> etc. but not a tag for it. It's actually an adaptation of a nice PHP-based
> script that I stumbled on a while back. :) It'd be a great idea for a tag
> though - go for it! :)
> 
> Chris
> 
> Christopher Assenza
> Phone:412.201.6026
> Fax: 412.201.6060
> Email:[EMAIL PROTECTED]
> ACCESSDATA
> Moving Your Business from Point A to Point e.SM http://www.accessdc.com/
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 03, 2001 4:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: OS / Browser tag?
> 
> Sorry, maybe that wasn't clear!
> 
> I am basically looking for an IF tag which utilises the OS and/or the
> browser that the client is running on.
> 
> eg IF Unix and Netscape THEN
> would be 
>   //do something
> 
> and the tag would automatically check for current client os and browser.
> 
> Hope that's clearer!
> 
> Cheers,
> 
> Dave
> 
> "David_Hay/Lex/Lexmark.LEXMARK"@sweeper.lex.lexmark.com on 10/03/2001
> 04:17:59 PM
> 
> Please respond to [EMAIL PROTECTED]
> 
> To:   [EMAIL PROTECTED]
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  OS / Browser tag?
> 
> Hi everyone.
> 
> Just wondering if anyone has written a tag to do something specific to OS or
> Browser?
> 
> I'm probably going to write my own if no-one else has already done it!
> 
> Cheers,
> 
> Dave



RE: Pop-Up Window

2001-10-04 Thread John Schroeder

Hi Tricia,

try adding a .do to showEmailFriend ("/util/showEmailFriend.do"). That
should solve it.

--John




-Original Message-
From: Tricia Ong Cheah Yen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 9:49 AM
To: [EMAIL PROTECTED]
Subject: Pop-Up Window
Importance: High


i've got this Javascript that pops up another window to display a Strut
form


function openWin() {
window.open("/util/showEmailFriend","_blank", "
toolbar=0,scrollbars=0,status=1,resizable=0,menubar=0,width=400,height=5
00");
}



but i kept getting an error... "can't find
C:/iPlanet/Servers/docs/util/showEmailFriend.do (File not found)"

any pointer in how i should i go about acheiving this?
+trish



Re: File Upload Problem

2001-10-04 Thread Hansen, Susan

Hi Tom, Thanks, my file uploads with no problem.

On Thursday 04 October 2001 12:38 pm, Tom Tibbetts wrote:
> Hi Susan.  Go to Bugzilla and look up bug #3702 and download the the last
> two attachments and build them under the struts.upload package.  This
> should get you by until the code owner for file upload submits a permanent
> patch.
>
> At 12:20 PM 10/4/2001 -0400, you wrote:
> >Hi,
> >Does anybody know what I can do to resolve the following problem with the
> >file upload?
> >
> >Summary of problem:
> >I am using the struts nightly build from 10-4-2001 and java version
> >"1.3.1_01".
> >I have the  maxFileSize set to 10M.  The file I am loading is around 7M.
> >
> >The file upload works great exception for this large binary pdf file.
> >When I try to upload the file I  get the follow exception:
> >
> >2001-10-04 11:43:17 - Ctx( /editor ): Exception in: R( /editor +
> >/protected/createFundDocument.do + null) -
> >java.lang.ArrayIndexOutOfBoundsException
> > at
> >org.apache.struts.upload.MultipartIterator.equals(MultipartIterator.java:5
> >41) at
> >org.apache.struts.upload.MultipartIterator.createLocalFile(MultipartIterat
> >or.java:490) at
> >org.apache.struts.upload.MultipartIterator.getNextElement(MultipartIterato
> >r.java:217) at
> >org.apache.struts.upload.DiskMultipartRequestHandler.handleRequest(DiskMul
> >tipartRequestHandler.java:76) at
> > org.apache.struts.util.RequestUtils.populate(RequestUtils.java:690)
> > at
> >org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:
> >1993) at
> >org.apache.struts.action.ActionServlet.process(ActionServlet.java:1496)
> > at
> >org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:504)
> >at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> > at org.apache.tomcat.core.Handler.service(Handler.java:287)
> > at
> >org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> > at
> >org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
> >812) at
> >org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> > at
> >org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> >pConnectionHandler.java:213) at
> >org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> > at
> >org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> > at java.lang.Thread.run(Thread.java:484)



RE: Struts DB example

2001-10-04 Thread Nathan Anderson
Title: RE: Struts DB example



Michael,
 
Is 
there a .WAR file for TeaTimeJ that you'd be willing to let people play with as 
an example of DB access and Castor JDO with Struts?
 
Nathan 
Anderson

  -Original Message-From: Michael Mok 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, October 04, 2001 
  12:34 AMTo: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Cc: [EMAIL PROTECTED]Subject: RE: 
  Struts DB example
  Bill
   
  Check out TeaTimeJ Web TimeSheet www.teatimej.com . It is a STRUTS 1.0+ 
  based application and it uses Castor JDO to maintain records in a MySQL 
  database. 
   
  Regards
   
  Michael Mok
  
-Original Message-From: Bill G 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, 4 October 2001 
13:20To: [EMAIL PROTECTED]Subject: RE: 
Struts DB example
Hi 
Bret/Francisco,
 
I 
appreciate the info, but that does not help me.
 
PLEASE READ - I was hoping that someone out there 
could point me to a REAL working Struts/Database example. For me, as 
long as the sample works with a modern RDBMS with JDBC is sufficient. 
Could be Sybase, Oracle, MS/SQL Server, Ingres, MySql whatever. I do not 
care about app server, db choices or jdbc choices. All I'm looking for 
is a simple struts application utilizing a real relational database 
that inserts, updates and deletes a record into 
a table.
 
Thanks!
 
[Bill 
Gfroehrer] 
 -Original 
Message-From: Brett Porter 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 03, 
2001 5:31 PMTo: 
'[EMAIL PROTECTED]'Subject: RE: Struts DB 
example

  The struts example struts-config.xml file has an example of how to 
  create a connection pool. However, from what I now understand that is 
  deprecated. The struts-documentation webapp does have details about it 
  though if you are interested.
  I thought there was a struts taglib example that shows how to use 
  the JDBC features from JSP pages, but I think I was mistaken there - it 
  must be in the commons project.
  That being the case this isn't really a struts issue - you should 
  look at the jakarta-commons (it has DB connection pooling with good 
  examples, although it isn't really up to a release, you'll have to check 
  out the CVS).
  Specific database examples will depend on which database you use, 
  and which JDBC driver you use, and anything else you choose to layer on 
  that (app server, connection pooling, etc.).
  You should consult those sources and the web for more 
  examples.
   
  Cheers,
  Brett
  
-Original Message-From: Bill G 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, 4 October 2001 
10:19 AMTo: [EMAIL PROTECTED]Subject: 
RE: Struts DB example

Bret,
 
Sorry, I should be more 
specific.
 
The sample app 
that you and Francisco refer to does not illustrate connecting to a 
real RDMS nor does not illustrate connection pooling, where the connection logic 
goes etc...
 
That's the kind 
of stuff I'm interested in. A sample 
struts app that works with a real RDMS and illustrates CRUD would be 
great.
 
 

  -Original Message-From: Brett Porter 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 
  03, 2001 4:53 PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: Struts DB 
  example
  have a closer look. 
  -Original Message- From: Bill G [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, 4 October 2001 9:50 AM 
  To: [EMAIL PROTECTED] Subject: RE: Struts DB example 
  Francisco, 
  That is not a database example. 
  Thanks though. 
  -Original Message- From: Francisco Hernandez [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, October 03, 2001 4:43 PM 
  To: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED] Subject: Re: Struts DB 
  example 
  check out the struts example, its very simple 
  - Original Message - From: "Bill G" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 03, 2001 3:19 PM Subject: Struts DB example 
  > I'm looking for a working Struts DB example that 
  demonstrates the following; > > Four screens - insert a 
  record, update a record, delete a record and select > records > >From one table with 3 columns ID, FirstName, 
  LastName. > > 
  I've looked around various places and cannot find this. 
  > > Thanks! 
  > > > > 
  


Pop-Up Window

2001-10-04 Thread Tricia Ong Cheah Yen

i've got this Javascript that pops up another window to display a Strut
form


function openWin() {
window.open("/util/showEmailFriend","_blank", "
toolbar=0,scrollbars=0,status=1,resizable=0,menubar=0,width=400,height=5
00");
}



but i kept getting an error... "can't find
C:/iPlanet/Servers/docs/util/showEmailFriend.do (File not found)"

any pointer in how i should i go about acheiving this?
+trish




RE: File Upload Problem

2001-10-04 Thread SCHACHTER,MICHAEL (HP-NewJersey,ex2)

Hi,

I'll be working on this problem today

 - Mike

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 12:21 PM
To: [EMAIL PROTECTED]
Subject: File Upload Problem



Hi,
Does anybody know what I can do to resolve the following problem with the 
file upload?

Summary of problem:
I am using the struts nightly build from 10-4-2001 and java version 
"1.3.1_01".
I have the  maxFileSize set to 10M.  The file I am loading is around 7M.

The file upload works great exception for this large binary pdf file.
When I try to upload the file I  get the follow exception:

2001-10-04 11:43:17 - Ctx( /editor ): Exception in: R( /editor + 
/protected/createFundDocument.do + null) - 
java.lang.ArrayIndexOutOfBoundsException
at 
org.apache.struts.upload.MultipartIterator.equals(MultipartIterator.java:541
)
at 
org.apache.struts.upload.MultipartIterator.createLocalFile(MultipartIterator
.java:490)
at 
org.apache.struts.upload.MultipartIterator.getNextElement(MultipartIterator.
java:217)
at 
org.apache.struts.upload.DiskMultipartRequestHandler.handleRequest(DiskMulti
partRequestHandler.java:76)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:690)
at 
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:19
93)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1496)
at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:504)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)



Re: File Upload Problem

2001-10-04 Thread Tom Tibbetts

Hi Susan.  Go to Bugzilla and look up bug #3702 and download the the last 
two attachments and build them under the struts.upload package.  This 
should get you by until the code owner for file upload submits a permanent 
patch.

At 12:20 PM 10/4/2001 -0400, you wrote:

>Hi,
>Does anybody know what I can do to resolve the following problem with the
>file upload?
>
>Summary of problem:
>I am using the struts nightly build from 10-4-2001 and java version
>"1.3.1_01".
>I have the  maxFileSize set to 10M.  The file I am loading is around 7M.
>
>The file upload works great exception for this large binary pdf file.
>When I try to upload the file I  get the follow exception:
>
>2001-10-04 11:43:17 - Ctx( /editor ): Exception in: R( /editor +
>/protected/createFundDocument.do + null) -
>java.lang.ArrayIndexOutOfBoundsException
> at
>org.apache.struts.upload.MultipartIterator.equals(MultipartIterator.java:541)
> at
>org.apache.struts.upload.MultipartIterator.createLocalFile(MultipartIterator.java:490)
> at
>org.apache.struts.upload.MultipartIterator.getNextElement(MultipartIterator.java:217)
> at
>org.apache.struts.upload.DiskMultipartRequestHandler.handleRequest(DiskMultipartRequestHandler.java:76)
> at 
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:690)
> at
>org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:1993)
> at
>org.apache.struts.action.ActionServlet.process(ActionServlet.java:1496)
> at
>org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:504)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
>org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
> at
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> at
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
> at
>org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
>org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)




Re: Adding Xml Tag in "Struts-Config.xml" file

2001-10-04 Thread Gregor Rayman

So simply put it into hard-coded WEB-INF. This is how ActionServlet
looks for struts-config.xml

--
gR


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 04, 2001 6:00 PM
Subject: RE: Adding Xml Tag in "Struts-Config.xml" file


It's not a problem for the file name but for the directory name of the file
configuration.
If the directory change, i don't want to recompile my app.

-Message d'origine-
De: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Date: jeudi 4 octobre 2001 15:57
À: [EMAIL PROTECTED]
Objet: Re: Adding Xml Tag in "Struts-Config.xml" file


Is it a problem, if you hard code it into a final static memmber of
a class?

--
gR


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 04, 2001 3:55 PM
Subject: RE: Adding Xml Tag in "Struts-Config.xml" file


I have an application-config.xml.
But how my application could know the name of the file without using a
constants file ?


-Message d'origine-
De: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Date: jeudi 4 octobre 2001 15:41
À: [EMAIL PROTECTED]
Objet: Re: Adding Xml Tag in "Struts-Config.xml" file


<[EMAIL PROTECTED]> wrote:

> I need to configure my application by Xml.
>
> Is it possible to add personnal XmlTags in the "Struts-Config.xml file
> and manipulate them in a "Action" class with the Digester ?
>
> Thxs.
>
> Bruno


Why in strus-config.xml, why don't you create your own
application-config.xml?

--
gR








File Upload Problem

2001-10-04 Thread Hansen, Susan


Hi,
Does anybody know what I can do to resolve the following problem with the 
file upload?

Summary of problem:
I am using the struts nightly build from 10-4-2001 and java version 
"1.3.1_01".
I have the  maxFileSize set to 10M.  The file I am loading is around 7M.

The file upload works great exception for this large binary pdf file.
When I try to upload the file I  get the follow exception:

2001-10-04 11:43:17 - Ctx( /editor ): Exception in: R( /editor + 
/protected/createFundDocument.do + null) - 
java.lang.ArrayIndexOutOfBoundsException
at 
org.apache.struts.upload.MultipartIterator.equals(MultipartIterator.java:541)
at 
org.apache.struts.upload.MultipartIterator.createLocalFile(MultipartIterator.java:490)
at 
org.apache.struts.upload.MultipartIterator.getNextElement(MultipartIterator.java:217)
at 
org.apache.struts.upload.DiskMultipartRequestHandler.handleRequest(DiskMultipartRequestHandler.java:76)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:690)
at 
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:1993)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1496)
at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:504)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)




RE: OS / Browser tag?

2001-10-04 Thread Jay Patel

I have not looked at the Present Tag code or the design. However, I think if
it is designed to be flexible, present tag can be used to check the browser
and the os.

One way is to expand the "Scope" values. One more scope value can be added
as "System" where the present tag will "search" for values regarding system.

My $0.02

Jay Patel
[EMAIL PROTECTED]
 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 04, 2001 10:42 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: OS / Browser tag?




Hi Jay,

Yeah, coming down to having two tags.  Would be great to add them to
logic:present tag, but not sure it would work - seems to me there is a
fundamental difference in that logic:present is checking for values in the
request.

What do others think?

Dave

PS  Cross posting to dev list too.




Jay Patel <[EMAIL PROTECTED]> on 10/04/2001
11:11:34 AM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'"
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: OS / Browser tag?



I like the idea for the OS and Browser check. However I would suggest that
the checks be made separately and not within one tag. How about if we can
modify the logic:present to have two more parameters? ( that can also go for
notPresent ).

E.g.


  



  


Above approach will result in less of a learning curve and fewer tags.

My $0.02

Jay Patel
[EMAIL PROTECTED]



-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 8:13 AM
To: '[EMAIL PROTECTED]'
Subject: RE: OS / Browser tag?


I have something written that will do the server-side browser detection,
etc. but not a tag for it. It's actually an adaptation of a nice PHP-based
script that I stumbled on a while back. :) It'd be a great idea for a tag
though - go for it! :)

Chris

Christopher Assenza
Phone:412.201.6026
Fax: 412.201.6060
Email:[EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 4:59 PM
To: [EMAIL PROTECTED]
Subject: Re: OS / Browser tag?




Sorry, maybe that wasn't clear!

I am basically looking for an IF tag which utilises the OS and/or the
browser that the client is running on.

eg IF Unix and Netscape THEN
would be 
  //do something

and the tag would automatically check for current client os and browser.

Hope that's clearer!

Cheers,

Dave





"David_Hay/Lex/Lexmark.LEXMARK"@sweeper.lex.lexmark.com on 10/03/2001
04:17:59 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  OS / Browser tag?





Hi everyone.

Just wondering if anyone has written a tag to do something specific to OS or
Browser?

I'm probably going to write my own if no-one else has already done it!

Cheers,

Dave














RE: REPOST: A hint how to do the following with a bean.

2001-10-04 Thread MacKellar, Kimberly

To get the first element of the Vector set the length=1 in the iterate tag
for example:


 
 
 
 
 



Then to read the rest of the entries in the vector set the offset of the
iterate to such as:

 
 
 
 
 



Kimberly MacKellar

-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 7:17 AM
To: Struts
Subject: REPOST: A hint how to do the following with a bean.


Hi,

Need a hint on how to do the following:

I have a bean which is a vector of items. Each item object has a name,
description price etc. When the user selects an item I create this vector
and pass it to a page which iterates through the vector and creates a table.
Something like:

name desc price storeroombuyer

The table I get has the same data for the first two rows. I want to take out
those first two rows and place them into the table caption. Without
iterating through the vector how can I get the name and desc property of the
first item. That data is going to be the same for all the other items in the
vector.

Thanks for any help.

Alex



RE: Adding Xml Tag in "Struts-Config.xml" file

2001-10-04 Thread bruno . morin

It's not a problem for the file name but for the directory name of the file
configuration.
If the directory change, i don't want to recompile my app.

-Message d'origine-
De: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Date: jeudi 4 octobre 2001 15:57
À: [EMAIL PROTECTED]
Objet: Re: Adding Xml Tag in "Struts-Config.xml" file


Is it a problem, if you hard code it into a final static memmber of
a class?

--
gR


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 04, 2001 3:55 PM
Subject: RE: Adding Xml Tag in "Struts-Config.xml" file


I have an application-config.xml.
But how my application could know the name of the file without using a
constants file ?


-Message d'origine-
De: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Date: jeudi 4 octobre 2001 15:41
À: [EMAIL PROTECTED]
Objet: Re: Adding Xml Tag in "Struts-Config.xml" file


<[EMAIL PROTECTED]> wrote:

> I need to configure my application by Xml.
>
> Is it possible to add personnal XmlTags in the "Struts-Config.xml file
> and manipulate them in a "Action" class with the Digester ?
>
> Thxs.
>
> Bruno


Why in strus-config.xml, why don't you create your own
application-config.xml?

--
gR







RE: struts1.0 and VAJ3.5.4

2001-10-04 Thread Assenza, Chris

Check out:
http://www7.software.ibm.com/vad.nsf/data/document2558?OpenDocument&p=1&BCT

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Loka, Murlidhar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 11:04 AM
To: '[EMAIL PROTECTED]'
Subject: struts1.0 and VAJ3.5.4


I am trying to setup struts and vaj3.5.4  in WinNT.
Has anyone setup the WTE and if so - can I please get guidance to do the
same my end?

Thanks in advance.
Murlidhar.


This e-mail and any attachments may contain confidential and privileged
information. If you are not the intended recipient, please notify the sender
immediately by return e-mail, delete this e-mail and destroy any copies. Any
dissemination or use of this information by a person other than the intended
recipient is unauthorized and may be illegal. Unless otherwise stated,
opinions expressed in this e-mail are those of the author and are not
endorsed by the author's employer.




Re: REPOST: A hint how to do the following with a bean.

2001-10-04 Thread dhay



Alex,

Hi.  Just a thought - why don't you take out the first row and place it as
another item in your form bean before you get to the page?

Not ideal, but would work!

Dave





"Alex Colic" <[EMAIL PROTECTED]> on 10/04/2001
08:16:52 AM

Please respond to [EMAIL PROTECTED]

To:   "Struts" <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  REPOST: A hint how to do the following with a bean.



Hi,

Need a hint on how to do the following:

I have a bean which is a vector of items. Each item object has a name,
description price etc. When the user selects an item I create this vector
and pass it to a page which iterates through the vector and creates a table.
Something like:

name desc price storeroombuyer

The table I get has the same data for the first two rows. I want to take out
those first two rows and place them into the table caption. Without
iterating through the vector how can I get the name and desc property of the
first item. That data is going to be the same for all the other items in the
vector.

Thanks for any help.

Alex










RE: tomcat 4.0 and struts problem

2001-10-04 Thread Domingo Aguilera

I had the same problem.

What I did was:

1 - Download Jboss ( www.jboss.org )

2 - In the directory lib of jboss you can find crimson.jar and jaxp.jar
files.

3 - Copy the two files to your $TOMCAT/webapps/yourapp/WEB-INF/lib

4 - Restart tomcat.

-Mensaje original-
De: Viet Kevin [mailto:[EMAIL PROTECTED]]
Enviado el: Jueves, 04 de Octubre de 2001 09:52 a.m.
Para: [EMAIL PROTECTED]
Asunto: tomcat 4.0 and struts problem


Hello all :

I try to run struts with tomcat 4.0 and get this exception at the startup :

java.lang.NullPointerException
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at net.activia.cmanager.web.actions.CMActionServlet.init(Unknown Source)

I find this is weird because all works well with tomcat 3.*

Please help me ..., thx in advance




Re: tomcat 4.0 and struts problem

2001-10-04 Thread Viet Kevin

On Thu, 4 Oct 2001 17:08:17 +0200
Arnaud Héritier <[EMAIL PROTECTED]> wrote:

> Verify if your  tags are defined before any  tag.
> Tomcat 4 not allows to declare taglib before error-page, even though tomcat 3 
>accepts it.
> 
> > -Message d'origine-
> > De: Viet Kevin [SMTP:[EMAIL PROTECTED]]
> > Date:   jeudi 4 octobre 2001 16:52
> > À:  [EMAIL PROTECTED]
> > Objet:  tomcat 4.0 and struts problem
> > 
> > Hello all : 
> > 
> > I try to run struts with tomcat 4.0 and get this exception at the startup : 
> > 
> > java.lang.NullPointerException
> > at org.apache.struts.digester.Digester.parse(Digester.java:755)
> > at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
> > at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
> > at net.activia.cmanager.web.actions.CMActionServlet.init(Unknown Source)
> > 
> > I find this is weird because all works well with tomcat 3.*
> > 
> > Please help me ..., thx in advance

thx to come in consideration with my problem but it doesn't seem to this solution did 
work



Re: weblogic 6.0 and STRUTS problem

2001-10-04 Thread Luis Olivares

'copy the struts-upload.war to webLogic6.0sp1.'?
How you deploy the war file?

Are you using the Default Console?

- Original Message -
From: "BinhMinh Nguyen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2001 6:55 PM
Subject: weblogic 6.0 and STRUTS problem


> Hi
> I have the below error when I copy the
> struts-upload.war to webLogic6.0sp1. It just cannot
> load the app.
>
> Can you tell me why?
>
> Thanks
> Binh
>
> t: '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)
> at
> weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
> at
> weblogic.j2ee.Application.addComponent(Application.java:126)
> at
> weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
> at
>
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:283)
> at
>
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:109)
> at
>
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
76)
> at java.lang.reflect.Method.invoke(Native
> Method)
> at
>
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
> at
>
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
> at
>
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
> at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
>
> __
> Do You Yahoo!?
> NEW from Yahoo! GeoCities - quick and easy web site hosting, just
$8.95/month.
> http://geocities.yahoo.com/ps/info1




Problem with action servlet and Websphere 3.5.4 with Struts

2001-10-04 Thread Bryan Mallinson

Hi everyone,

I have a problem using Websphere 3.5.4 with Struts

I keep getting the following error for the My action servlet when I
start my web app

action : Mapping for servlet 'action' = 'null' 


I have the following small piece of XML code in my struts-config.xml
file.  (This is only
a small piece of the XML file, not the whole thing)

 




 
  

com.royalbank.wcm_ws.action.AddBankUserAction  DOES exist and is in my 
class path but when I load  http://myServer/MyWebApp/addBankUser.do
I get the following error on my browser.  
PS: my action servlet is setup up with the tag -->
*.do

Root Error-1: Invalid path /addBankUser was requested
com.ibm.servlet.engine.webapp.WebAppErrorReport: Invalid path
/addBankUser was requested 

Any one know how to solve the problem ? 

Thanks,

Bryan

Bryan Mallinson

Software Developer
Toronto Global Development Centre
Infosys Technologies Ltd.

Tel:  (416) 224-7469
Fax: (416) 224-7449
Email: [EMAIL PROTECTED]




Re: Struts (JSP+Servlet) Framework and EJB Framework!

2001-10-04 Thread Luis Olivares

I used Jboss with Tomcat embedded (both being Open Source). Also the jboss
documentation its pretty complete.

The only thing you really need to deploy your app in jboss (once you know
how to do it in Tomcat, I mean) its to create a Pool and Datasource, and
associate the Datasource with your EJB (Deploy of EJB its automatic).;)

I hope this orientated you.

Regards.

   Luis Olivares.
   [EMAIL PROTECTED]
   --
  "Intelligence is the ability to avoid doing
   work, yet getting the work done"
  --Linus Torvalds--

- Original Message -
From: "Long Nguyen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2001 4:21 AM
Subject: Struts (JSP+Servlet) Framework and EJB Framework!



Hi all!

Struts framework may be focus on presentation tier.
This time I need a framework for business logic tier (EJB framework).

Would you like to show me some EJB framework that you know ?

Regards!
Long Nguyen







Antigen found =*.vcf file

2001-10-04 Thread ANTIGEN_MG01

Antigen for Exchange found peter.alfors.vcf matching =*.vcf file filter.
The file is currently Deleted.  The message, "Re: Refreshing/Reloading
MessageResources", was
sent from Peter Alfors  and was discovered in IMC Queues\Inbound
located at IBC/PA1/MG01.
...



RE: tomcat 4.0 and struts problem

2001-10-04 Thread Arnaud Héritier

Verify if your  tags are defined before any  tag.
Tomcat 4 not allows to declare taglib before error-page, even though tomcat 3 accepts 
it.

> -Message d'origine-
> De:   Viet Kevin [SMTP:[EMAIL PROTECTED]]
> Date: jeudi 4 octobre 2001 16:52
> À:[EMAIL PROTECTED]
> Objet:tomcat 4.0 and struts problem
> 
> Hello all : 
> 
> I try to run struts with tomcat 4.0 and get this exception at the startup : 
> 
> java.lang.NullPointerException
>   at org.apache.struts.digester.Digester.parse(Digester.java:755)
>   at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
>   at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
>   at net.activia.cmanager.web.actions.CMActionServlet.init(Unknown Source)
> 
> I find this is weird because all works well with tomcat 3.*
> 
> Please help me ..., thx in advance




Re: How to open a new browser window in struts

2001-10-04 Thread Luis Olivares

In the form where you put your search criteria use the 'target' attribute.

Something like:


In 'target' you are supposed to tell the form to which frame it will be
forwarded, but if you set the target to a non-existent frame, it'll open a
new window.

Hope this helps :)

Regards.

   Luis Olivares.
   [EMAIL PROTECTED]
   --
  "Intelligence is the ability to avoid doing
   work, yet getting the work done"
  --Linus Torvalds--

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 04, 2001 8:26 AM
Subject: How to open a new browser window in struts


> Hi,
>
> I am new to Struts.
>
> I am having a form where in the user can enter the search criteria and
> click the submit .
> We need to  show the search results in a new window as popup.
>
> If I use actionMapping.findForward() in the perform method of Action
> class it shows the results in the same window.How can I  display the
> results in the new window.
>
> Can anyone pull me out from this problem?
>
> Thanks in advance,
> Yugandhar




RE: OS / Browser tag?

2001-10-04 Thread Jay Patel

I like the idea for the OS and Browser check. However I would suggest that
the checks be made separately and not within one tag. How about if we can
modify the logic:present to have two more parameters? ( that can also go for
notPresent ).

E.g.


  



  


Above approach will result in less of a learning curve and fewer tags. 

My $0.02

Jay Patel
[EMAIL PROTECTED]
 


-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 04, 2001 8:13 AM
To: '[EMAIL PROTECTED]'
Subject: RE: OS / Browser tag?


I have something written that will do the server-side browser detection,
etc. but not a tag for it. It's actually an adaptation of a nice PHP-based
script that I stumbled on a while back. :) It'd be a great idea for a tag
though - go for it! :) 

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 4:59 PM
To: [EMAIL PROTECTED]
Subject: Re: OS / Browser tag?




Sorry, maybe that wasn't clear!

I am basically looking for an IF tag which utilises the OS and/or the
browser that the client is running on.

eg IF Unix and Netscape THEN
would be 
  //do something

and the tag would automatically check for current client os and browser.

Hope that's clearer!

Cheers,

Dave





"David_Hay/Lex/Lexmark.LEXMARK"@sweeper.lex.lexmark.com on 10/03/2001
04:17:59 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  OS / Browser tag?





Hi everyone.

Just wondering if anyone has written a tag to do something specific to OS or
Browser?

I'm probably going to write my own if no-one else has already done it!

Cheers,

Dave









Re: Refreshing/Reloading MessageResources

2001-10-04 Thread Peter Alfors


You can create an administrator action to peform this for you.
I think that the struts-example app might have an example of this.
You might want to check the archives, because this question has been
asked many times.
HTH,
    Pete
Mitesh Mehta wrote:
 Is
there a way to refresh/reload messages from a resource bundle once they
have been cached in memory?Mitesh
Mehta
S1 Corp (http://www.s1.com)


begin:vcard 
n:;
x-mozilla-html:FALSE
org:http://www.irista.com/images/common/logo_top_right.gif";>
adr:;;
version:2.1
end:vcard



struts1.0 and VAJ3.5.4

2001-10-04 Thread Loka, Murlidhar

I am trying to setup struts and vaj3.5.4  in WinNT.
Has anyone setup the WTE and if so - can I please get guidance to do the
same my end?

Thanks in advance.
Murlidhar.


This e-mail and any attachments may contain confidential and privileged
information. If you are not the intended recipient, please notify the sender
immediately by return e-mail, delete this e-mail and destroy any copies. Any
dissemination or use of this information by a person other than the intended
recipient is unauthorized and may be illegal. Unless otherwise stated,
opinions expressed in this e-mail are those of the author and are not
endorsed by the author's employer.





tomcat 4.0 and struts problem

2001-10-04 Thread Viet Kevin

Hello all : 

I try to run struts with tomcat 4.0 and get this exception at the startup : 

java.lang.NullPointerException
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at net.activia.cmanager.web.actions.CMActionServlet.init(Unknown Source)

I find this is weird because all works well with tomcat 3.*

Please help me ..., thx in advance



Refreshing/Reloading MessageResources

2001-10-04 Thread Mitesh Mehta



Is 
there a way to refresh/reload messages from a resource bundle once they have 
been cached in memory?
Mitesh MehtaS1 Corp (http://www.s1.com) 


Re: How to open a new browser window in struts

2001-10-04 Thread Peter Alfors

You can set the target of the form to be a new window.  The browser will
then be responsible for
loading the resulting page into a new window.

HTH,
Pete

[EMAIL PROTECTED] wrote:

> Hi,
>
> I am new to Struts.
>
> I am having a form where in the user can enter the search criteria and
> click the submit .
> We need to  show the search results in a new window as popup.
>
> If I use actionMapping.findForward() in the perform method of Action
> class it shows the results in the same window.How can I  display the
> results in the new window.
>
> Can anyone pull me out from this problem?
>
> Thanks in advance,
> Yugandhar




How to open a new browser window in struts

2001-10-04 Thread Yugandhar_Reddy

Hi,

I am new to Struts.

I am having a form where in the user can enter the search criteria and
click the submit .
We need to  show the search results in a new window as popup.

If I use actionMapping.findForward() in the perform method of Action
class it shows the results in the same window.How can I  display the
results in the new window.

Can anyone pull me out from this problem?

Thanks in advance,
Yugandhar




Re: Forwarding actions

2001-10-04 Thread Eric Rizzo

chiji nwankwo wrote:

> Hi,
> 
> When I forward from one action to another action, is it possible to find 
> out ( at run-time ) which action the forward came from?


I would think you could just set a variable in request scope before you forward, 
then read it in the forwarded-to action.

HTH,
Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Forwarding actions

2001-10-04 Thread chiji nwankwo
Hi,
When I forward from one action to another action, is it possible to find out ( at run-time ) which action the forward came from?
eg
If class A forwards to class B.  Can class B tell that it was forwarded to by class A?
Thanks
ChijiGet your FREE download of MSN Explorer at http://explorer.msn.com--- Begin Message ---

Hi,
When I forward from one action to another action, is it possible to find out ( at run-time ) which action the forward came from?
eg
If class A forwards to class B.  Can class B tell that it was forwarded to by class A?
Thanks
Chiji

>From: Steven Valin <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Problem with weblogic
>Date: Thu, 04 Oct 2001 07:30:00 -0400
>MIME-Version: 1.0
>Received: from [64.125.133.20] by hotmail.com (3.2) with ESMTP id MHotMailBD85930A003E4136E825407D85140BF70; Thu, 04 Oct 2001 04:29:14 -0700
>Received: (qmail 13106 invoked by uid 500); 4 Oct 2001 11:28:27 -
>Received: (qmail 13099 invoked from network); 4 Oct 2001 11:28:27 -
>Received: from c000-h001.c000.snv.cp.net (HELO c000.snv.cp.net) (209.228.32.65) by daedalus.apache.org with SMTP; 4 Oct 2001 11:28:27 -
>Received: (cpmta 9915 invoked from network); 4 Oct 2001 04:28:24 -0700
>Received: from 146-115-72-145.c3-0.brl-ubr1.sbo-brl.ma.cable.rcn.com (HELO javelinsoftware.com) (146.115.72.145) by smtp.javelinsoftware.com (209.228.32.65) with SMTP; 4 Oct 2001 04:28:24 -0700
>From struts-user-return-18347-cn081 Thu, 04 Oct 2001 04:30:01 -0700
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>list-help: 
>list-unsubscribe: 
>list-post: 
>Delivered-To: mailing list [EMAIL PROTECTED]
>X-Sent: 4 Oct 2001 11:28:24 GMT
>Message-ID: <[EMAIL PROTECTED]>
>X-Mailer: Mozilla 4.76 [en] (WinNT; U)
>X-Accept-Language: en,pdf
>References: <[EMAIL PROTECTED]>
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>Or put the struts.jar in the WEB-INF/lib directory of your war file.
>
>Jonathan M Crater wrote:
>
> > sounds like a classpath issue to me. make sure your struts.jar is in your
> > weblogic classpath when the server is started.
> >
> > ALAMI Ahmed - BOR wrote:
> >
> > > Hello everyone
> > >
> > > Does anyone knows the steps to deploy a WAR application using struts under
> > > Weblogic please
> > > When compiling to create the web.xml and weblogic.xml, it returns an error
> > > Exception in thread "main" java.lang.NoClassDefFoundError:
> > > org/apache/struts/action/Act
> > > ion
> > >
> > > Help me please
> > >
> > > Ahmed ALAMI
> > > Stagiaire
> > >
> > >
> > > 8, rue Gustave Hertz - 33600 Pessac
> > > * 05.57.89.00.36 *06.17.23.26.61 * 05.56.36.64.71
> > > * [EMAIL PROTECTED]
> > >
> > > -Message d'origine-
> > > De : Bang, Steinar [mailto:[EMAIL PROTECTED]]
> > > Envoyé : jeudi 4 octobre 2001 10:47
> > > À : '[EMAIL PROTECTED]'
> > > Objet : struts-example.war from struts 1.0, and missing .do servlets
> > > (and how to get web.xml)
> > >
> > > Platform: debian woody, apache 1.3.19, tomcat 3.2.3,
> > > struts 1.0, Java2 SDK 1.3
> > >
> > > [I'm not on the mailing list, so please Cc me on any
> > > response. Thanx!]
> > >
> > > I've downloaded the binary distribution of struts 1.0
> > > from
> > >
> > >
> > > And followed a modified version of what the INSTALL
> > > file says about installation under Tomcat:
> > > - I've copied "struts-documentation.war" and
> > > "struts-example.war" to /usr/share/java/webapps/
> > > - I've added "DirectoryIndex index.jsp index.html" and
> > > "AddHandler jserv-servlet .do" to /etc/apache/srm.conf
> > > - I've restarted tomcat and then restarted apache
> > >
> > > The URL seems to
> > > work fine, but has
> > > some problems:
> > > - how do I get the web.xml file from struts-example?
> > > (the tutorial says to look at it to see how you
> > > should create a web.xml file for your own application)
> > > If I remove the DirectoryIndex mapping for index.jsp,
> > > I get to list the directory for struts-example, but
> > > I'm not allowed to access
> > > where I presume the web.xml file can be found?
> > >
> > > - the other problem is related to actually running
> > > the application. If I try clicking on the link
> > > "Register with the MailReader Demonstration Application",
> > > I get a 404 not found on the URL
> > > /struts-example/editRegistration.do;jsessionid=83vbrf4511
> > > The "Walking tour of the Example Application", gives
> > > me a 404 Not found, on the URL
> > > /struts-example/tour.do;jsessionid=84vbfr4511
> > > The "Log on to the MailReader Demonstation Application"
> > > pops up a form requesting username and password,
> > > but I don't have anything meaningful to give it,
> > > so I can't test if it actually works.
> > > Both the "problem" links are .do files. When
> > > I remove the index.jsp DirectoryIndex mapping
> > > I can't find any .do files on the top level.
> > > Presumably they reside under WEB-INF/ somewhere,
> > > but since I can't

Multiple ActionServlets/configs per webapp?

2001-10-04 Thread Gary Johnston

Is it possible to have multiple ActionServlets (each using a different Struts config. file) in the same web app?  I.e., there would be two (or more) servlet definitions (and corresponding servlet mappings) in the web.xml file, each specifying a different Struts config. file?  Would this work, or would the ActionServlets step on each other's toes in some way?
___
Gary Johnston
IBM Software Group, Research Triangle Park, NC

Re: Adding Xml Tag in "Struts-Config.xml" file

2001-10-04 Thread Gregor Rayman

Is it a problem, if you hard code it into a final static memmber of
a class?

--
gR


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 04, 2001 3:55 PM
Subject: RE: Adding Xml Tag in "Struts-Config.xml" file


I have an application-config.xml.
But how my application could know the name of the file without using a
constants file ?


-Message d'origine-
De: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Date: jeudi 4 octobre 2001 15:41
À: [EMAIL PROTECTED]
Objet: Re: Adding Xml Tag in "Struts-Config.xml" file


<[EMAIL PROTECTED]> wrote:

> I need to configure my application by Xml.
>
> Is it possible to add personnal XmlTags in the "Struts-Config.xml file
> and manipulate them in a "Action" class with the Digester ?
>
> Thxs.
>
> Bruno


Why in strus-config.xml, why don't you create your own
application-config.xml?

--
gR






RE: Adding Xml Tag in "Struts-Config.xml" file

2001-10-04 Thread bruno . morin

I have an application-config.xml. 
But how my application could know the name of the file without using a
constants file ?


-Message d'origine-
De: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Date: jeudi 4 octobre 2001 15:41
À: [EMAIL PROTECTED]
Objet: Re: Adding Xml Tag in "Struts-Config.xml" file


<[EMAIL PROTECTED]> wrote:

> I need to configure my application by Xml.
>
> Is it possible to add personnal XmlTags in the "Struts-Config.xml file
> and manipulate them in a "Action" class with the Digester ?
>
> Thxs.
>
> Bruno


Why in strus-config.xml, why don't you create your own
application-config.xml?

--
gR





Re: Adding Xml Tag in "Struts-Config.xml" file

2001-10-04 Thread Gregor Rayman

<[EMAIL PROTECTED]> wrote:

> I need to configure my application by Xml.
>
> Is it possible to add personnal XmlTags in the "Struts-Config.xml file
> and manipulate them in a "Action" class with the Digester ?
>
> Thxs.
>
> Bruno


Why in strus-config.xml, why don't you create your own application-config.xml?

--
gR




Adding Xml Tag in "Struts-Config.xml" file

2001-10-04 Thread bruno . morin

I need to configure my application by Xml.

Is it possible to add personnal XmlTags in the "Struts-Config.xml file
and manipulate them in a "Action" class with the Digester ?

Thxs.

Bruno




First problem with Struts

2001-10-04 Thread Tim Wei-TM

 Hi, there

Can any body have look of this probelm? Please help with any answer!

I use weblogic5.1 to deploy a Struts application. When the server starts, it
shows the following error message:

Thu Oct 04 09:09:16 EDT 2001:  Root
cause of ServletException
javax.servlet.ServletException: runtime failure in custom tag 'message'
at jsp_servlet._index._jspService(_index.java:106)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:106)
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:129)

Thanks.

Tim 



RE: maxlength in

2001-10-04 Thread Geddes, Mark (ANTS)



You 
can't. There is no MAXLENGTH attribute for the TEXTAREA tag in 
html.
You 
can check the length in the form bean after the user has submitted the form, or 
maybe you could use javascript.
 
Mark

  -Original Message-From: prakhar 
  [mailto:[EMAIL PROTECTED]]Sent: 04 October 2001 
  14:15To: [EMAIL PROTECTED]Subject: 
  maxlength in 
  I am using 
   . I want to validate maxlength = 128. How 
  Can I do it.
   
  Prakhar

***
This email message contains confidential information for the above addressee only.  If you are not the intended addressee you must not disclose or use the information in any manner whatsoever.

Any opinion or views contained in this email message are those of the sender, do not represent those of the Company in any way and reliance should not be placed upon its contents.

Unless otherwise stated this email message is not intended to be contractually binding.  Where an Agreement exists between our respective companies and there is conflict between the contents of this email message and the Agreement then the terms of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered Office:  Abbey House, Baker Street, London NW1 6XL.  Company Registration No: 2338548.  Regulated by the SFA
***



RE: OS / Browser tag?

2001-10-04 Thread Assenza, Chris

I have something written that will do the server-side browser detection,
etc. but not a tag for it. It's actually an adaptation of a nice PHP-based
script that I stumbled on a while back. :) It'd be a great idea for a tag
though - go for it! :) 

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 4:59 PM
To: [EMAIL PROTECTED]
Subject: Re: OS / Browser tag?




Sorry, maybe that wasn't clear!

I am basically looking for an IF tag which utilises the OS and/or the
browser
that the client is running on.

eg IF Unix and Netscape THEN
would be 
  //do something

and the tag would automatically check for current client os and browser.

Hope that's clearer!

Cheers,

Dave





"David_Hay/Lex/Lexmark.LEXMARK"@sweeper.lex.lexmark.com on 10/03/2001
04:17:59
PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  OS / Browser tag?





Hi everyone.

Just wondering if anyone has written a tag to do something specific to OS or
Browser?

I'm probably going to write my own if no-one else has already done it!

Cheers,

Dave










maxlength in

2001-10-04 Thread prakhar



I am using 
 . I want to validate maxlength = 128. How Can I do 
it.
 
Prakhar


tiles / portal / digester

2001-10-04 Thread Nathan Coast

Hi,

I'm trying to develop a basic portal app using tiles.  Each user may have
selected different components that they want to display in different
locations.  At the moment the I'm thinking of implementing this by
dynamically building up a Definition for each user containing their
preferences - an object representation of something like this:


  
  




  
  





  


when saving a users preferences I'd convert the object tree to xml and store
it somewhere.  

Is this a good idea?
Is there a standard way of reversing the Digester code (taking an object
tree and generating XML) - do we need a regurgitater :)
Is it possible to re-use the digester that tiles uses to read the
tilesDefinition.xml to generate the object tree when retrieving the
preferences from the database?

Cheers
Nathan


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper at LevelSeas for the presence of computer viruses.

www.mimesweeper.com
**



RE: REPOST: A hint how to do the following with a bean.

2001-10-04 Thread Geddes, Mark (ANTS)

I would have thought that you are going to have to try and read the first
element of the Collection prior to the iterate tag, and store the first
element in the page context so that you can use its name and desc attributes
to populate the table caption.
You could try with tags but I would use a scriptlet to start with. Don't
forget to ensure that the Vector is not empty before reading the first
element.

Mark


-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: 04 October 2001 13:17
To: Struts
Subject: REPOST: A hint how to do the following with a bean.


Hi,

Need a hint on how to do the following:

I have a bean which is a vector of items. Each item object has a name,
description price etc. When the user selects an item I create this vector
and pass it to a page which iterates through the vector and creates a table.
Something like:

name desc price storeroombuyer

The table I get has the same data for the first two rows. I want to take out
those first two rows and place them into the table caption. Without
iterating through the vector how can I get the name and desc property of the
first item. That data is going to be the same for all the other items in the
vector.

Thanks for any help.

Alex


***
This email message contains confidential information for the above addressee only.  If 
you are not the intended addressee you must not disclose or use the information in any 
manner whatsoever.

Any opinion or views contained in this email message are those of the sender, do not 
represent those of the Company in any way and reliance should not be placed upon its 
contents.

Unless otherwise stated this email message is not intended to be contractually 
binding.  Where an Agreement exists between our respective companies and there is 
conflict between the contents of this email message and the Agreement then the terms 
of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered Office:  Abbey 
House, Baker Street, London NW1 6XL.  Company Registration No: 2338548.  Regulated by 
the SFA
***



REPOST: A hint how to do the following with a bean.

2001-10-04 Thread Alex Colic

Hi,

Need a hint on how to do the following:

I have a bean which is a vector of items. Each item object has a name,
description price etc. When the user selects an item I create this vector
and pass it to a page which iterates through the vector and creates a table.
Something like:

name desc price storeroombuyer

The table I get has the same data for the first two rows. I want to take out
those first two rows and place them into the table caption. Without
iterating through the vector how can I get the name and desc property of the
first item. That data is going to be the same for all the other items in the
vector.

Thanks for any help.

Alex




Re: Problem with weblogic

2001-10-04 Thread chiji nwankwo

Hi,
When I forward from one action to another action, is it possible to find out ( at run-time ) which action the forward came from?
eg
If class A forwards to class B.  Can class B tell that it was forwarded to by class A?
Thanks
Chiji

>From: Steven Valin <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED] 
>To: [EMAIL PROTECTED] 
>Subject: Re: Problem with weblogic 
>Date: Thu, 04 Oct 2001 07:30:00 -0400 
>MIME-Version: 1.0 
>Received: from [64.125.133.20] by hotmail.com (3.2) with ESMTP id MHotMailBD85930A003E4136E825407D85140BF70; Thu, 04 Oct 2001 04:29:14 -0700 
>Received: (qmail 13106 invoked by uid 500); 4 Oct 2001 11:28:27 - 
>Received: (qmail 13099 invoked from network); 4 Oct 2001 11:28:27 - 
>Received: from c000-h001.c000.snv.cp.net (HELO c000.snv.cp.net) (209.228.32.65) by daedalus.apache.org with SMTP; 4 Oct 2001 11:28:27 - 
>Received: (cpmta 9915 invoked from network); 4 Oct 2001 04:28:24 -0700 
>Received: from 146-115-72-145.c3-0.brl-ubr1.sbo-brl.ma.cable.rcn.com (HELO javelinsoftware.com) (146.115.72.145) by smtp.javelinsoftware.com (209.228.32.65) with SMTP; 4 Oct 2001 04:28:24 -0700 
>From struts-user-return-18347-cn081 Thu, 04 Oct 2001 04:30:01 -0700 
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm 
>Precedence: bulk 
>list-help: 
>list-unsubscribe: 
>list-post: 
>Delivered-To: mailing list [EMAIL PROTECTED] 
>X-Sent: 4 Oct 2001 11:28:24 GMT 
>Message-ID: <[EMAIL PROTECTED]> 
>X-Mailer: Mozilla 4.76 [en] (WinNT; U) 
>X-Accept-Language: en,pdf 
>References: <[EMAIL PROTECTED]> 
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 
> 
>Or put the struts.jar in the WEB-INF/lib directory of your war file. 
> 
>Jonathan M Crater wrote: 
> 
> > sounds like a classpath issue to me. make sure your struts.jar is in your 
> > weblogic classpath when the server is started. 
> > 
> > ALAMI Ahmed - BOR wrote: 
> > 
> > > Hello everyone 
> > > 
> > > Does anyone knows the steps to deploy a WAR application using struts under 
> > > Weblogic please 
> > > When compiling to create the web.xml and weblogic.xml, it returns an error 
> > > Exception in thread "main" java.lang.NoClassDefFoundError: 
> > > org/apache/struts/action/Act 
> > > ion 
> > > 
> > > Help me please 
> > > 
> > > Ahmed ALAMI 
> > > Stagiaire 
> > > 
> > > 
> > > 8, rue Gustave Hertz - 33600 Pessac 
> > > * 05.57.89.00.36 *06.17.23.26.61 * 05.56.36.64.71 
> > > * [EMAIL PROTECTED] 
> > > 
> > > -Message d'origine- 
> > > De : Bang, Steinar [mailto:[EMAIL PROTECTED]] 
> > > Envoyé : jeudi 4 octobre 2001 10:47 
> > > À : '[EMAIL PROTECTED]' 
> > > Objet : struts-example.war from struts 1.0, and missing .do servlets 
> > > (and how to get web.xml) 
> > > 
> > > Platform: debian woody, apache 1.3.19, tomcat 3.2.3, 
> > > struts 1.0, Java2 SDK 1.3 
> > > 
> > > [I'm not on the mailing list, so please Cc me on any 
> > > response. Thanx!] 
> > > 
> > > I've downloaded the binary distribution of struts 1.0 
> > > from 
> > > 
> > > 
> > > And followed a modified version of what the INSTALL 
> > > file says about installation under Tomcat: 
> > > - I've copied "struts-documentation.war" and 
> > > "struts-example.war" to /usr/share/java/webapps/ 
> > > - I've added "DirectoryIndex index.jsp index.html" and 
> > > "AddHandler jserv-servlet .do" to /etc/apache/srm.conf 
> > > - I've restarted tomcat and then restarted apache 
> > > 
> > > The URL seems to 
> > > work fine, but has 
> > > some problems: 
> > > - how do I get the web.xml file from struts-example? 
> > > (the tutorial says to look at it to see how you 
> > > should create a web.xml file for your own application) 
> > > If I remove the DirectoryIndex mapping for index.jsp, 
> > > I get to list the directory for struts-example, but 
> > > I'm not allowed to access 
> > > where I presume the web.xml file can be found? 
> > > 
> > > - the other problem is related to actually running 
> > > the application. If I try clicking on the link 
> > > "Register with the MailReader Demonstration Application", 
> > > I get a 404 not found on the URL 
> > > /struts-example/editRegistration.do;jsessionid=83vbrf4511 
> > > The "Walking tour of the Example Application", gives 
> > > me a 404 Not found, on the URL 
> > > /struts-example/tour.do;jsessionid=84vbfr4511 
> > > The "Log on to the MailReader Demonstation Application" 
> > > pops up a form requesting username and password, 
> > > but I don't have anything meaningful to give it, 
> > > so I can't test if it actually works. 
> > > Both the "problem" links are .do files. When 
> > > I remove the index.jsp DirectoryIndex mapping 
> > > I can't find any .do files on the top level. 
> > > Presumably they reside under WEB-INF/ somewhere, 
> > > but since I can't access that directory from the 
> > > web browser, I can't check. 
> > > I'm guessing that I'm missing some configuration 
> > > on .do files, but I don't know what. 
> > > 
> > > I'm continuing to dig at the problems, 

Re: Problem with weblogic

2001-10-04 Thread Steven Valin

Or put the struts.jar in the WEB-INF/lib directory of your war file.

Jonathan M Crater wrote:

> sounds like a classpath issue to me.  make sure your struts.jar is in your
> weblogic classpath when the server is started.
>
> ALAMI Ahmed - BOR wrote:
>
> > Hello everyone
> >
> > Does anyone knows the steps to deploy a WAR application using struts under
> > Weblogic please
> > When compiling to create the web.xml and weblogic.xml, it returns an error
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/apache/struts/action/Act
> > ion
> >
> > Help me please
> >
> > Ahmed ALAMI
> > Stagiaire
> >
> >
> > 8, rue Gustave Hertz - 33600 Pessac
> > * 05.57.89.00.36 *06.17.23.26.61 * 05.56.36.64.71
> > * [EMAIL PROTECTED]
> >
> > -Message d'origine-
> > De : Bang, Steinar [mailto:[EMAIL PROTECTED]]
> > Envoyé : jeudi 4 octobre 2001 10:47
> > À : '[EMAIL PROTECTED]'
> > Objet : struts-example.war from struts 1.0, and missing .do servlets
> > (and how to get web.xml)
> >
> > Platform: debian woody, apache 1.3.19, tomcat 3.2.3,
> >   struts 1.0, Java2 SDK 1.3
> >
> > [I'm not on the mailing list, so please Cc me on any
> >  response.  Thanx!]
> >
> > I've downloaded the binary distribution of struts 1.0
> > from
> > 
> >
> > And followed a modified version of what the INSTALL
> > file says about installation under Tomcat:
> >  - I've copied "struts-documentation.war" and
> >"struts-example.war" to /usr/share/java/webapps/
> >  - I've added "DirectoryIndex index.jsp index.html" and
> >"AddHandler jserv-servlet .do" to /etc/apache/srm.conf
> >  - I've restarted tomcat and then restarted apache
> >
> > The  URL seems to
> > work fine, but  has
> > some problems:
> >  - how do I get the web.xml file from struts-example?
> >(the tutorial says to look at it to see how you
> > should create a web.xml file for your own application)
> >If I remove the DirectoryIndex mapping for index.jsp,
> >I get to list the directory for struts-example, but
> >I'm not allowed to access 
> >where I presume the web.xml file can be found?
> >
> >  - the other problem is related to actually running
> >the application.  If I try clicking on the link
> >"Register with the MailReader Demonstration Application",
> >I get a 404 not found on the URL
> > /struts-example/editRegistration.do;jsessionid=83vbrf4511
> >The "Walking tour of the Example Application", gives
> >me a 404 Not found, on the URL
> > /struts-example/tour.do;jsessionid=84vbfr4511
> >The "Log on to the MailReader Demonstation Application"
> >pops up a form requesting username and password,
> >but I don't have anything meaningful to give it,
> >so I can't test if it actually works.
> >Both the "problem" links are .do files.  When
> >I remove the index.jsp DirectoryIndex mapping
> >I can't find any .do files on the top level.
> >Presumably they reside under WEB-INF/ somewhere,
> >but since I can't access that directory from the
> >web browser, I can't check.
> >I'm guessing that I'm missing some configuration
> >on .do files, but I don't know what.
> >
> > I'm continuing to dig at the problems, but all
> > hints and tips will be appreciated.
> >
> > Thanx!
> >
> > - Steinar
> >
> >
> > This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
> > TANDBERG Television. If received in error please notify the sender and
> > destroy the original message and attachments.

--
Steven Valin
[EMAIL PROTECTED]





Re: struts-example.war from struts 1.0, and missing .do servlets (and how to get web.xml)

2001-10-04 Thread Breion Michael

You wrote:
> That was it!  I changed the access rights of
> /struts-example/WEB-INF/ from "deny from all" to
> "allow from all", and then it worked from apache
> as well.
>
> Hm... when I look at other  tags, I see
> that the usual default is "deny from all".
> I wonder what makes struts applications different?

Well, It's not coming from struts at all... It's for security reason that
the WEB-INF directory is 'deny from all' ... But you can change this access
to localhost (127.0.0.1) if you need to access the diectory while you're
developping the app ;-)

Mike




Re: Problem with weblogic

2001-10-04 Thread Jonathan M Crater

sounds like a classpath issue to me.  make sure your struts.jar is in your
weblogic classpath when the server is started.

ALAMI Ahmed - BOR wrote:

> Hello everyone
>
> Does anyone knows the steps to deploy a WAR application using struts under
> Weblogic please
> When compiling to create the web.xml and weblogic.xml, it returns an error
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/struts/action/Act
> ion
>
> Help me please
>
> Ahmed ALAMI
> Stagiaire
>
>
> 8, rue Gustave Hertz - 33600 Pessac
> * 05.57.89.00.36 *06.17.23.26.61 * 05.56.36.64.71
> * [EMAIL PROTECTED]
>
> -Message d'origine-
> De : Bang, Steinar [mailto:[EMAIL PROTECTED]]
> Envoyé : jeudi 4 octobre 2001 10:47
> À : '[EMAIL PROTECTED]'
> Objet : struts-example.war from struts 1.0, and missing .do servlets
> (and how to get web.xml)
>
> Platform: debian woody, apache 1.3.19, tomcat 3.2.3,
>   struts 1.0, Java2 SDK 1.3
>
> [I'm not on the mailing list, so please Cc me on any
>  response.  Thanx!]
>
> I've downloaded the binary distribution of struts 1.0
> from
> 
>
> And followed a modified version of what the INSTALL
> file says about installation under Tomcat:
>  - I've copied "struts-documentation.war" and
>"struts-example.war" to /usr/share/java/webapps/
>  - I've added "DirectoryIndex index.jsp index.html" and
>"AddHandler jserv-servlet .do" to /etc/apache/srm.conf
>  - I've restarted tomcat and then restarted apache
>
> The  URL seems to
> work fine, but  has
> some problems:
>  - how do I get the web.xml file from struts-example?
>(the tutorial says to look at it to see how you
> should create a web.xml file for your own application)
>If I remove the DirectoryIndex mapping for index.jsp,
>I get to list the directory for struts-example, but
>I'm not allowed to access 
>where I presume the web.xml file can be found?
>
>  - the other problem is related to actually running
>the application.  If I try clicking on the link
>"Register with the MailReader Demonstration Application",
>I get a 404 not found on the URL
> /struts-example/editRegistration.do;jsessionid=83vbrf4511
>The "Walking tour of the Example Application", gives
>me a 404 Not found, on the URL
> /struts-example/tour.do;jsessionid=84vbfr4511
>The "Log on to the MailReader Demonstation Application"
>pops up a form requesting username and password,
>but I don't have anything meaningful to give it,
>so I can't test if it actually works.
>Both the "problem" links are .do files.  When
>I remove the index.jsp DirectoryIndex mapping
>I can't find any .do files on the top level.
>Presumably they reside under WEB-INF/ somewhere,
>but since I can't access that directory from the
>web browser, I can't check.
>I'm guessing that I'm missing some configuration
>on .do files, but I don't know what.
>
> I'm continuing to dig at the problems, but all
> hints and tips will be appreciated.
>
> Thanx!
>
> - Steinar
>
>
> This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
> TANDBERG Television. If received in error please notify the sender and
> destroy the original message and attachments.





Re: FormTag.lookup problem - getting VERY frustrated!

2001-10-04 Thread Keith Bacon

Hi Jeff,
I'm no guru - what i do with a problem like this is start removing
bits till the problem goes away. As it's in the form tag processing
take out bits within the form (like the  wrote:
> 
> I'm hoping that someone can help me out, I'm running out of
> theories...I've
> included the stack trace and, what I think is relevant snippets
> from the
> files involved. If someone could even suggest a way to debug this
> I'd
> appreciate it
> 
> Below is part of the exceptions stack trace:
> javax.servlet.jsp.JspException
>   java.lang.Throwable(java.lang.String)
>   java.lang.Exception(java.lang.String)
>   javax.servlet.jsp.JspException(java.lang.String)
>   void org.apache.struts.taglib.html.FormTag.lookup()
>   int org.apache.struts.taglib.html.FormTag.doStartTag()
>   void
>
_0002fassayType_0002ejspassayType_jsp_1._jspService(HttpServletRequest,
> HttpServletResponse)
> .
> .
> .
> .
> 
> I have a struts-config.xml that looks like this:
> 
>   
>   
>  type="gsk.prototrack.protocoleditor.AssayTypeActionForm"/>
>   
> 
>   
>type="gsk.prototrack.protocoleditor.SelectAssayTypeAction"
>   name="AssayType"
>   scope="request"
>   input="/prototrack/assayType.jsp"
>   validate="false">
> 
>   
> 
> 
> The AssayTypeActionForm has the following signature:
> 
> public class AssayTypeActionForm extends ActionForm {
>  public Collection getAssayTypes();
>  public String getSelectedAssayType();
>  public void setAssayTypes(Collection newTypes);
>  public void setSelectedAssayType(String newSelectedAssayType);
> }
> 
> The jsp looks like this:
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> 
> 
> 
> Assay Type Action Form
> 
> 
> 
> 
> 
> Assay Type
>   
>   
>   
>   
>   
>   
> 
> 
> 
> 
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> +   +
> + Jeff Canna [EMAIL PROTECTED]   +
> + RoleModel Software www.rolemodelsoft.com  +
> + Holly Springs, NC  v:(919)557-6352  f:(919)552-8166   +
> +   +
> + Your life may be measured by what you reap,   +
> + but it is determined by what you sow. +
> +   +
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> 


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



RE: how to use a radio button

2001-10-04 Thread Stefan Hamm


getter and setter for the property "radioButton" and set your 


define a variable like this (Form-Bean)
private String radioButton = "nb1";
 
public void setRadioButton(String radio) {

this.radioButton = radio;
  }

public String getRadioButton() {
return this.radioButton;
  }

try it 
Stefan Hamm
100world.com AG
Middleware
Vordere Cramergasse 11
Fon: +49(0)911-4244-188 
D-90478 Nürnberg  
[EMAIL PROTECTED]www.100world.com



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 4. Oktober 2001 12:52
To: [EMAIL PROTECTED]
Subject: RE: how to use a radio button




i need  2 radio buttons
with
yes
no
if one is clicked other should be disabled
and vice versa




**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.Kindlesystems.com
**



storing values used on the presentation tier

2001-10-04 Thread chiji nwankwo

Hi,
I have a couple of array lists which are used to populate various select box options on my jsp page.  At the moment I populate the values of my array lists with values that I get from a database and then proceed to insert these array lists into the same scope that is specified in the config file for my actionform bean (session).  My question is this, is it right for me to populate the array lists from within my action classes directly or should I have getters and setters within my action form subclass that should be used to set and get the values of the array list?  Am I right to think that initializing my array list in the action form subclass will have the same effect as what I am doing at the moment?
Thanks
ChijiGet your FREE download of MSN Explorer at http://explorer.msn.com


Re: Struts DB example

2001-10-04 Thread Viet Kevin

On Thu, 4 Oct 2001 14:03:04 +0530
"Amitkumar J Malhotra" <[EMAIL PROTECTED]> wrote:

> 
> 
> Micheal
> please could you tell me something more about castor JDO
> 
> Thanx
> Amit
> 

I'm interested too in Castor JDO, it will be cool i can have real-code examples to 
understand the whole thing



Problem with weblogic

2001-10-04 Thread ALAMI Ahmed - BOR




Hello everyone

Does anyone knows the steps to deploy a WAR application using struts under
Weblogic please
When compiling to create the web.xml and weblogic.xml, it returns an error
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/struts/action/Act
ion

Help me please

Ahmed ALAMI
Stagiaire
 

8, rue Gustave Hertz - 33600 Pessac
* 05.57.89.00.36 *06.17.23.26.61 * 05.56.36.64.71
* [EMAIL PROTECTED]



-Message d'origine-
De : Bang, Steinar [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 4 octobre 2001 10:47
À : '[EMAIL PROTECTED]'
Objet : struts-example.war from struts 1.0, and missing .do servlets
(and how to get web.xml)


Platform: debian woody, apache 1.3.19, tomcat 3.2.3,
  struts 1.0, Java2 SDK 1.3

[I'm not on the mailing list, so please Cc me on any
 response.  Thanx!]

I've downloaded the binary distribution of struts 1.0 
from


And followed a modified version of what the INSTALL
file says about installation under Tomcat:
 - I've copied "struts-documentation.war" and
   "struts-example.war" to /usr/share/java/webapps/
 - I've added "DirectoryIndex index.jsp index.html" and
   "AddHandler jserv-servlet .do" to /etc/apache/srm.conf
 - I've restarted tomcat and then restarted apache

The  URL seems to
work fine, but  has
some problems:
 - how do I get the web.xml file from struts-example?
   (the tutorial says to look at it to see how you
should create a web.xml file for your own application)
   If I remove the DirectoryIndex mapping for index.jsp,
   I get to list the directory for struts-example, but
   I'm not allowed to access 
   where I presume the web.xml file can be found?

 - the other problem is related to actually running
   the application.  If I try clicking on the link
   "Register with the MailReader Demonstration Application",
   I get a 404 not found on the URL
/struts-example/editRegistration.do;jsessionid=83vbrf4511
   The "Walking tour of the Example Application", gives
   me a 404 Not found, on the URL
/struts-example/tour.do;jsessionid=84vbfr4511
   The "Log on to the MailReader Demonstation Application"
   pops up a form requesting username and password,
   but I don't have anything meaningful to give it,
   so I can't test if it actually works.
   Both the "problem" links are .do files.  When
   I remove the index.jsp DirectoryIndex mapping
   I can't find any .do files on the top level.
   Presumably they reside under WEB-INF/ somewhere,
   but since I can't access that directory from the
   web browser, I can't check.
   I'm guessing that I'm missing some configuration
   on .do files, but I don't know what.
   
I'm continuing to dig at the problems, but all
hints and tips will be appreciated.

Thanx!


- Steinar

























 
This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
TANDBERG Television. If received in error please notify the sender and
destroy the original message and attachments.



RE: struts-example.war from struts 1.0, and missing .do servlets (and how to get web.xml)

2001-10-04 Thread ALAMI Ahmed - BOR

Hello everyone

Does anyone knows the steps to deploy a WAR application using struts under
Weblogic please
When compiling to create the web.xml and weblogic.xml, it returns an error
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/struts/action/Act
ion

Help me please

Ahmed ALAMI
Stagiaire
 

8, rue Gustave Hertz - 33600 Pessac
* 05.57.89.00.36 *06.17.23.26.61 * 05.56.36.64.71
* [EMAIL PROTECTED]



-Message d'origine-
De : Bang, Steinar [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 4 octobre 2001 10:47
À : '[EMAIL PROTECTED]'
Objet : struts-example.war from struts 1.0, and missing .do servlets
(and how to get web.xml)


Platform: debian woody, apache 1.3.19, tomcat 3.2.3,
  struts 1.0, Java2 SDK 1.3

[I'm not on the mailing list, so please Cc me on any
 response.  Thanx!]

I've downloaded the binary distribution of struts 1.0 
from


And followed a modified version of what the INSTALL
file says about installation under Tomcat:
 - I've copied "struts-documentation.war" and
   "struts-example.war" to /usr/share/java/webapps/
 - I've added "DirectoryIndex index.jsp index.html" and
   "AddHandler jserv-servlet .do" to /etc/apache/srm.conf
 - I've restarted tomcat and then restarted apache

The  URL seems to
work fine, but  has
some problems:
 - how do I get the web.xml file from struts-example?
   (the tutorial says to look at it to see how you
should create a web.xml file for your own application)
   If I remove the DirectoryIndex mapping for index.jsp,
   I get to list the directory for struts-example, but
   I'm not allowed to access 
   where I presume the web.xml file can be found?

 - the other problem is related to actually running
   the application.  If I try clicking on the link
   "Register with the MailReader Demonstration Application",
   I get a 404 not found on the URL
/struts-example/editRegistration.do;jsessionid=83vbrf4511
   The "Walking tour of the Example Application", gives
   me a 404 Not found, on the URL
/struts-example/tour.do;jsessionid=84vbfr4511
   The "Log on to the MailReader Demonstation Application"
   pops up a form requesting username and password,
   but I don't have anything meaningful to give it,
   so I can't test if it actually works.
   Both the "problem" links are .do files.  When
   I remove the index.jsp DirectoryIndex mapping
   I can't find any .do files on the top level.
   Presumably they reside under WEB-INF/ somewhere,
   but since I can't access that directory from the
   web browser, I can't check.
   I'm guessing that I'm missing some configuration
   on .do files, but I don't know what.
   
I'm continuing to dig at the problems, but all
hints and tips will be appreciated.

Thanx!


- Steinar

























 
This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
TANDBERG Television. If received in error please notify the sender and
destroy the original message and attachments.



struts-example.war from struts 1.0, and missing .do servlets (and how to get web.xml)

2001-10-04 Thread Bang, Steinar

Platform: debian woody, apache 1.3.19, tomcat 3.2.3,
  struts 1.0, Java2 SDK 1.3

[I'm not on the mailing list, so please Cc me on any
 response.  Thanx!]

I've downloaded the binary distribution of struts 1.0 
from


And followed a modified version of what the INSTALL
file says about installation under Tomcat:
 - I've copied "struts-documentation.war" and
   "struts-example.war" to /usr/share/java/webapps/
 - I've added "DirectoryIndex index.jsp index.html" and
   "AddHandler jserv-servlet .do" to /etc/apache/srm.conf
 - I've restarted tomcat and then restarted apache

The  URL seems to
work fine, but  has
some problems:
 - how do I get the web.xml file from struts-example?
   (the tutorial says to look at it to see how you
should create a web.xml file for your own application)
   If I remove the DirectoryIndex mapping for index.jsp,
   I get to list the directory for struts-example, but
   I'm not allowed to access 
   where I presume the web.xml file can be found?

 - the other problem is related to actually running
   the application.  If I try clicking on the link
   "Register with the MailReader Demonstration Application",
   I get a 404 not found on the URL
/struts-example/editRegistration.do;jsessionid=83vbrf4511
   The "Walking tour of the Example Application", gives
   me a 404 Not found, on the URL
/struts-example/tour.do;jsessionid=84vbfr4511
   The "Log on to the MailReader Demonstation Application"
   pops up a form requesting username and password,
   but I don't have anything meaningful to give it,
   so I can't test if it actually works.
   Both the "problem" links are .do files.  When
   I remove the index.jsp DirectoryIndex mapping
   I can't find any .do files on the top level.
   Presumably they reside under WEB-INF/ somewhere,
   but since I can't access that directory from the
   web browser, I can't check.
   I'm guessing that I'm missing some configuration
   on .do files, but I don't know what.
   
I'm continuing to dig at the problems, but all
hints and tips will be appreciated.

Thanx!


- Steinar

























 
This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
TANDBERG Television. If received in error please notify the sender and
destroy the original message and attachments.



RE: Struts DB example

2001-10-04 Thread Amitkumar J Malhotra



Micheal
please could you tell me something more about castor JDO

Thanx
Amit





Re: ApplicationResources.properties

2001-10-04 Thread Breion Michael

hahahaa,

Sorry for laughing at you. You must be satrting with struts.
Well, it's a a .properties file, but if you look at the content, you should
see something that doesn't seem to be properties...
In fact you should look attentively the struts-blank app, and see how the
AppRessources.properties acts with it ;-)


Best regards,
Mike

- Original Message -
From: "Mark Derricutt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 04, 2001 9:29 AM
Subject: ApplicationResources.properties


I was wonder how to use ApplicationResources?

Its a properties file, but the users guide mentions it being a class, so
how does it work?

I was wanting to store my ApplicationResources.properties just in my
WEB-INF directory, and I don't think storing properties under classes is
good practise, but from what I can see this isn't possible?


--
Vi de udødelige inviterer dere til å slå dere sammen med oss




ApplicationResources.properties

2001-10-04 Thread Mark Derricutt

I was wonder how to use ApplicationResources?

Its a properties file, but the users guide mentions it being a class, so 
how does it work?

I was wanting to store my ApplicationResources.properties just in my 
WEB-INF directory, and I don't think storing properties under classes is 
good practise, but from what I can see this isn't possible?


-- 
Vi de udødelige inviterer dere til å slå dere sammen med oss



Re: beginner's question

2001-10-04 Thread Breion Michael
Title: beginner's question



You should try to look in your /logs files in the 
%TOMCAT% directory...
The jvm.stderr and jvm.stdout contains some info 
about what is displayed in the DOS window... Look here first, and try to fix the 
problem...
If it persists, contact me back... ;-)
 
Michael

  - Original Message - 
  From: 
  Jean 
  Huang 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, October 03, 2001 9:01 
  PM
  Subject: beginner's question
  
  I just installed tomcat 3.2.3, and it runs 
  OK. But once I copy struts-example.war into 
  the directory /webapps, and restart tomcat, it failed to start. The start 
  window vanishes without any information. 
  What should I do now? 
  I am looking forward to your kindly help at 
  [EMAIL PROTECTED]. 



RE: Struts DB example

2001-10-04 Thread Bill G
Title: RE: Struts DB example



Thanks 
Michael!
 
I'll 
check it out.
 
Bill...

  -Original Message-From: Michael Mok 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, October 04, 2001 
  12:34 AMTo: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Cc: [EMAIL PROTECTED]Subject: RE: 
  Struts DB example
  Bill
   
  Check out TeaTimeJ Web TimeSheet www.teatimej.com . It is a STRUTS 1.0+ 
  based application and it uses Castor JDO to maintain records in a MySQL 
  database. 
   
  Regards
   
  Michael Mok
  
-Original Message-From: Bill G 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, 4 October 2001 
13:20To: [EMAIL PROTECTED]Subject: RE: 
Struts DB example
Hi 
Bret/Francisco,
 
I 
appreciate the info, but that does not help me.
 
PLEASE READ - I was hoping that someone out there 
could point me to a REAL working Struts/Database example. For me, as 
long as the sample works with a modern RDBMS with JDBC is sufficient. 
Could be Sybase, Oracle, MS/SQL Server, Ingres, MySql whatever. I do not 
care about app server, db choices or jdbc choices. All I'm looking for 
is a simple struts application utilizing a real relational database 
that inserts, updates and deletes a record into 
a table.
 
Thanks!
 
[Bill 
Gfroehrer] 
 -Original 
Message-From: Brett Porter 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 03, 
2001 5:31 PMTo: 
'[EMAIL PROTECTED]'Subject: RE: Struts DB 
example

  The struts example struts-config.xml file has an example of how to 
  create a connection pool. However, from what I now understand that is 
  deprecated. The struts-documentation webapp does have details about it 
  though if you are interested.
  I thought there was a struts taglib example that shows how to use 
  the JDBC features from JSP pages, but I think I was mistaken there - it 
  must be in the commons project.
  That being the case this isn't really a struts issue - you should 
  look at the jakarta-commons (it has DB connection pooling with good 
  examples, although it isn't really up to a release, you'll have to check 
  out the CVS).
  Specific database examples will depend on which database you use, 
  and which JDBC driver you use, and anything else you choose to layer on 
  that (app server, connection pooling, etc.).
  You should consult those sources and the web for more 
  examples.
   
  Cheers,
  Brett
  
-Original Message-From: Bill G 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, 4 October 2001 
10:19 AMTo: [EMAIL PROTECTED]Subject: 
RE: Struts DB example

Bret,
 
Sorry, I should be more 
specific.
 
The sample app 
that you and Francisco refer to does not illustrate connecting to a 
real RDMS nor does not illustrate connection pooling, where the connection logic 
goes etc...
 
That's the kind 
of stuff I'm interested in. A sample 
struts app that works with a real RDMS and illustrates CRUD would be 
great.
 
 

  -Original Message-From: Brett Porter 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 
  03, 2001 4:53 PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: Struts DB 
  example
  have a closer look. 
  -Original Message- From: Bill G [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, 4 October 2001 9:50 AM 
  To: [EMAIL PROTECTED] Subject: RE: Struts DB example 
  Francisco, 
  That is not a database example. 
  Thanks though. 
  -Original Message- From: Francisco Hernandez [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, October 03, 2001 4:43 PM 
  To: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED] Subject: Re: Struts DB 
  example 
  check out the struts example, its very simple 
  - Original Message - From: "Bill G" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 03, 2001 3:19 PM Subject: Struts DB example 
  > I'm looking for a working Struts DB example that 
  demonstrates the following; > > Four screens - insert a 
  record, update a record, delete a record and select > records > >From one table with 3 columns ID, FirstName, 
  LastName. > > 
  I've looked around various places and cannot find this. 
  > > Thanks! 
  > > > > 
  


RE: Struts DB example

2001-10-04 Thread Michael Mok
Title: RE: Struts DB example



Bill
 
Check 
out TeaTimeJ Web TimeSheet www.teatimej.com . It is a STRUTS 1.0+ 
based application and it uses Castor JDO to maintain records in a MySQL 
database. 
 
Regards
 
Michael Mok

  -Original Message-From: Bill G 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, 4 October 2001 
  13:20To: [EMAIL PROTECTED]Subject: RE: 
  Struts DB example
  Hi 
  Bret/Francisco,
   
  I 
  appreciate the info, but that does not help me.
   
  PLEASE READ - I was hoping that someone out there 
  could point me to a REAL working Struts/Database example. For me, as long 
  as the sample works with a modern RDBMS with JDBC is sufficient. Could be 
  Sybase, Oracle, MS/SQL Server, Ingres, MySql whatever. I do not care about app 
  server, db choices or jdbc choices. All I'm looking for is a simple 
  struts application utilizing a real relational database that inserts, updates 
  and deletes a record into a table.
   
  Thanks!
   
  [Bill 
  Gfroehrer] 
   -Original 
  Message-From: Brett Porter 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 03, 2001 
  5:31 PMTo: '[EMAIL PROTECTED]'Subject: RE: 
  Struts DB example
  
The struts example struts-config.xml file has an example of how to 
create a connection pool. However, from what I now understand that is 
deprecated. The struts-documentation webapp does have details about it 
though if you are interested.
I 
thought there was a struts taglib example that shows how to use the JDBC 
features from JSP pages, but I think I was mistaken there - it must be in 
the commons project.
That being the case this isn't really a struts issue - you should 
look at the jakarta-commons (it has DB connection pooling with good 
examples, although it isn't really up to a release, you'll have to check out 
the CVS).
Specific database examples will depend on which database you use, and 
which JDBC driver you use, and anything else you choose to layer on that 
(app server, connection pooling, etc.).
You should consult those sources and the web for more 
examples.
 
Cheers,
Brett

  -Original Message-From: Bill G 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, 4 October 2001 
  10:19 AMTo: [EMAIL PROTECTED]Subject: 
  RE: Struts DB example
  
  Bret,
   
  Sorry, I should be more 
  specific.
   
  The sample app 
  that you and Francisco refer to does not illustrate connecting to a 
  real RDMS nor does not illustrate connection pooling, where the connection logic 
  goes etc...
   
  That's the kind of 
  stuff I'm interested in. A sample struts app that works with a 
  real RDMS and illustrates CRUD would 
  be great.
   
   
  
-Original Message-From: Brett Porter 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 03, 
2001 4:53 PMTo: 
'[EMAIL PROTECTED]'Subject: RE: Struts DB 
example
have a closer look. 
-Original Message- From: 
Bill G [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, 4 October 2001 9:50 AM To: [EMAIL PROTECTED] Subject: RE: Struts DB example 
Francisco, 
That is not a database example. 
Thanks though. 
-Original Message- From: 
Francisco Hernandez [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 03, 2001 4:43 PM 
To: [EMAIL PROTECTED]; 
[EMAIL PROTECTED] Subject: Re: Struts DB 
example 
check out the struts example, its very simple 
- Original Message - From: "Bill G" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 03, 2001 3:19 PM Subject: Struts DB example 
> I'm looking for a working Struts DB example that 
demonstrates the following; > > Four screens - insert a record, 
update a record, delete a record and select > records > >From one table with 3 columns ID, FirstName, 
LastName. > > I've 
looked around various places and cannot find this. > > Thanks! > > > > 



  1   2   >