Re: No form elements in the jsp- ActionForm

2005-02-05 Thread Wendy Smoak
From: "Sab" <[EMAIL PROTECTED]>
I will have a jsp page which will get some results from database as a
list.
But now at present, I have a button which is on this button.
I would like to know what will the ActionForm subclass will be?
I wrote jsp, Actionclass which takes the hidden name of event when
button is passed and in actionclass in execute I have the eventname to
go to another page(another.do) .
Without Struts, what needs to happen?  I think it's: the user goes to a 
page, clicks a button and then sees a page with database results.  (Are the 
results read-only or will the user be updating the database?)

It doesn't sound like you need a form for that first page with the button. 
Try it with a plain old  and see if that works.

--
Wendy Smoak 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: newbie question

2005-02-05 Thread Curtis Taylor
I agree with Christian. I've found an XML validation website/tool which 
is invaluable when you're brain-dead & still required to write code:

http://www.stg.brown.edu/service/xmlvalid/
HTH,
Curtis
Christian Bollmeyer wrote:
On Friday 04 February 2005 22:53, Soaring Eagle wrote:
Check the syntax of your struts-config.xml. The one you
posted is heavily mixed up. In fact it's not even well-formed
XML, with odd nestings, closing tags without a start tag,
illegal attributes and the like. I'd recommend to drop the
current version and rebuild it from scratch, using a
working version (like the one from the examples) as
a template. Keep special heed of proper nesting, the
cardinality of elements (0..1  or
 sections, for example), correct
attributes and the fact that order is important when it
comes to XML (top-down).
HTH,
-- Chris.
If it were a classloader problem, the server would
tell one by issuing ClassNotFoundException messages
and the like. It has no reason to lie, so missing jar
files are obviously not the cause here.  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


No form elements in the jsp- ActionForm

2005-02-05 Thread Sab
I will have a jsp page which will get some results from database as a
list.
But now at present, I have a button which is on this button. 
I would like to know what will the ActionForm subclass will be? 

I wrote jsp, Actionclass which takes the hidden name of event when
button is passed and in actionclass in execute I have the eventname to
go to another page(another.do) .
How to go about this form?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Class not found error when action servlet starts up

2005-02-05 Thread Martin Gainty
Hello Eagle
Did you download jakarta-struts-1.1.lib.zip
and Unzip the jars to your webapp \WEB-INF\lib ??
Martin Gainty
__
(mobile) 617-852-7822

From: Soaring Eagle <[EMAIL PROTECTED]>
Reply-To: Soaring Eagle <[EMAIL PROTECTED]>
To: user@struts.apache.org
Subject: Class not found error when action servlet starts up
Date: Fri, 4 Feb 2005 17:31:51 -0500
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by MC8-F24.hotmail.com 
with Microsoft SMTPSVC(6.0.3790.211); Fri, 4 Feb 2005 14:32:05 -0800
Received: (qmail 37185 invoked by uid 500); 4 Feb 2005 22:31:54 -
Received: (qmail 37153 invoked by uid 99); 4 Feb 2005 22:31:54 -
Received: pass (hermes.apache.org: domain of [EMAIL PROTECTED] 
designates 64.233.184.193 as permitted sender)
Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.193)  
by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 04 Feb 2005 14:31:54 -0800
Received: by wproxy.gmail.com with SMTP id 50so579614wrifor 
; Fri, 04 Feb 2005 14:31:52 -0800 (PST)
Received: by 10.54.32.40 with SMTP id f40mr168922wrf;Fri, 04 Feb 
2005 14:31:51 -0800 (PST)
Received: by 10.54.10.14 with HTTP; Fri, 4 Feb 2005 14:31:51 -0800 (PST)
X-Message-Info: JGTYoYF78jHnCqQWVRWICJwmv6Rkiwg2Zo+wchjv1hY=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: 
List-Subscribe: 
List-Help: 
List-Post: 
List-Id: "Struts Users Mailing List" 
Delivered-To: mailing list user@struts.apache.org
X-ASF-Spam-Status: No, hits=0.0 
required=10.0tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;s=beta; 
d=gmail.com;
h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; 
   
