RE: easy question... logic:iterate

2004-02-19 Thread Slattery, Tim - BLS
> I have the following code:
> 
>  
>
> 
> How can i get the first record ?

JSTL makes this easy:



Or, to write out only the first one while iterating the loop:


  
 
  
...



--
Tim Slattery
[EMAIL PROTECTED]


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



Re: Easy question: iterate

2003-12-24 Thread e-denton Java Programmer
I's iteratin'! Thanks for all the help.

- Original Message - 
From: "Daniel Lipofsky" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "e-denton
Java Programmer" <[EMAIL PROTECTED]>
Sent: Wednesday, December 24, 2003 1:07 PM
Subject: RE: Easy question: iterate


<%
LabelValueBean[] lvArray = new LabelValueBean[] {
new LabelValueBean("label1", "value1"),
new LabelValueBean("label2", "value2"),
new LabelValueBean("label3", "value3"),
new LabelValueBean("label4", "value4") };
request.setAttribute("lvArray", lvArray);
%>

 -
 -



> -Original Message-
> From: e-denton Java Programmer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 24, 2003 10:24 AM
> To: Struts Users Mailing List
> Subject: Easy question: iterate
>
>
> Sorry to bother you with an easy question, but I can't find
> the answer.
>
> I want to iterate over Category_VO[] which is stored in a
> session attribute.
> I read that it can be done, but I can't find an example for
> raw arrays.
>
> Here's what I have (which probably doesn't even make sense):
>
>   id="category"
>  collection="com.cnw.portal.database.Category_VO"
>  type="com.cnw.portal.database.Category_VO"
>  scope="session">
>  
> 
>
>
> Thanks!
>
> will

-
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: Easy question: iterate

2003-12-24 Thread Mark Lowe
Looks like you should copy what your view needs from your model rather 
than shoe-horning in your data objects into your jsps.

Have a simple bean called Category in this example with a title 
property.

Category_VO[] pcatResults = dao.selectTopLevel();

ArrayList categoryList = new ArrayList();

while(pcatResults.next()) {
Category category = new Category();
String title = pcatResults.getShortTitle();
category.setTitle(title);
categoryList.add(category);
}
request.setAttribute("categories", categoryList.toArray());

Any good?

Wont need the useBean stuff, i just didn't know what you were trying.

Cheers Mark

On 24 Dec 2003, at 19:20, e-denton Java Programmer wrote:

Hi Mark,

I tried this:

Category_VO[] pcatResults = null;
Category_DAO dao= new Category_DAO();
pcatResults = dao.selectTopLevel();
request.getSession (true).setAttribute ("PCAT", pcatResults);
---
 
 
 
 
and, I get this:

javax.servlet.jsp.JspException: Cannot create iterator for this
collection
Will

- Original Message -
From: "Mark Lowe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 24, 2003 12:31 PM
Subject: Re: Easy question: iterate

//psuedo code.
List categoryList = Category.getList();
request.setAttribute("categories", categoryList.toArray());





I made the first bit up. But should give you the idea.


may do what you want.. Depends on what methods you've got in there..

Cheers Mark

On 24 Dec 2003, at 18:23, e-denton Java Programmer wrote:

Sorry to bother you with an easy question, but I can't find the 
answer.

I want to iterate over Category_VO[] which is stored in a session
attribute.
I read that it can be done, but I can't find an example for raw 
arrays.

Here's what I have (which probably doesn't even make sense):


 

Thanks!

will

-
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]



-
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: Easy question: iterate

2003-12-24 Thread e-denton Java Programmer
Hi Mark,

I tried this:

Category_VO[] pcatResults = null;
Category_DAO dao= new Category_DAO();
pcatResults = dao.selectTopLevel();
request.getSession (true).setAttribute ("PCAT", pcatResults);
---
 

 
 
 

and, I get this:

javax.servlet.jsp.JspException: Cannot create iterator for this
collection


Will

- Original Message - 
From: "Mark Lowe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 24, 2003 12:31 PM
Subject: Re: Easy question: iterate


