--help

2008-03-04 Thread Randall Svancara

-- 
Randall Svancara
Systems Administrator
509-335-7093


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



Re: file upload exception

2007-09-12 Thread Randall Svancara
Make sure you have commons-io, commons-fileupload, and
commons-collections jar files in your WEB-INF/lib directory.  At least
this worked for me.

Thanks,

On Wed, 2007-09-12 at 19:07 -0400, Session A Mwamufiya wrote:
> Hi,
> 
> I'm using struts 2.0.6, and I keep getting the following exception when I try 
> to replicate the fileupload example in the showcase:
> 
> Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest 
> (jakarta) - [unknown location]
> org.apache.struts2.config.BeanSelectionProvider$ObjectFactoryDelegateFactory.create(BeanSelectionProvider.java:247)
> com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:134)
> com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:476)
> com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:486)
> com.opensymphony.xwork2.inject.ContainerImpl$9.call(ContainerImpl.java:517)
> com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:542)
> com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:515)
> org.apache.struts2.dispatcher.Dispatcher.wrapRequest(Dispatcher.java:700)
> org.apache.struts2.dispatcher.FilterDispatcher.prepareDispatcherAndWrapRequest(FilterDispatcher.java:327)
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:390)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> 
> Here is my jsp:
> 
>   
>   
> 
> 
> Here is my validation.xml:
> 
>   
> 
>   
>   File cannot be empty
> 
>   
> 
> 
> If I remove enctype="multipart/form-data", I get the following error: Invalid 
> field value for field "upload".
> 
> Any idea how to fix this?  Does this have to do with my version of struts, or 
> is there something that I'm missing.
> 
> Thanks,
> Session
> 
> 
> ---------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
Randall Svancara
System Administrator
Horticulture and Landscape Architecture
509-335-7093

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



Re: file upload exception

2007-09-12 Thread Randall Svancara
Make sure you have commons-io, commons-fileupload, and
commons-collections jar files in your WEB-INF/lib directory.  At least
this worked for me.

Thanks,


On Wed, 2007-09-12 at 19:07 -0400, Session A Mwamufiya wrote:
> Hi,
> 
> I'm using struts 2.0.6, and I keep getting the following exception when I try 
> to replicate the fileupload example in the showcase:
> 
> Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest 
> (jakarta) - [unknown location]
> org.apache.struts2.config.BeanSelectionProvider$ObjectFactoryDelegateFactory.create(BeanSelectionProvider.java:247)
> com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:134)
> com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:476)
> com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:486)
> com.opensymphony.xwork2.inject.ContainerImpl$9.call(ContainerImpl.java:517)
> com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:542)
> com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:515)
> org.apache.struts2.dispatcher.Dispatcher.wrapRequest(Dispatcher.java:700)
> org.apache.struts2.dispatcher.FilterDispatcher.prepareDispatcherAndWrapRequest(FilterDispatcher.java:327)
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:390)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> 
> Here is my jsp:
> 
>   
>   
> 
> 
> Here is my validation.xml:
> 
>   
> 
>   
>   File cannot be empty
> 
>   
> 
> 
> If I remove enctype="multipart/form-data", I get the following error: Invalid 
> field value for field "upload".
> 
> Any idea how to fix this?  Does this have to do with my version of struts, or 
> is there something that I'm missing.
> 
> Thanks,
> Session
> 
> 
> ---------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
Randall Svancara
System Administrator
Horticulture and Landscape Architecture
509-335-7093

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



Re: Struts2 select taglib

2007-09-12 Thread Randall Svancara
Ummm, i apologize.I made a very simple mistake:



I put an extra " in the select tag.
 