b=PcjXVM7T+/LJ3HDqSyX+GGRCBAxuk1dvSnuQdq5/HxoHaQdhEGiUDpCTPv3H+E1mutjOkEMIVfJ1Gc7S1y0mXLKC8LpXpSaDhbCUSVznEuWG4/7evvcXntmOf/FcsLXGZLE8aSpowgvCjcMQknxhDPg5oSyhq3/lAGCd8MTSuiU=
X-Virus-Checked: Checked
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 04 Feb 2005 22:32:05.0601 (UTC) 
FILETIME=[5ACE5510:01C50B09]

Hello
Whenever I try to start my weblogic container, i keep getting a class
not found excpetion when loading up the action servlet. I am not sure
why... please help me resolve this.
FINE:   Fire begin() for FactoryCreateRule[className=null, 
attributeName=null, c
[EMAIL PROTECTED]
Feb 4, 2005 5:28:10 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw error
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at 
weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
ClassLoader.java:476)
at 
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.java:181)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at 
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:223)
at 
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
areClassLoader.java:41)
at 
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Create a jsp page with 1 button

2005-02-05 Thread Christian Bollmeyer
On Saturday 05 February 2005 08:07, Sab wrote:
> 1>How to create a jsp page in struts with it's mappings in config, if
> it has 1 button and no fields.
> When user clicks on button it will go to another webpage or action
> defined.

Use a ForwardAction to simply forward to your button page.
There, you put a submit button inside a normal form tag.
Use JSTL to preserve possible session info:

" method="post">
  


> 2>It's going to be a jsp page which brings in rows of data with
> checkbox added to it's front.

Then your target has to be a custom action which gets the
data from the Model, puts it in some scope (request, usually)
and then forwards to your page 2.

HTH,
-- Chris.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie question

2005-02-05 Thread Christian Bollmeyer
On Friday 04 February 2005 22:53, Soaring Eagle wrote:

Check the syntax of your struts-config.xml. The one you
posted is heavily mixed up. In fact it's not even well-formed
XML, with odd nestings, closing tags without a start tag,
illegal attributes and the like. I'd recommend to drop the
current version and rebuild it from scratch, using a
working version (like the one from the examples) as
a template. Keep special heed of proper nesting, the
cardinality of elements (0..1  or
 sections, for example), correct
attributes and the fact that order is important when it
comes to XML (top-down).

HTH,
-- Chris.

If it were a classloader problem, the server would
tell one by issuing ClassNotFoundException messages
and the like. It has no reason to lie, so missing jar
files are obviously not the cause here.  

> Hello,
>
> I am trying to write my first Struts application. I keep getting
>
> SEVERE: Parsing error processing resource path
> /WEB-INF/struts-config.xml  
>in Web application: "". javax.servlet.UnavailableException: Parsing
> error processing resource path /WEB-INF/struts-config.xml

[CLIP!]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: trouble referencing struts taglibs: TldLocationsCache?

2005-02-05 Thread Martin Gainty
Good Morning Msgr McGrath
If you install your  in a 
location other than YourWebApp\WEB_INF you would still have to update the 
web.xml web-app taglib-location
Or am I not understanding the thread ?

Martin Gainty
__
(mobile) 617-852-7822
(http)www.laconiadatasystems.com