>
> //psuedo code.
> List categoryList = Category.getList();
>
> request.setAttribute("categories", categoryList.toArray());
>
> 
>
> 
>
> I made the first bit up. But should give you the idea.
>
>  class="com.cnw.portal.database.Category_VO" scope="request" />
>
> may do what you want.. Depends on what methods you've got in there..
>
> Cheers Mark
>
>
> On 24 Dec 2003, at 18:23, e-denton Java Programmer wrote:
>
> > Sorry to bother you with an easy question, but I can't find the answer.
> >
> > I want to iterate over Category_VO[] which is stored in a session
> > attribute.
> > I read that it can be done, but I can't find an example for raw arrays.
> >
> > Here's what I have (which probably doesn't even make sense):
> >
> >  >  id="category"
> >  collection="com.cnw.portal.database.Category_VO"
> >  type="com.cnw.portal.database.Category_VO"
> >  scope="session">
> >  
> > 
> >
> >
> > Thanks!
> >
> > will
> >
> >
> > -
> > 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]
>
>


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



RE: Easy question: iterate

2003-12-24 Thread Daniel Lipofsky
<%
LabelValueBean[] lvArray = new LabelValueBean[] {
new LabelValueBean("label1", "value1"),
new LabelValueBean("label2", "value2"),
new LabelValueBean("label3", "value3"),
new LabelValueBean("label4", "value4") };
request.setAttribute("lvArray", lvArray);
%>

 -
 -



> -Original Message-
> From: e-denton Java Programmer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 24, 2003 10:24 AM
> To: Struts Users Mailing List
> Subject: Easy question: iterate
> 
> 
> Sorry to bother you with an easy question, but I can't find 
> the answer.
> 
> I want to iterate over Category_VO[] which is stored in a 
> session attribute.
> I read that it can be done, but I can't find an example for 
> raw arrays.
> 
> Here's what I have (which probably doesn't even make sense):
> 
>   id="category"
>  collection="com.cnw.portal.database.Category_VO"
>  type="com.cnw.portal.database.Category_VO"
>  scope="session">
>  
> 
> 
> 
> Thanks!
> 
> will

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



Re: Easy question: iterate

2003-12-24 Thread Mark Lowe
//psuedo code.
List categoryList = Category.getList();
request.setAttribute("categories", categoryList.toArray());




I made the first bit up. But should give you the idea.



may do what you want.. Depends on what methods you've got in there..

Cheers Mark

On 24 Dec 2003, at 18:23, e-denton Java Programmer wrote:

Sorry to bother you with an easy question, but I can't find the answer.

I want to iterate over Category_VO[] which is stored in a session 
attribute.
I read that it can be done, but I can't find an example for raw arrays.

Here's what I have (which probably doesn't even make sense):


 

Thanks!

will

-
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: Easy question: iterate

2003-12-24 Thread Nguyen, Hien
I think life would be easier if you store your Category_VO objects in a
java.util.Collection, then use JSTL forEach tag.  Something like this:

<%
Collection v = new Vector();
  v.add( new Category_VO("cat 1") ); //Assuming your constructor takes a
String which is the shortTitle
  v.add( new Category_VO("cat 2") );
  v.add( new Category_VO("cat 3") );
  v.add( new Category_VO("cat 4") );

request.putAttribute("categories",v);
%>






--Hien

-Original Message-
From: e-denton Java Programmer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 24, 2003 1:24 PM
To: Struts Users Mailing List
Subject: Easy question: iterate


Sorry to bother you with an easy question, but I can't find the answer.

I want to iterate over Category_VO[] which is stored in a session attribute.
I read that it can be done, but I can't find an example for raw arrays.

Here's what I have (which probably doesn't even make sense):


  


Thanks!

will


-
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: Easy Question

2003-09-16 Thread Mainguy, Mike

The "property" attribute of the tag should point to a boolean property of
the FormBean. If that property is "true" the box will be checked.