On Wed, 2007-09-12 at 14:35 -0700, Randall Svancara wrote:
> 
> 
> I mostly have experience with original struts.  But now I am attempting
> to use Struts 2.  I am trying to figure out how I can populate the
> select tag.
> 
> I have created an action class, called Blast with the following
> attributes:
> 1. List databases = new ArrayList();
> 
> There are two methods, getDatabases and setDatabases 
> 
> I have created another class called Database with the following
> attributes: 
> 1. int id
> 2. String database
> 3. String databasetype
> 
> I want to use the select tag to access the List of Database objects in
> the action class Blast.java
> 
> This is how I am using the action class:
> 
>  listValue="database" "emptyOption="true">
> 
> As you can see, I specify the list equal to databases which should
> correspond to getDatabases in my action class, Blast.  My listKey is
> equal to id, which should correspond to the id field in my Database
> class.  And finally, listValue should correspond to database in my
> Database class.
> 
> My jsp page fails to compile/execute giving errors like:
> 
> /view/Index.jsp(55,87) Unterminated <s:select tag
> 
> or 
> 
> org.apache.jasper.JasperException: Unable to load class for JSP
> 
> I am including copies of the files in case someone is kind enough to
> help a pathetic newbie out with this.
> 
> 
> mport java.io.File;
> import java.util.ArrayList;
> import java.util.Collections;
> import java.util.Date;
> import java.util.HashMap;
> import java.util.List;
> import java.util.Map;
>  
> import org.apache.struts2.ServletActionContext;
>  
> import com.opensymphony.xwork2.ActionSupport;
> import com.opensymphony.xwork2.Validateable;
> import com.opensymphony.xwork2.util.ValueStack;
> 
> import edu.wsu.bioinfo.domain.Database;
> 
> import org.apache.log4j.Logger;
> 
> public class Blast extends MainLabSupport {
> 
> static final long serialVersionUID=1L;
> private static Logger logger = Logger.getLogger(Blast.class);
> 
> 
> private String title;
> private String emailaddress;
> private String database;
> private List databases = new ArrayList();
> 
> // Default Constructor
> public Blast(){
>   
>   Database db1 = new Database(1, "NCBI Fragaria EST", "EST");
>   Database db2 = new Database(2, "NCBI Malus EST", "EST");
>   Database db3 = new Database(3, "NCBI Prunus EST", "EST");
>   this.databases.add(db1);
>   this.databases.add(db2);
>   this.databases.add(db3);
>   
> }
> 
> 
> public String execute() throws Exception {
> 
> 
> 
> 
> return INPUT;
> }
> 
> 
> /**
>  * @return the title
>  */
> public String getTitle() {
> return title;
> }
> 
> 
> /**
>  * @param title the title to set
>  */
> public void setTitle(String title) {
> this.title = title;
> }
> 
> 
> /**
>  * @return the emailaddress
>  */
> public String getEmailaddress() {
> return emailaddress;
> }
> 
> 
> /**
>  * @param emailaddress the emailaddress to set
>  */
> public void setEmailaddress(String emailaddress) {
> this.emailaddress = emailaddress;
> }
> 
> 
> /**
>  * @return the database
>  */
> public String getDatabase() {
> return database;
> }
> 
> 
> /**
>  * @param database the database to set
>  */
> public void setDatabase(String database) {
> this.database = database;
> }
> 
> 
> /**
>  * @return the databases
>  */
> public List getDatabases() {
> return databases;
> }
> 
> 
> /**
>  * @param databases the databases to set
>  */
> public void setDatabases(List databases) {
> this.databases = databases;
> }
> 
> }
> 
> 
> 
> 
> public class Database {
>   
>   private int databaseid;
>   private String database;
>  

Re: Struts2 select taglib

2007-09-12 Thread Randall Svancara
set
 */
public void setDatabase(String database) {
this.database = database;
}
/**
 * @return the databasetype
 */
public String getDatabasetype() {
return databasetype;
}
/**
 * @param databasetype the databasetype to set
 */
public void setDatabasetype(String databasetype) {
this.databasetype = databasetype;
}

}



 

  

  Search Title:


  

  
  

  Email Address:


  

  
  

  Database:


   
  

  

 
  
Upload File
File: 
  
  
Cut and Paste
Paste Sequence into Text Area:


  
  
      












On Wed, 2007-09-12 at 14:27 -0700, Randall Svancara wrote:
> user@struts.apache.org
-- 
Randall Svancara
System Administrator
Horticulture and Landscape Architecture
509-335-7093

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



Struts2 select taglib

2007-09-12 Thread Randall Svancara
I mostly have experience with original struts.  But now I am attempting
to use Struts 2.  I am trying to figure out how I can populate the
select tag.

I have created an action class, called Blast with the following
attributes:
1. List databases = new ArrayList();

There are two methods, getDatabases and setDatabases 

I have created another class called Database with the following
attributes: 
1. int id
2. String database
3. String databasetype

I want to use the select tag to access the List of Database objects in
the action class Blast>

This is how I am using the action class:



As you can see, I specify the list equal to databases which should
correspond to getDatabases in my action class, Blast.  My listKey is
equal to id, which should correspond to the id field in my Database
class.  And finally, listValue should correspond to database in my
Database class.

My jsp page fails to compile/execute giving errors like:

/view/Index.jsp(55,87) Unterminated <s:select tag

or 






-- 
Randall Svancara
System Administrator
Horticulture and Landscape Architecture
509-335-7093

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



RE: Strange Error : Cannot find ActionMappings or ActionFormBeans collection

2005-05-28 Thread Randall Svancara
Wendy,
 
Thanks for your help.  I will implement your suggestions.  I have only been 
using struts for about two weeks, and definitely like everything it has to 
offer.  Kudos to the struts team and people on this list willing to help a newb 
out.
 
Randall



From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Sat 5/28/2005 4:37 PM
To: Struts Users Mailing List
Subject: Re: Strange Error : Cannot find ActionMappings or ActionFormBeans 
collection



From: "Randall Svancara" <[EMAIL PROTECTED]>

> I can replicate this problem on my laptop as well.  When I disable the
> network connections,
> I recieve the same errors.  So why does struts need to go
> to http://struts.apache.org/dtds/struts-config_1_2.dtd to find the dtds??
> So how can I make struts find this file locally.

I just disabled my network connection, started Tomcat 5.5.9, and dropped in
all of the example/documentation webapps that ship with Struts 1.2.7.
Everything works fine offline for me.

Do you have any .tld files sitting "loose" in WEB-INF?  Do you have any
 tags in web.xml?  Try removing both the .tld files and the mappings
in web.xml.  The dtds are in their respective .jar files, and can be located
there if you use the correct DOCTYPE declaration.

Here's an archived post from Craig explaining how it works:
http://marc.theaimsgroup.com/?l=struts-user&m=107842475723945

--
Wendy Smoak



-
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: Strange Error : Cannot find ActionMappings or ActionFormBeans collection

2005-05-28 Thread Randall Svancara
Ok, this sounds stupid...but I comment out the following line in my 
struts-config.xml and everything works fine.
 
http://struts.apache.org/dtds/struts-config_1_2.dtd";>

I am no longer recieving the error:

Cannot find ActionMappings or ActionFormBeans collection

However, now I recieve several other errors, but at least my jsp pages load 
properly.

xml.sax.SAXParseException: Document root element "struts-config", must match 
DOCTYPE root "null".

org.xml.sax.SAXParseException: Document is invalid: no grammar found.

 

So now my question is: HOW DO YOU SPECIFY A LOCAL DTD FOR THE 
STRUTS-CONFIG.XML.  Because you can not assume that you will always be 
connected to the internet!!!

thanks!!!

Randall


____

From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Sat 5/28/2005 10:26 AM
To: Struts Users Mailing List
Subject: RE: Strange Error : Cannot find ActionMappings or ActionFormBeans 
collection



I can replicate this problem on my laptop as well.  When I disable the network 
connections, I recieve the same errors.  So why does struts need to go to 
http://struts.apache.org/dtds/struts-config_1_2.dtd to find the dtds??
So how can I make struts find this file locally. 

Thanks

Randall

____

From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Sat 5/28/2005 7:03 AM
To: Struts Users Mailing List
Subject: RE: Strange Error : Cannot find ActionMappings or ActionFormBeans 
collection



ahhthanks

web.xml...no DOCTYPE herecould this be a problem??

http://java.sun.com/xml/ns/j2ee 
<http://java.sun.com/xml/ns/j2ee> " 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 
<http://www.w3.org/2001/XMLSchema-instance> " version="2.4" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
<http://java.sun.com/xml/ns/j2ee>  
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd 
<http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd> ">

struts-config.xml

http://struts.apache.org/dtds/struts-config_1_2.dtd 
<http://struts.apache.org/dtds/struts-config_1_2.dtd> ">


struts-logic tld

http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd 
<http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd> ">

struts-html.tld

http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd";>

All my struts related  JARS are located in WEB-INF/lib.
For example, struts.jar is located in WEB-INF/lib as well as struts-legacy.jar, 
log4j.jar, jstl.jar, jakarta-ora.jar.

Should all struts DTD's be http://struts.apache.org/dtds/struts-config_1_2.dtd 
<http://struts.apache.org/dtds/struts-config_1_2.dtd> ???

Thanks,

Randall



From: "Randall Svancara" <[EMAIL PROTECTED]>

> Anyway I am posting my struts config file.
>  Configuration 1.2//EN"
> "http://struts.apache.org/dtds/struts-config_1_2.dtd";>

I only asked for the DOCTYPE declaration, (not the whole file!) and not just
for struts-config, but for all struts-related config files.  I think
possibly one of them has the wrong DOCTYPE.

For each config file, there should be a DTD in one of the .jar files.  The
one referred to above is in struts.jar, for example.  Each of those DTDs has
an example DOCTYPE declaration.  If you use it, the system should locate the
DTD within the .jar file and not go searching for it across the network.

Where are the .jar files for this webapp?  They should be under WEB-INF/lib
for the webapp, not in any shared/global area for the container.

--
Wendy Smoak



-
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: Strange Error : Cannot find ActionMappings or ActionFormBeans collection

2005-05-28 Thread Randall Svancara
I can replicate this problem on my laptop as well.  When I disable the network 
connections, I recieve the same errors.  So why does struts need to go to 
http://struts.apache.org/dtds/struts-config_1_2.dtd to find the dtds??
So how can I make struts find this file locally.  
 
Thanks
 
Randall



From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Sat 5/28/2005 7:03 AM
To: Struts Users Mailing List
Subject: RE: Strange Error : Cannot find ActionMappings or ActionFormBeans 
collection



ahhthanks

web.xml...no DOCTYPE herecould this be a problem??

http://java.sun.com/xml/ns/j2ee 
<http://java.sun.com/xml/ns/j2ee> " 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 
<http://www.w3.org/2001/XMLSchema-instance> " version="2.4" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
<http://java.sun.com/xml/ns/j2ee>  
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd 
<http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd> ">

struts-config.xml

http://struts.apache.org/dtds/struts-config_1_2.dtd 
<http://struts.apache.org/dtds/struts-config_1_2.dtd> ">


struts-logic tld

http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd 
<http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd> ">

struts-html.tld

http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd";>

All my struts related  JARS are located in WEB-INF/lib. 
For example, struts.jar is located in WEB-INF/lib as well as struts-legacy.jar, 
log4j.jar, jstl.jar, jakarta-ora.jar.

Should all struts DTD's be http://struts.apache.org/dtds/struts-config_1_2.dtd 
<http://struts.apache.org/dtds/struts-config_1_2.dtd> ??? 

Thanks,

Randall



From: "Randall Svancara" <[EMAIL PROTECTED]>

> Anyway I am posting my struts config file.
>  Configuration 1.2//EN"
> "http://struts.apache.org/dtds/struts-config_1_2.dtd";>

I only asked for the DOCTYPE declaration, (not the whole file!) and not just
for struts-config, but for all struts-related config files.  I think
possibly one of them has the wrong DOCTYPE.

For each config file, there should be a DTD in one of the .jar files.  The
one referred to above is in struts.jar, for example.  Each of those DTDs has
an example DOCTYPE declaration.  If you use it, the system should locate the
DTD within the .jar file and not go searching for it across the network.

Where are the .jar files for this webapp?  They should be under WEB-INF/lib
for the webapp, not in any shared/global area for the container.

--
Wendy Smoak



-
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: Strange Error : Cannot find ActionMappings or ActionFormBeans collection

2005-05-28 Thread Randall Svancara
ahhthanks
 
web.xml...no DOCTYPE herecould this be a problem??

http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.4" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

struts-config.xml

http://struts.apache.org/dtds/struts-config_1_2.dtd";>


struts-logic tld

http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd";>

struts-html.tld

 

 

 
 
 
 
 
 



From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Fri 5/27/2005 8:50 PM
To: Struts Users Mailing List
Subject: Re: Strange Error : Cannot find ActionMappings or ActionFormBeans 
collection



From: "Randall Svancara" <[EMAIL PROTECTED]>

> Anyway I am posting my struts config file.
>  Configuration 1.2//EN"
> "http://struts.apache.org/dtds/struts-config_1_2.dtd";>

I only asked for the DOCTYPE declaration, (not the whole file!) and not just
for struts-config, but for all struts-related config files.  I think
possibly one of them has the wrong DOCTYPE.

For each config file, there should be a DTD in one of the .jar files.  The
one referred to above is in struts.jar, for example.  Each of those DTDs has
an example DOCTYPE declaration.  If you use it, the system should locate the
DTD within the .jar file and not go searching for it across the network.

Where are the .jar files for this webapp?  They should be under WEB-INF/lib
for the webapp, not in any shared/global area for the container.

--
Wendy Smoak



-
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: Strange Error : Cannot find ActionMappings or ActionFormBeans collection

2005-05-28 Thread Randall Svancara
ahhthanks

web.xml...no DOCTYPE herecould this be a problem??

http://java.sun.com/xml/ns/j2ee 
<http://java.sun.com/xml/ns/j2ee> " 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 
<http://www.w3.org/2001/XMLSchema-instance> " version="2.4" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
<http://java.sun.com/xml/ns/j2ee>  
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd 
<http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd> ">

struts-config.xml

http://struts.apache.org/dtds/struts-config_1_2.dtd 
<http://struts.apache.org/dtds/struts-config_1_2.dtd> ">


struts-logic tld

http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd 
<http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd> ">

struts-html.tld

http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd";>
 
All my struts related  JARS are located in WEB-INF/lib.  
For example, struts.jar is located in WEB-INF/lib as well as struts-legacy.jar, 
log4j.jar, jstl.jar, jakarta-ora.jar.
 
Should all struts DTD's be http://struts.apache.org/dtds/struts-config_1_2.dtd 
<http://struts.apache.org/dtds/struts-config_1_2.dtd> ???  
 
Thanks,
 
Randall



From: "Randall Svancara" <[EMAIL PROTECTED]>

> Anyway I am posting my struts config file.
>  Configuration 1.2//EN"
> "http://struts.apache.org/dtds/struts-config_1_2.dtd";>

I only asked for the DOCTYPE declaration, (not the whole file!) and not just
for struts-config, but for all struts-related config files.  I think
possibly one of them has the wrong DOCTYPE.

For each config file, there should be a DTD in one of the .jar files.  The
one referred to above is in struts.jar, for example.  Each of those DTDs has
an example DOCTYPE declaration.  If you use it, the system should locate the
DTD within the .jar file and not go searching for it across the network.

Where are the .jar files for this webapp?  They should be under WEB-INF/lib
for the webapp, not in any shared/global area for the container.

--
Wendy Smoak



-
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: Strange Error : Cannot find ActionMappings or ActionFormBeans collection

2005-05-27 Thread Randall Svancara
Wendy, 
 
Thanks for responding.  Yeah, I had better just take the weekend off like every 
other American citizen to regain my sanity before another week of work.  Anyway 
I am posting my struts config file.  By the way, it was generated by my 
eclipse...so I might check there to see if there are any problems.   Also I 
want to learn more about why this error is popping up so I might go through the 
struts source code tonight.  Who knows, I might learn something
 
 


http://struts.apache.org/dtds/struts-config_1_2.dtd";>























 































 









 
 
 
 



From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Fri 5/27/2005 4:44 PM
To: Struts Users Mailing List
Subject: Re: Strange Error : Cannot find ActionMappings or ActionFormBeans 
collection



From: "Randall Svancara" <[EMAIL PROTECTED]>

> I can see this is a really active list on a Friday...

It's the Friday before a three-day holiday weekend in the US, so I wouldn't
expect much traffic from here until Tuesday.

> java.net.UnknownHostException: struts.apache.org.  My server would not
> have ability to contact this host.  Is this a problem for struts.  Can
> struts operate without a network..

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

RE: Strange Error : Cannot find ActionMappings or ActionFormBeans collection

2005-05-27 Thread Randall Svancara
I can see this is a really active list on a Friday...

So these servers are in a DMZ and they do not have the ability to go out
and contact hosts via port 80.  So can someone explain why this
exception is being thrown...

java.net.UnknownHostException: struts.apache.org.  My server would not
have ability to contact this host.  Is this a problem for struts.  Can
struts operate without a network..

Randall 

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 27, 2005 3:54 PM
To: Struts Users Mailing List
Subject: RE: Strange Error : Cannot find ActionMappings or
ActionFormBeans collection

More error messagesI have log4j set configured and this is the error
returned by struts.  I believe it is having a problem with reading my
struts config file or some other resource.  However, I am not sure why
this is the case because this same application works just fine in my
test environment, running on fedora core 3.  My server environment is
running fedora core 3.  Permissions are the same.  Same version of
Jakarta tomcat, 5.5.9.  Firewall has been disabled on both servers.



[2005-05-27 09:43:08,272] main
org.apache.struts.util.PropertyMessageResources INFO  - Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[2005-05-27 09:43:08,274] main
org.apache.struts.util.PropertyMessageResources INFO  - Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
[2005-05-27 09:43:48,425] main org.apache.struts.action.ActionServlet
ERROR - Parsing error processing resource path
java.net.UnknownHostException: struts.apache.org
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.http.HttpClient.(HttpClient.java:214)
at sun.net.www.http.HttpClient.New(HttpClient.java:287)
at sun.net.www.http.HttpClient.New(HttpClient.java:299)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConn
ection.java:792)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnecti
on.java:744)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.ja
va:669)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnec
tion.java:913)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEnt
ity(XMLEntityManager.java:973)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XML
EntityManager.java:905)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(
XMLEntityManager.java:872)
at
com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource
(XMLDTDScannerImpl.java:282)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispat
cher.dispatch(XMLDocumentScannerImpl.java:1021)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
canDocument(XMLDocumentFragmentScannerImpl.java:368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
1Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
1Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.jav
a:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstr
actSAXParser.java:1242)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServl
et.java:1006)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.ja
va:955)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1091)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3857)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4118
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
589)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:536)
at
org.apache.catalina.startup.H

RE: Strange Error : Cannot find ActionMappings or ActionFormBeans collection

2005-05-27 Thread Randall Svancara
java:442)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
[2005-05-27 09:43:48,429] main
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/propsys]
INFO  - Marking servlet action as unavailable
[2005-05-27 09:43:48,429] main
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/propsys]
ERROR - Servlet /propsys threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource
path
at
org.apache.struts.action.ActionServlet.handleConfigException(ActionServl
et.java:1035)
at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServl
et.java:1012)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.ja
va:955)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1091)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3857)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4118
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
589)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:536)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
1)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

 

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 27, 2005 1:49 PM
To: Struts Users Mailing List
Subject: Strange Error : Cannot find ActionMappings or ActionFormBeans
collection

Is the error:  Cannot find ActionMappings or ActionFormBeans collection,
thrown only when the struts-config.xml can not be read. 

I have a two test servers with a struts based application installed and
working fine, however, I move the application to the production servers
and I recieve this error with any page that uses a struts tag.  I can
not figure out what I have configured incorrectly in the production
servers to cause this error. 

Java version 1.5.03 from SUN, both production and test Fedora Core 3 on
both production and test, with all updates installed this morning, test
works fine, production give the above error.
Jakarta Tomcat 5.5.9



javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection
at
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
at
org.apache.jsp.index_jsp._jspx_meth_html_form_0(org.apache.jsp.index_jsp
:228)
at
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:98)
at
org.apache.jasper.runtime

Strange Error : Cannot find ActionMappings or ActionFormBeans collection

2005-05-27 Thread Randall Svancara
Is the error:  Cannot find ActionMappings or ActionFormBeans collection,
thrown only when the struts-config.xml can not be read. 

I have a two test servers with a struts based application installed and
working fine, however, I move the application to the production servers
and I recieve this error with any page that uses a struts tag.  I can
not figure out what I have configured incorrectly in the production
servers to cause this error. 

Java version 1.5.03 from SUN, both production and test
Fedora Core 3 on both production and test, with all updates installed
this morning, test works fine, production give the above error.
Jakarta Tomcat 5.5.9



javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection
at
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
at
org.apache.jsp.index_jsp._jspx_meth_html_form_0(org.apache.jsp.index_jsp
:228)
at
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:98)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
678)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Thread.java:595)
[2005-05-27 07:39:53,732] TP-Processor8
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/propsys]
.[jsp] ERROR - Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection
at
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
at
org.apache.jsp.index_jsp._jspx_meth_html_form_0(org.apache.jsp.index_jsp
:228)
at
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:98)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja

RE: DTD xhtml 1.0 Strict

2005-04-28 Thread Randall Svancara
nutsI was looking under struts xhtml html:text and I found
nothing.to exact of a search I guess.

Thanks

Randall 

-Original Message-
From: Michael Jouravlev [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 28, 2005 3:05 PM
To: Struts Users Mailing List
Subject: Re:  DTD xhtml 1.0 Strict

google: struts xhtml

The first line of search result:
"Kickstart FAQ - Apache Struts: Are the Struts tags XHTML compliant?"
http://struts.apache.org/faqs/kickstart.html#xhtml:
  If you use an ";
} else {
return ">";
    }
}

On 4/28/05, Randall Svancara <[EMAIL PROTECTED]> wrote:
> I am wondering if  can be altered to generate valid DTD 
> xhtml 1.0 strict xhtml.
> 
> For example, I have:
> 
> 
> 
> which generates:
> 
> 
> 
> For valid xhtml 1.0 strict dtd, it needs to look like this:
> 
> 
> 
> Any ideas, suggestions or comments.
> 
> Thanks in advance.
> 
> Randall

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



DTD xhtml 1.0 Strict

2005-04-28 Thread Randall Svancara
I am wondering if  can be altered to generate valid DTD xhtml
1.0 strict xhtml.

For example, I have:



which generates:



For valid xhtml 1.0 strict dtd, it needs to look like this:



Any ideas, suggestions or comments.

Thanks in advance.

Randall

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



RE: Dynamically generating parameterized links using logic:iterate

2005-04-27 Thread Randall Svancara
Thanks,

That worked.  I need to read the documentation!!! 

-Original Message-
From: Michael Jouravlev [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 12:21 PM
To: Struts Users Mailing List
Subject: Re: Dynamically generating parameterized links using
logic:iterate

I guess, it would something like this:


  

  
 

where com.acme.ParcelObj is the object type, which is collected within
"results" and which has parcel property.

Michael.

On 4/27/05, Randall Svancara <[EMAIL PROTECTED]> wrote:
> First of all, I know this must be a frequently asked question.  In 
> java server pages, I would do this:
> 
> <%
> while someiterator.hasNext(){
> %>
> Go
> 
> <%
> }
> 
> This seems fairly strait forward.  Using the struts framework and 
> tags, I am struggling.
> 
> 

>  paramId="parcel" > property="parcel"/>
> 
> 
> I am not sure what I need to use in order to grab the parcel value 
> from the form bean.  I know my syntax is wrong.
> 
> Can someone please demonstrate the proper way to do this.
> 
> Randall
> 
> -
> 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]



Dynamically generating parameterized links using logic:iterate

2005-04-27 Thread Randall Svancara
First of all, I know this must be a frequently asked question.  In java
server pages, I would do this:

<%
while someiterator.hasNext(){
%>
Go

<%
}

This seems fairly strait forward.  Using the struts framework and tags,
I am struggling.





I am not sure what I need to use in order to grab the parcel value from
the form bean.  I know my syntax is wrong.

Can someone please demonstrate the proper way to do this.

Randall

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



RE: Adding parameters to a link

2004-12-02 Thread Randall Svancara
Thanks, I will check google on the proper way to implement this.  It sounds 
like a hassle to me.  I am doing my best to adopt struts and the model view 
controller paradigm.  It seemed so easy to just hack out some code and deploy 
it.  
 
Randall



From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Thu 12/2/2004 5:50 PM
To: Struts Users Mailing List
Subject: RE: Adding parameters to a link



> -Original Message-
> From: Randall Svancara [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 02, 2004 4:01 PM
> To: [EMAIL PROTECTED]
> Subject: Adding parameters to a link
>
>
> I am new to struts. I am trying to add parameters to a link using
> someplace.  Here is the code below.  For each
> iteration, I want to create a dynamic link.
>
>  property="results">
> 
>  paramId="parcel" paramProperty="concatenateAddress"> name="result" property="parcel"/>
> 
> 
>  property="concatenateAddress"/>me
> 
> 

You're going to have to build a hashmap of the items you want and pass that off 
to html:link to get this to work.

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

Adding parameters to a link

2004-12-02 Thread Randall Svancara
I am new to struts. I am trying to add parameters to a link using
someplace.  Here is the code below.  For each
iteration, I want to create a dynamic link.






me




I have a ActionForm called ParcelSearchAction and a Form bean called
Parcel. How do I generate a dynamic link like the one shown below:

http://www.somwhere.com/somepage?key=r123456789&year=2004

Thanks,

Randall

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



test

2004-12-02 Thread Randall Svancara
 
 
test
 

 

 

 


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