From: "John McGrath" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: "'Struts Users Mailing List'" 
Subject: RE: trouble referencing struts taglibs: TldLocationsCache?
Date: Sat, 5 Feb 2005 04:09:34 -0500
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by mc4-f3.hotmail.com 
with Microsoft SMTPSVC(6.0.3790.211); Sat, 5 Feb 2005 01:09:48 -0800
Received: (qmail 36790 invoked by uid 500); 5 Feb 2005 09:09:37 -
Received: (qmail 36773 invoked by uid 99); 5 Feb 2005 09:09:37 -
Received: pass (hermes.apache.org: local policy)
Received: from zeratul.whoi.edu (HELO mx1.whoi.edu) (128.128.76.62)  by 
apache.org (qpsmtpd/0.28) with ESMTP; Sat, 05 Feb 2005 01:09:35 -0800
Received: by mx1.whoi.edu (Postfix, from userid 103)id B93DA169E2D; Sat,  5 
Feb 2005 04:09:33 -0500 (EST)
Received: from phooey (huey.whoi.edu [128.128.15.13])by mx1.whoi.edu 
(Postfix) with ESMTP id 4C6DB169E30for ; Sat,  5 
Feb 2005 04:09:30 -0500 (EST)
X-Message-Info: JGTYoYF78jEx6pQFzgmTv9zc0jbWu/plWH02a70sp3E=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: 
List-Subscribe: 
List-Help: 
List-Post: 
List-Id: "Struts Users Mailing List" 
Delivered-To: mailing list user@struts.apache.org
X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
X-Spam-Check-By: apache.org
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.6626
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Virus-Status: No
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on zeratul
X-Spam-Status: No, hits=-100.0 required=7.5 tests=USER_IN_WHITELIST 
autolearn=no version=2.63
X-Spam-Level: X-Virus-Checked: Checked
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 05 Feb 2005 09:09:48.0745 (UTC) 
FILETIME=[716AC390:01C50B62]

figured it out; for the record, i'll answer my own question:
simply removing the taglib lines from web.xml entirely and referencing them
directly from jsp's solved the problem.
-Original Message-
From: John McGrath [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 03, 2005 12:28 PM
To: struts-user@jakarta.apache.org
Subject: trouble referencing struts taglibs: TldLocationsCache?
Hi All,
I'm migrating an application from WebLogic 6.1 to Tomcat 5.0, and having a
problem getting Tomcat to process taglibs correctly. The *.tld files are in
WEB-INF, and web.xml is set up the same as in struts-examples, and the same
as we've been using successfully in WebLogic:

/tags/struts-bean
/WEB-INF/struts-bean.tld

When I reference a taglib in the standard way:
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
The page fails, and this exception shows up in the logs:
2005-02-03 12:01:38 ApplicationDispatcher[/mcg_cms] Servlet.service() for
servlet jsp threw exception
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache:
null  at
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:249
)
 at
org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.j
ava:220)
 at
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext
.java:475)
 at 
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
 at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
 at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)...
(etc.)

It feels like I'm overlooking something small and stupid, but I've been
banging my head against this for two days, and it's giving me a headache.
Any help gratefully appreciated.
John
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: trouble referencing struts taglibs: TldLocationsCache?

2005-02-05 Thread John McGrath
figured it out; for the record, i'll answer my own question:

simply removing the taglib lines from web.xml entirely and referencing them
directly from jsp's solved the problem. 


-Original Message-
From: John McGrath [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 12:28 PM
To: struts-user@jakarta.apache.org
Subject: trouble referencing struts taglibs: TldLocationsCache?


Hi All,
 
I'm migrating an application from WebLogic 6.1 to Tomcat 5.0, and having a
problem getting Tomcat to process taglibs correctly. The *.tld files are in
WEB-INF, and web.xml is set up the same as in struts-examples, and the same
as we've been using successfully in WebLogic:
 

/tags/struts-bean
/WEB-INF/struts-bean.tld

 
When I reference a taglib in the standard way:
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>

The page fails, and this exception shows up in the logs:

2005-02-03 12:01:38 ApplicationDispatcher[/mcg_cms] Servlet.service() for
servlet jsp threw exception
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache:
null  at
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:249
)
 at
org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.j
ava:220)
 at
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext
.java:475)
 at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
 at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
 at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)...
(etc.)

It feels like I'm overlooking something small and stupid, but I've been
banging my head against this for two days, and it's giving me a headache.
Any help gratefully appreciated.
 
John


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]