...unless you're using an old(er) version of the checkbox tag... I know in
the older (<1.0x) versions this was rather broken (i.e. only a string of 'T'
or 'F' or something like that would work)...

If you're using 1.1 all should be well.


--
Tim Slattery
[EMAIL PROTECTED]


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


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.



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



RE: Easy Question

2003-09-13 Thread Andrew Hill

Non-String Form bean properties are evil though, you'll thank yourself later
if you use Strings


+1

-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Saturday, 13 September 2003 04:14
To: Struts Users Mailing List
Subject: RE: Easy Question


Non-String Form bean properties are evil though, you'll thank yourself later
if you use Strings.  As long as the String is set to something sensible like
"true" or "false", your checkbox will be properly set.

I'm sure there are ample posts on the pros & cons of this approach, here's
one pro thread:
http://marc.theaimsgroup.com/?l=struts-user&m=106159073522015&w=2

m

"Slattery, Tim - BLS" <[EMAIL PROTECTED]> wrote:
> Sorry for emailing so many questions. My last one (i promise) is,
> how do I set an to display as checked?

The "property" attribute of the tag should point to a boolean property of
the FormBean. If that property is "true" the box will be checked.

--
Tim Slattery
[EMAIL PROTECTED]


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


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



RE: Easy Question

2003-09-12 Thread Michael Ruppin
Funny you should mention that, the thread I provided discusses a caveat with that very 
Object

Edgar P Dollin <[EMAIL PROTECTED]> wrote:Boolean form properties are cool too (at 
least in my experience)...

Edgar

> -Original Message-
> From: Michael Ruppin [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 12, 2003 3:14 PM
> To: Struts Users Mailing List
> Subject: RE: Easy Question
> 
> 
> Non-String Form bean properties are evil though, you'll thank 
> yourself later if you use Strings. As long as the String is 
> set to something sensible like "true" or "false", your 
> checkbox will be properly set.
> 
> I'm sure there are ample posts on the pros & cons of this 
> approach, here's one pro thread: 
> http://marc.theaimsgroup.com/?l=struts-user&m=> 106159073522015&w=2
> 
> m
> 
> "Slattery, Tim - BLS" wrote:
> > Sorry for emailing so many questions. My last one (i promise) is,
> > how do I set an to display as checked?
> 
> The "property" attribute of the tag should point to a boolean 
> property of the FormBean. If that property is "true" the box 
> will be checked.
> 
> --
> Tim Slattery
> [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> 

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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: Easy Question

2003-09-12 Thread Edgar P Dollin
Boolean form properties are cool too (at least in my experience)...

Edgar

> -Original Message-
> From: Michael Ruppin [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 12, 2003 3:14 PM
> To: Struts Users Mailing List
> Subject: RE: Easy Question
> 
> 
> Non-String Form bean properties are evil though, you'll thank 
> yourself later if you use Strings.  As long as the String is 
> set to something sensible like "true" or "false", your 
> checkbox will be properly set.
>  
> I'm sure there are ample posts on the pros & cons of this 
> approach, here's one pro thread: 
> http://marc.theaimsgroup.com/?l=struts-user&m=> 106159073522015&w=2
>  
> m
> 
> "Slattery, Tim - BLS" <[EMAIL PROTECTED]> wrote:
> > Sorry for emailing so many questions. My last one (i promise) is,
> > how do I set an to display as checked?
> 
> The "property" attribute of the tag should point to a boolean 
> property of the FormBean. If that property is "true" the box 
> will be checked.
> 
> --
> Tim Slattery
> [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> 

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



RE: Easy Question

2003-09-12 Thread Michael Ruppin
Non-String Form bean properties are evil though, you'll thank yourself later if you 
use Strings.  As long as the String is set to something sensible like "true" or 
"false", your checkbox will be properly set.
 
I'm sure there are ample posts on the pros & cons of this approach, here's one pro 
thread:
http://marc.theaimsgroup.com/?l=struts-user&m=106159073522015&w=2
 
m

"Slattery, Tim - BLS" <[EMAIL PROTECTED]> wrote:
> Sorry for emailing so many questions. My last one (i promise) is, 
> how do I set an to display as checked?

The "property" attribute of the tag should point to a boolean property of
the FormBean. If that property is "true" the box will be checked.

--
Tim Slattery
[EMAIL PROTECTED]


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


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: Easy Question

2003-09-12 Thread Slattery, Tim - BLS
> Sorry for emailing so many questions.  My last one (i promise) is, 
> how do I set an  to display as checked?

The "property" attribute of the tag should point to a boolean property of
the FormBean. If that property is "true" the box will be checked.

--
Tim Slattery
[EMAIL PROTECTED]


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



RE: Easy Question

2002-11-26 Thread Craig R. McClanahan


On Tue, 26 Nov 2002, John Mattos wrote:

> Date: Tue, 26 Nov 2002 15:27:20 -0800 (PST)
> From: John Mattos <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: Easy Question
>
>
> Yes, exactly.
> The app doesn't put out a stack trace at this point, but there are other points it 
>fails. Here's a stack trace from another point in the app.
> java.lang.NoClassDefFoundError: javax/ejb/ObjectNotFoundException

Did you say you're running Tomcat?  If so, this shouldn't be too
surprising, since Tomcat does not support EJBs.

>   at 
>com.thoughtworks.clearinghouse.web.servlet.MaintainMappingAction.actionExecuted(MaintainMappingAction.java:75)
>   at 
>com.thoughtworks.clearinghouse.web.servlet.AbstractAction.execute(AbstractAction.java:38)
>   at 
>org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:437)
>   at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)
>
> It seems like it can't find the classes!!
>  "Karr, David" <[EMAIL PROTECTED]> wrote:So the "indemand" web application has 
>this struts-config.xml file and
> all your relevant libs and classes?
>
> Does the error show an exception stack trace? If so, what is the "root
> cause" stack trace?
>

Craig


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




RE: Easy Question

2002-11-26 Thread Karr, David
It appears you have an exception handler for HTTP error code 500 which
is hiding the stack trace.  Check your server logs to see if it got
logged somewhere, or try to remove the error code exception handler.
The "root cause" of the exception is probably important.

I would guess this application is trying to connect to a remote EJB
server?  You'll have to get the EJB api jar file into your WEB-INF/lib,
to at least get access to the class files.

> -Original Message-
> From: John Mattos [mailto:[EMAIL PROTECTED]]
> 
> Yes, exactly.
> The app doesn't put out a stack trace at this point, but 
> there are other points it fails. Here's a stack trace from 
> another point in the app.
> java.lang.NoClassDefFoundError: javax/ejb/ObjectNotFoundException
>   at 
> com.thoughtworks.clearinghouse.web.servlet.MaintainMappingActi
> on.actionExecuted(MaintainMappingAction.java:75)
>   at 
> com.thoughtworks.clearinghouse.web.servlet.AbstractAction.exec
> ute(AbstractAction.java:38)
>   at 
> org.apache.struts.action.RequestProcessor.processActionPerform
> (RequestProcessor.java:437)
>   at 
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:264)
> 
> It seems like it can't find the classes!!
>  "Karr, David" <[EMAIL PROTECTED]> wrote:So the "indemand" 
> web application has this struts-config.xml file and
> all your relevant libs and classes?
> 
> Does the error show an exception stack trace? If so, what is the "root
> cause" stack trace?
> 
> > -Original Message-
> > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 3:08 PM
> > To: Struts Users Mailing List
> > Subject: RE: Easy Question
> > 
> > 
> > 
> > Hey
> > The jar file, called iNDemandCH.jar lives in this directory.
> > C:\Tomcat\webapps\indemand\WEB-INF\lib
> > the weird thing about this is that some .do actions work, and 
> > others don't. Do you think it might be that it can't see the 
> > class files?
> > 
> > "Karr, David" wrote:What do you mean 
> > by "inside a jar file that is referenced in the
> > classpath explicitly"? Aren't you putting your application 
> classes in
> > the "WEB-INF/classes" or "WEB-INF/lib" directory? You will 
> always get
> > into trouble if you try to externally control the CLASSPATH.
> > 
> > > -Original Message-
> > > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > > 
> > > Yes, here it is...
> > > > 
> type="com.thoughtworks.clearinghouse.web.servlet.EditRecordAction"
> > > name="recordForm"
> > > scope="request"
> > > input="editRecord.jsp">
> > > 
> > > 
> > > 
> > > 
> > > and the class does exist inside a jar file that is referenced 
> > > in the classpath explicitly
> > > "Karr, David" wrote:Do you have a 
> > > valid "action" element in your "struts-config.xml" file
> > > specifying the "editRecord.do" action (assuming you're 
> > using extension
> > > mapping)?
> > > 
> > > > -Original Message-
> > > > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > > > 
> > > > Hey,
> > > > I'm getting the following error which makes me think that it 
> > > > can't locate my classes, but the jar containing the classes 
> > > > is in the CLASSPATH.
> > > > Does anything about this jump out at anybody?Apache 
> > > > Tomcat/4.0.6 - HTTP Status 500 - No action instance for path 
> > > > /editRecord could be created
> > > > -
> > > > 
> > > > type Status report
> > > > 
> > > > message No action instance for path /editRecord could be created
> > > > 
> > > > description The server encountered an internal error (No 
> > > > action instance for path /editRecord could be created) that 
> > > > prevented it from fulfilling this request.
> > 
> > --
> > To unsubscribe, e-mail: 
> > For additional commands, e-mail: 
> > 
> > 
> > 
> > -
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> > 
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> 

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




RE: Easy Question

2002-11-26 Thread John Mattos

Yes, exactly.
The app doesn't put out a stack trace at this point, but there are other points it 
fails. Here's a stack trace from another point in the app.
java.lang.NoClassDefFoundError: javax/ejb/ObjectNotFoundException
at 
com.thoughtworks.clearinghouse.web.servlet.MaintainMappingAction.actionExecuted(MaintainMappingAction.java:75)
at 
com.thoughtworks.clearinghouse.web.servlet.AbstractAction.execute(AbstractAction.java:38)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:437)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)

It seems like it can't find the classes!!
 "Karr, David" <[EMAIL PROTECTED]> wrote:So the "indemand" web application has this 
struts-config.xml file and
all your relevant libs and classes?

Does the error show an exception stack trace? If so, what is the "root
cause" stack trace?

> -Original Message-
> From: John Mattos [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 3:08 PM
> To: Struts Users Mailing List
> Subject: RE: Easy Question
> 
> 
> 
> Hey
> The jar file, called iNDemandCH.jar lives in this directory.
> C:\Tomcat\webapps\indemand\WEB-INF\lib
> the weird thing about this is that some .do actions work, and 
> others don't. Do you think it might be that it can't see the 
> class files?
> 
> "Karr, David" wrote:What do you mean 
> by "inside a jar file that is referenced in the
> classpath explicitly"? Aren't you putting your application classes in
> the "WEB-INF/classes" or "WEB-INF/lib" directory? You will always get
> into trouble if you try to externally control the CLASSPATH.
> 
> > -Original Message-
> > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > 
> > Yes, here it is...
> > > type="com.thoughtworks.clearinghouse.web.servlet.EditRecordAction"
> > name="recordForm"
> > scope="request"
> > input="editRecord.jsp">
> > 
> > 
> > 
> > 
> > and the class does exist inside a jar file that is referenced 
> > in the classpath explicitly
> > "Karr, David" wrote:Do you have a 
> > valid "action" element in your "struts-config.xml" file
> > specifying the "editRecord.do" action (assuming you're 
> using extension
> > mapping)?
> > 
> > > -Original Message-
> > > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > > 
> > > Hey,
> > > I'm getting the following error which makes me think that it 
> > > can't locate my classes, but the jar containing the classes 
> > > is in the CLASSPATH.
> > > Does anything about this jump out at anybody?Apache 
> > > Tomcat/4.0.6 - HTTP Status 500 - No action instance for path 
> > > /editRecord could be created
> > > -
> > > 
> > > type Status report
> > > 
> > > message No action instance for path /editRecord could be created
> > > 
> > > description The server encountered an internal error (No 
> > > action instance for path /editRecord could be created) that 
> > > prevented it from fulfilling this request.
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> 

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


RE: Easy Question

2002-11-26 Thread Karr, David
So the "indemand" web application has this struts-config.xml file and
all your relevant libs and classes?

Does the error show an exception stack trace?  If so, what is the "root
cause" stack trace?

> -Original Message-
> From: John Mattos [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 3:08 PM
> To: Struts Users Mailing List
> Subject: RE: Easy Question
> 
> 
> 
> Hey
> The jar file, called iNDemandCH.jar lives in this directory.
> C:\Tomcat\webapps\indemand\WEB-INF\lib
> the weird thing about this is that some .do actions work, and 
> others don't. Do you think it might be that it can't see the 
> class files?
>  
>  "Karr, David" <[EMAIL PROTECTED]> wrote:What do you mean 
> by "inside a jar file that is referenced in the
> classpath explicitly"? Aren't you putting your application classes in
> the "WEB-INF/classes" or "WEB-INF/lib" directory? You will always get
> into trouble if you try to externally control the CLASSPATH.
> 
> > -Original Message-
> > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > 
> > Yes, here it is...
> > > type="com.thoughtworks.clearinghouse.web.servlet.EditRecordAction"
> > name="recordForm"
> > scope="request"
> > input="editRecord.jsp">
> > 
> > 
> > 
> > 
> > and the class does exist inside a jar file that is referenced 
> > in the classpath explicitly
> > "Karr, David" wrote:Do you have a 
> > valid "action" element in your "struts-config.xml" file
> > specifying the "editRecord.do" action (assuming you're 
> using extension
> > mapping)?
> > 
> > > -Original Message-
> > > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > > 
> > > Hey,
> > > I'm getting the following error which makes me think that it 
> > > can't locate my classes, but the jar containing the classes 
> > > is in the CLASSPATH.
> > > Does anything about this jump out at anybody?Apache 
> > > Tomcat/4.0.6 - HTTP Status 500 - No action instance for path 
> > > /editRecord could be created
> > > -
> > > 
> > > type Status report
> > > 
> > > message No action instance for path /editRecord could be created
> > > 
> > > description The server encountered an internal error (No 
> > > action instance for path /editRecord could be created) that 
> > > prevented it from fulfilling this request.
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> 

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




RE: Easy Question

2002-11-26 Thread John Mattos

Hey
The jar file, called iNDemandCH.jar lives in this directory.
C:\Tomcat\webapps\indemand\WEB-INF\lib
the weird thing about this is that some .do actions work, and others don't. Do you 
think it might be that it can't see the class files?
 
 "Karr, David" <[EMAIL PROTECTED]> wrote:What do you mean by "inside a jar file 
that is referenced in the
classpath explicitly"? Aren't you putting your application classes in
the "WEB-INF/classes" or "WEB-INF/lib" directory? You will always get
into trouble if you try to externally control the CLASSPATH.

> -Original Message-
> From: John Mattos [mailto:[EMAIL PROTECTED]]
> 
> Yes, here it is...
> > type="com.thoughtworks.clearinghouse.web.servlet.EditRecordAction"
> name="recordForm"
> scope="request"
> input="editRecord.jsp">
> 
> 
> 
> 
> and the class does exist inside a jar file that is referenced 
> in the classpath explicitly
> "Karr, David" wrote:Do you have a 
> valid "action" element in your "struts-config.xml" file
> specifying the "editRecord.do" action (assuming you're using extension
> mapping)?
> 
> > -Original Message-
> > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > 
> > Hey,
> > I'm getting the following error which makes me think that it 
> > can't locate my classes, but the jar containing the classes 
> > is in the CLASSPATH.
> > Does anything about this jump out at anybody?Apache 
> > Tomcat/4.0.6 - HTTP Status 500 - No action instance for path 
> > /editRecord could be created
> > -
> > 
> > type Status report
> > 
> > message No action instance for path /editRecord could be created
> > 
> > description The server encountered an internal error (No 
> > action instance for path /editRecord could be created) that 
> > prevented it from fulfilling this request.

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


RE: Easy Question

2002-11-26 Thread Karr, David
What do you mean by "inside a jar file that is referenced in the
classpath explicitly"?  Aren't you putting your application classes in
the "WEB-INF/classes" or "WEB-INF/lib" directory?  You will always get
into trouble if you try to externally control the CLASSPATH.

> -Original Message-
> From: John Mattos [mailto:[EMAIL PROTECTED]]
> 
> Yes, here it is...
>  type="com.thoughtworks.clearinghouse.web.servlet.EditRecordAction"
> name="recordForm"
> scope="request"
> input="editRecord.jsp">
>   
>   
>   
>  
> and the class does exist inside a jar file that is referenced 
> in the classpath explicitly
>  "Karr, David" <[EMAIL PROTECTED]> wrote:Do you have a 
> valid "action" element in your "struts-config.xml" file
> specifying the "editRecord.do" action (assuming you're using extension
> mapping)?
> 
> > -Original Message-
> > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > 
> > Hey,
> > I'm getting the following error which makes me think that it 
> > can't locate my classes, but the jar containing the classes 
> > is in the CLASSPATH.
> > Does anything about this jump out at anybody?Apache 
> > Tomcat/4.0.6 - HTTP Status 500 - No action instance for path 
> > /editRecord could be created
> > -
> > 
> > type Status report
> > 
> > message No action instance for path /editRecord could be created
> > 
> > description The server encountered an internal error (No 
> > action instance for path /editRecord could be created) that 
> > prevented it from fulfilling this request.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Easy Question

2002-11-26 Thread John Mattos

Yes, here it is...

  
  
  
 
and the class does exist inside a jar file that is referenced in the classpath 
explicitly
 "Karr, David" <[EMAIL PROTECTED]> wrote:Do you have a valid "action" element in 
your "struts-config.xml" file
specifying the "editRecord.do" action (assuming you're using extension
mapping)?

> -Original Message-
> From: John Mattos [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 2:29 PM
> To: [EMAIL PROTECTED]
> Subject: Easy Question
> 
> 
> 
> Hey,
> I'm getting the following error which makes me think that it 
> can't locate my classes, but the jar containing the classes 
> is in the CLASSPATH.
> Does anything about this jump out at anybody?Apache 
> Tomcat/4.0.6 - HTTP Status 500 - No action instance for path 
> /editRecord could be created
> -
> 
> type Status report
> 
> message No action instance for path /editRecord could be created
> 
> description The server encountered an internal error (No 
> action instance for path /editRecord could be created) that 
> prevented it from fulfilling this request.
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> 

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


RE: Easy Question

2002-11-26 Thread Karr, David
Do you have a valid "action" element in your "struts-config.xml" file
specifying the "editRecord.do" action (assuming you're using extension
mapping)?

> -Original Message-
> From: John Mattos [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 2:29 PM
> To: [EMAIL PROTECTED]
> Subject: Easy Question
> 
> 
> 
> Hey,
> I'm getting the following error which makes me think that it 
> can't locate my classes, but the jar containing the classes 
> is in the CLASSPATH.
> Does anything about this jump out at anybody?Apache 
> Tomcat/4.0.6 - HTTP Status 500 - No action instance for path 
> /editRecord could be created
> -
> 
> type Status report
> 
> message No action instance for path /editRecord could be created
> 
> description The server encountered an internal error (No 
> action instance for path /editRecord could be created) that 
> prevented it from fulfilling this request.
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: