AW: Confused about everything ... - I think now it's a problem with the ActionForm

2001-09-04 Thread Antonio Weber

Thank you very much !!

Now it works, but now i have another problem.
it's about the action form. when i call the action
i get the error:

No getter method for property Name of bean
org.apache.struts.taglib.html.BEAN

my class looks like this:

import org.apache.struts.action.ActionForm;

public class LookupActionForm extends ActionForm {

private String name;

public void setName(String pName) {
   name = pName;
}

public String getName() {
   return(name);
}

public LookupActionForm() { }

}

where can be the Problem ?


-Ursprüngliche Nachricht-
Von: Ted Husted [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 4. September 2001 17:27
An: [EMAIL PROTECTED]
Betreff: Re: Confused about everything ...


The one other thing to check is for something like this in your web.xml
where the Struts servlet is loaded


  config
  /WEB-INF/struts-config.xml


If your struts-config.xml is modelled after most of the examples, it
probably has this in it



if so, try /admin/reload.do and see if you get an OK on the screen. Then
try the other URI again.

You might also try (this part of) the application under Tomcat or Resin,
to be sure it is not a WegLogic deployment issue.

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


Antonio Weber wrote:
> 
> Hi !!
> 
> I get an ServletException on my bea with this message
> 
> Cannot retrieve mapping for action /LookupAction
> Must I add in the web-xml the class as an servlet ??
> I don't think so but no I'm so confused ...
> 
> In my struts-config.xml is this entry:
> 
>  name="LookupActionForm"  input="/lookup/lookups.jsp">
> 
> 
> in my web.xml I have for the action
> a *.do mapping...
> the form-tag looks like this:
> 
>  
> where is my fault ? whats going wrong ?
> Please help me 



Newbie question - Sometimes Data Validation ?

2001-09-04 Thread Kurt McCaw

Hello:

I have a simple scenario that I need help with. While a user is adding or 
editing information on a data entry screen (it is the same ActionForm and 
Action) - to click a button to save the information as the defaults for any
subsequent new data entry screen. This saving of the default values would be 
done without running the data validation code. Yet I would like to make sure 
that when the user hits the 'Submit' or 'Save' button - the system does the 
appropriate data validation before saving the information away.

My question is how do I do this with Struts? I am trying to use the 'Wintec' 
validation routines (but I think this would be the same problem if I was 
using them or not) - but I am not sure how to do 'sometimes data validation' 
on a data entry screen. I started off with a button on the screen:

  

but I could not get this to work. I could not get the button to do anything 
other than trying to submit the information (but that is probably another 
issue).

Since I could not get the 'button' to work - I was then trying to use a 
link:
. This would at least call the 
'peform()' method with the correct action, but I had to turn off the 
validation in 'struts-config.xml'.

Any help or suggestions would get greatly appreciated.

Regards,
Kurt


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Bug in html:text field using disabled attribute

2001-09-04 Thread Robert Parker

Im trying to use the html:text field tag. In my tag I have the attribute
disabled="true". However the generated html comes out as disabled="disabled"

Whilst ie 5.x can work with this, Netscape 4.x cant. Shouldn't the output be
either disabled or disabled="true"?

Note the same applies to the readonly attribute.

regards

Rob




html link and title attribute

2001-09-04 Thread Matt Raible

Are there any plans for externalizing the title attribute of html:link into the
ApplicationResources.properties file?

I'd like to see something like this:


 



__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



html link and title attribute

2001-09-04 Thread Matt Raible

Are there any plans for externalizing the title attribute of html:link into the
ApplicationResources.properties file?

I'd like to see something like this:


 



__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



html link and title attribute

2001-09-04 Thread Matt Raible

Are there any plans for externalizing the title attribute of html:link into the
ApplicationResources.properties file?

I'd like to see something like this:


 



__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



html link and title attribute

2001-09-04 Thread Matt Raible

Are there any plans for externalizing the title attribute of html:link into the
ApplicationResources.properties file?

I'd like to see something like this:


 



__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



Re: Connection Pool

2001-09-04 Thread Ted Husted

http://jakarta.apache.org/struts/userGuide/building_model.html#databases

java_san wrote:
> 
> Dear All,
> 
> 1. Can someone let me know the steps involved in setting up a connection
> pool in struts config files?
> 
> 2. Also a small snippet of code on how to use it from a action servlet. Is
> it as easy as getting  a ref. to a connection pool using JNDI.
> 
> Your help is highly appreciated.
> 
> Sanjay



Hello all

2001-09-04 Thread Shea Kelly



Hi,
 
I am 
currently setting up my development environment in order to use struts. 
Does anyone have a recommendation on how I structure my code? 
Obviously I am starting with the struts-blank.war file and it internal directory 
structory, however I would like to use ItelliJ as my IDE and tomcat as my 
servlet container and am wondering if it is possible to use a debugger with 
struts??
 
Please 
help with any configuration ideas that you think are useful
cya
Shea Kelly 
Consultant Software 
EngineerObject Oriented Pty LtdPO Box 528, North Sydney NSW 2059Phone: 
+61 2 9957-1092Direct: +61 2 9459-3335Fax: +61 2 9956-5089 
Mobile: 0416 110 
499Email: 
[EMAIL PROTECTED]Web:  
 


Connection Pool

2001-09-04 Thread java_san

Dear All,

1. Can someone let me know the steps involved in setting up a connection
pool in struts config files?

2. Also a small snippet of code on how to use it from a action servlet. Is
it as easy as getting  a ref. to a connection pool using JNDI.

Your help is highly appreciated.

Sanjay




Re: display error messages for errors found in an Action

2001-09-04 Thread Ted Husted

"Brian K. Buckley" wrote:
> Yes but how do I access that errors object from the perform() method of
> Action?  (or if we create a new ActionErrors object, where do we put it
> since perform() returns an ActionForward object, not an ActionErrors
> object).
> 
> I wanted to be able to add the errors in the perform() method of my action
> object so that when the perform method returned for example,
> "mapping.findForward("failure")", the appropriate errors messages get
> displayed with the  tag in the jsp.
> 
> -Brian

The errors object is saved in the request under a known key
(Action.ERRORS_KEY).

Within perform(), you can call the convenience method 

saveErrors(javax.servlet.http.HttpServletRequest request,
ActionErrors errors) 

to do this. See the JavaDoc for more about how the Action class works. 

http://jakarta.apache.org/struts/api/org/apache/struts/action/Action.html

It's a good read, really ;-)


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



Re: problem with struts and EJB

2001-09-04 Thread Ted Husted

Matt Ho wrote:
> Has there ever been talk of making ActionForm an interface rather than a
> class?  I'd much rather declare
> 
> public class PersonForm extends PersonVO
> implements ActionForm
> {
> ...
> }
> 
> than what I've described above.

See 

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


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



RE: problem with struts and EJB

2001-09-04 Thread Matt Ho

> Since this bean looks similar to an ActionForm, and we hope to use
> ActionForms for data validation, and I don't want to have to move data
> between similar beans, I decided that my bean could extend ActionForm.
> When
> I do this and invoke the getBean() method, I get a CORBA MARSHAL
exception
> -
> "Unable to read value from underlying bridge: minor code: 1398079699".

Consider using a ValueObject rather than an ActionForm to pass data
between the presentation layer and the business logic layer.  Having
your EJB implementation tied so closely to struts is probably not what
you want.  

If your action form is called PersonForm, create a ValueObject called
PersonVO and a methods in PersonForm called setPersonVO and getPersonVO.
It's a little more work up front, but the long term benefit is worth it
IMHO.

Has there ever been talk of making ActionForm an interface rather than a
class?  I'd much rather declare

public class PersonForm extends PersonVO 
implements ActionForm
{
...
}

than what I've described above.

--
matt ho
indigo egg, inc.
providing VoiceXML professional services
http://www.indigoegg.com/


> -Original Message-
> From: Fletcher, Ken [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 1:54 PM
> To: '[EMAIL PROTECTED]'
> Subject: problem with struts and EJB
> 
> I am having a bit of trouble with struts and an EJB (entity bean).
> Instead
> of having getters and setters for each attribute in my entity bean, I
pass
> a
> javabean that has the same attributes and the getters and setters for
the
> attributes.  So, for example, let's say I have an entity bean with two
> attributes, firstName and lastName.  I have no getFirstName() or
> getLastName() method in the entity bean.  What I do have is a
getBean()
> method that returns a bean (not an entity bean) with firstName and
> lastName.
> This bean has the getters and setters in it.
> 
> 
> The ActionForm is the problem because when I use the same bean and
don't
> extend ActionForm it works OK.  My guess is, that although ActionForm
is
> serializable, some attribute in it is not.
> 
> Any help with this would be greatly appreciated.
> 
> Ken Fletcher
> Teacher Retirement System of Texas




Re: ActionMapping parameter

2001-09-04 Thread Ted Husted

David Corbin wrote:
> I'm not saying it's a bad idea, but be very careful what road you start
> down.  If you're not careful, you end up "programming" in xml, which can
> have its down sides

I think we're already doing that ;-)

What's happening now is that people are embedding a lot of control-logic
into HTML forms in the form of hidden properties and such.

With better support for placing multiple parameters into the
ActionMapping, some of that won't be necessary, and more of the
control-flow programming can be centralized in the configuration file. 

Personally, I'm thinking that the best way to handle multiple parameters
is as parameters, since this corresponds to what we already have to do
with global forwards. Otherwise we end up with two ways to do the same
thing, all in the same configuration file.

Meanwhile, to close the loop, we should also be able to specify the path
for an ActionForm with global and local forwards. This would make it
possible to "softcode" all of the system paths and parameters using
logical forwards from the configuration file. 

I'm currently thinking about trying to extend the HTML form tag to allow
use of a FORWARD property as an alternative to the current ACTION
property. When this property is used, the tag would check the
application mappings for the specified logical name and use the mapped
URI for the ACTION property.

To permit use of local forwards, the tag could also check for an Action
Mapping object in the page, request, and session scopes. If found, the
instant mapping object could be used to check for a local and global
forwarding. If not found, the application mappings are used instead.

Again, the benefit of this change are that all URIs can be replaced with
logical forwards throughout a Struts application. It also allows the
target of a form to be changed at runtime from the Action. This would
makes many workflow patterns easier to achieve. 


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



Re: ActionMapping parameter

2001-09-04 Thread Ted Husted

So far, on the DEV list, we've had three suggestions about what to do
about this:

1. Use named parameters instead of a single parameter (as just
mentioned)
2. Use parameter as the name of a property file or other resource where
the actual parameters are kept. 
3. Add methods to ActionMappings to retrieve parameters as if parameter
were a query string.

So in the last case, you could set parameter to be something like 

parameter="form=input+action=update" 

and then retrieve it using methods like 

String form = mapping.getParameter("form"); 

and still keep  

String parameter = mapping.getParameter()

to retrieve the String as is (or maybe just the first parameter).

This has the virtue of being trival to implement, and jives with the way
Forwards have to be coded. 

A quick and easy way to do this starting now, would be to use the
HttpUtils class

http://java.sun.com/j2ee/tutorial/api/javax/servlet/http/HttpUtils.html

and do something like 

--

HashTable parameters =
HttpUtils.parseQueryString(mappings.getParameter());
String form = (String) parameters.get("form"); 

--

Anyone want to give a implementation of doing this within ActionMappings
a whirl? I'd be thinking we'd want all the same parameter methods from
ServletRequest

http://java.sun.com/j2ee/tutorial/api/javax/servlet/ServletRequest.html

Another idea would be to just implement getParameterMap() in
ActionMappings, since HttpUtils is deprecated in Servlet 2.3 ;-(, and
leave it at that.

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


Ernest Jones wrote:
> 
> I wanted some feedback on a feature request before I submit it.
> 
> In the ActionMapping api you can only get one nameless config parameter
> (public String getParameter()).  I would find it useful if I could specify
> any number of named parameters (public String getParameter(String key)).
> The xml in the struts-config file could look like:
> 
> 
>
>
> ...
>   
>  
> 
> To maintain backwards compatability (if you really wanted to) you could keep
> the old parameter attribute and function.
> 
> Thoughts? Comments?



Re: ActionMapping parameter

2001-09-04 Thread Ernest Jones

Point well taken.
The intention is not to pull programming into the configuration file, only
to facilitate code re-use.  Being able to pass in multiple name value pairs
into an action mapping allows the same Action class to be used in different
situations, servlet-contexts, etc.  One may want to specify database urls,
jdbc class-names to use, file locations of resources, messages to log, and
who knows what else.

Alternative solutions include:

1. Using init-parameters on the ActionServlet
drawbacks:
  --only one configuration possible of an Action per servlet-context
  --naming conflicts have to be watched for.

2. Using a properties file
drawbacks:
  --if the file location is hard coded, you have the same problem of only
one configuration possible of an Action per servlet-context
  or (to get around that):
  --if the property file is specified as the parameter value, you still have
to maintain x number of different configuration/property files.

3. Using some sort of delimited name, value specification as the parameter
value (sort of like cgi query strings)
drawbacks:
  --the struts users have to do all the parameter parsing.
  --its a more complicated, uglier solution for those writing the config
file.  Xml provides a much simpler, cleaner solution with child elements.



- Original Message -
From: "David Corbin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 04, 2001 11:49 AM
Subject: Re: ActionMapping parameter


> I'm not saying it's a bad idea, but be very careful what road you start
> down.  If you're not careful, you end up "programming" in xml, which can
> have its down sides
>
>
> - Original Message -
> From: "Ernest Jones" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, September 04, 2001 11:50 AM
> Subject: ActionMapping parameter
>
>
> > I wanted some feedback on a feature request before I submit it.
> >
> > In the ActionMapping api you can only get one nameless config parameter
> > (public String getParameter()).  I would find it useful if I could
specify
> > any number of named parameters (public String getParameter(String key)).
> > The xml in the struts-config file could look like:
> >
> > 
> >
> >
> > ...
> >   
> >  
> >
> > To maintain backwards compatability (if you really wanted to) you could
> keep
> > the old parameter attribute and function.
> >
> > Thoughts? Comments?
> >
> >
> >
> >
>




RE: onClick Link Submitting

2001-09-04 Thread Glenn Kidd
Title: Message



it 
should be forms[0] (note the s).
 
 
Glenn

  -Original Message-From: Steven Leija 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, September 04, 2001 
  2:53 PMTo: 'Struts 
  ([EMAIL PROTECTED])'Subject: onClick Link 
  Submitting
  I'm trying to 
  submit a form through a hyperlink, can anyone see what my error is in my 
  code?
   
  Submit 
  Changes
   
  I'm getting an 
  error saying that my form is null or not an object.
  Have a good one, 
  Steven 
   


Re: display error messages for errors found in an Action

2001-09-04 Thread Brian K. Buckley

>  yes, you can do this.  If you have a message in your
> ApplicationResources file called my.test.error, you can add an error
> like this:
>
> errors.add("myTestField", new ActionError("my.test.error"));
>
> where the string  "myTestField" is the field that caused the error.
>  Look at the constructor for org.apache.struts.action.ActionError for
> more details.

Bill,

Yes but how do I access that errors object from the perform() method of
Action?  (or if we create a new ActionErrors object, where do we put it
since perform() returns an ActionForward object, not an ActionErrors
object).

I wanted to be able to add the errors in the perform() method of my action
object so that when the perform method returned for example,
"mapping.findForward("failure")", the appropriate errors messages get
displayed with the  tag in the jsp.

-Brian




Re: onClick Link Submitting

2001-09-04 Thread Erik Hatcher

you probably need to say "document.form[0].submit()"


- Original Message - 
From: "Steven Leija" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 04, 2001 2:53 PM
Subject: onClick Link Submitting


> I'm trying to submit a form through a hyperlink, can anyone see what my
> error is in my code?
>  
>  styleClass="vfsButton">Submit Changes
>  
> I'm getting an error saying that my form is null or not an object.
> 
> Have a good one, 
> 
> Steven 
> 
>  
> 




Stock AMSE…1000% Growth…Buy Recommendation nmju

2001-09-04 Thread dinozine
Title: A Buy Recommendation was Released on Stock Symbol AMSE














Stock Symbol AMSE has just released an announcement that the Company has
acquired  new business in the already explosive mortgage industry. This follows
the previous announcement of  a  Buy Recommendation done by Chartered Financial Analyst of Stratos Research, LLC on
7/9/2001. Current price $.20/12-month target price $2.25.

 You have to do the research on this one.

 Learn More on the New Press Release CLICK
HERE


Learn More on the  Buy Recommendation   CLICK HERE

If you have received this message in error or don't want any more mailings
from us, please excuse this message, CLICK
HERE TO BE REMOVED

 

 

 

 

Disclaimer Below

 
 
 
 
 
 
 
 
 
 
 
Tequesta Capital Corporation  is an
independent electronic publication providing information on selected public
companies. Certain companies profiled by Tequesta pay consideration in cash
and/or stock to Tequesta for the electronic dissemination of company information
and, in some cases, web site development. Tequesta was retained as a consultant
to AMSE. for one year, pursuant to a written agreement which provides for the
immediate payment of 125,000 shares of common stock of AMSE, restricted rule 144 
and a payment of $30,000 cash for its services, including the electronic
dissemination of information concerning the profiled company. Tequesta did not
receive any other compensation, of any kind, for its services other than stated
herein. Tequesta is not a registered investment advisor or a broker dealer.
Tequesta has been advised that the investments in companies profiled are
considered to be high risk and use of the information provided is for reading
purposes only if anyone decides to act as an investor they are advised not to
invest without the proper advisement from an attorney or a registered financial
broker if any party decides to participate as an investor then it will be that 
investor's sole risk. Tequesta has also been advised that the purchase of such
high risk securities may result in the loss of some or all of the investment.
All  information provided by the profiled companies may include information
provided by outside sources, such as research reports, public filings or
computer databases and information provided to Tequesta by management of the
profiled company. All information is provided by the companies profiled and
Tequesta makes no representations, warranties or guarantees as to the accuracy
or completeness of the disclosure by the profiled companies. Investors should
not rely solely on the information presented. Rather, investors should use the
information provided by the profiled companies as a starting point for doing
additional independent research on the profiled companies in order to allow the
investor to form his or her own opinion regarding investing in the profiled
companies. Factual statements made by the profiled companies are made as of the
date 6/22/2001 and are subject to change without notice. The receipt of this
information shall not create, under any circumstances, any implication that
there has been no change in the affairs of the company profiled since the date
of review. Investing in micro-cap securities is highly speculative and carries
an extremely high degree of risk. It is possible that an investor's entire
investment may be lost or impaired due to the speculative nature of the
companies profiled. Tequesta makes no recommendation that the securities of the
companies profiled should be purchased, sold or held by individuals or entities
that learn of the profiled companies through Tequesta. Investing in micro-cap
securities is highly speculative and carries an extremely high degree of risk.
It is possible that an investor's investment may be lost or impaired due to the
speculative nature of the companies profiled. Certain of the statements
contained in this news release may be forward-looking statements within the
meaning of The Private Securities Litigation Reform Act of 1995. These
statements may be identified by such terms as ``expect,'' ``believe,'' ``may,''
``will,'' and ``intend'' or similar terms. Tequesta
Capital Corporation or its affiliates may have a position in the securities
mentioned herein and may make purchases or sales thereof.















onClick Link Submitting

2001-09-04 Thread Steven Leija

I'm trying to submit a form through a hyperlink, can anyone see what my
error is in my code?
 
Submit Changes
 
I'm getting an error saying that my form is null or not an object.

Have a good one, 

Steven 

 

 application/ms-tnef


Re: Action arguments

2001-09-04 Thread Grassotti, Michael

You can pass a value to your action class using the "parameter" property in
your struts-config.xml file. The DispatchAction included with struts is a
pretty good example of how to do this.
http://jakarta.apache.org/struts/api/org/apache/struts/actions/DispatchActio
n.html

-mikeg

- Original Message -
From: "David Corbin" <[EMAIL PROTECTED]>
To: "Struts User" <[EMAIL PROTECTED]>
Sent: Sunday, September 02, 2001 5:05 PM
Subject: Action arguments


> Is there anyway to specify a value in the struts-config.xml that gets pass
> to the action?  I have one action that I'd like to reuse, with a ever so
> slightly different behavior.
>
> I know I could do this by have a base action class, and a handful of
derived
> classes, but if the ONLY difference can be defined by a string constant,
I'd
> rather define it in struts-config.xml
>
> Thanks.
> David Corbin
>



Text tag issue!!!

2001-09-04 Thread Venkat Jonnalagadda

Hi,

I understand that the text field on the jsp if associated to a bean
should necessarily have setter/getters...first, is this correct...if yes, is
there a way by which i can tie a text field to a bean but do no have
setters/getters in the bean...

I want to be able to collect the field name/value pairs in
properties and use them instead of setting them in setters of the bean and
using them...

any suggestions...is this weirdness?...

--Venkat



problem with struts and EJB

2001-09-04 Thread Fletcher, Ken

I am having a bit of trouble with struts and an EJB (entity bean).  Instead
of having getters and setters for each attribute in my entity bean, I pass a
javabean that has the same attributes and the getters and setters for the
attributes.  So, for example, let's say I have an entity bean with two
attributes, firstName and lastName.  I have no getFirstName() or
getLastName() method in the entity bean.  What I do have is a getBean()
method that returns a bean (not an entity bean) with firstName and lastName.
This bean has the getters and setters in it. 

Since this bean looks similar to an ActionForm, and we hope to use
ActionForms for data validation, and I don't want to have to move data
between similar beans, I decided that my bean could extend ActionForm.  When
I do this and invoke the getBean() method, I get a CORBA MARSHAL exception -
"Unable to read value from underlying bridge: minor code: 1398079699".

The ActionForm is the problem because when I use the same bean and don't
extend ActionForm it works OK.  My guess is, that although ActionForm is
serializable, some attribute in it is not.

Any help with this would be greatly appreciated.

Ken Fletcher
Teacher Retirement System of Texas



I need some help here!!

2001-09-04 Thread Gonzalez, Rafael E


I've been using Struts1.0 successfully and I decided to try one of the
nightly builds but I have been having some problems.
I've used several of the nightly builds and I get an exception when I try to
load the web app. I tried loading the struts-example.war, even the
struts-blank.war.

I get the following error:

> 
>
> <[WebAppServletContext(7612209,rdr
> )] Error loading servlet: 'action'
> java.lang.NoSuchMethodError
> at 
> org.apache.commons.digester.Digester.parse(Digester.java:859)
> at 
> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.jav
> :1273)
> 

I followed the steps in the README.txt file but It seems that I am doing
something wrong.

Please, help

Rafael

 application/ms-tnef


Re: display error messages for errors found in an Action

2001-09-04 Thread Bill Clinton

Hi Brian,
 yes, you can do this.  If you have a message in your 
ApplicationResources file called my.test.error, you can add an error 
like this:

errors.add("myTestField", new ActionError("my.test.error"));

where the string  "myTestField" is the field that caused the error. 
 Look at the constructor for org.apache.struts.action.ActionError for 
more details.

Bill

Brian K. Buckley wrote:

>Hi,  I'm a relative struts newbie, seeking advise.
>
>I have a class MyForm and in the validate() method of MyForm I check for
>input errors and add them to the ActionErrors object which gets returned.
>
>Later in my MyAction action, I check for additional business logic type
>input errors.  If I find errors, I want to put them into to the same error
>list that the form's ActionErrors creates, so that  in my jsp
>pages can display them the same way.
>
>Is there a way to do this?
>
>-Brian
>
>
>.
>





Re: New Dawn Art.com is powered by Struts!

2001-09-04 Thread pranav

Hi,

I have not used any particular technique to make my site faster. 
Usually, once the pages are compiled, JSP/Servlet sites can deliver at a decent 
speed.

I do run on a dedicated Resin2.0 server which, I believe, is faster than many 
other servlet/JSP engines. In short DB connection pooling, using JSP/Servlets, 
and running on Resin2.0 are doing the job for me. My site also fetches only a 
small amount of data at a time, which might not be ideal for all projects.

Hope this info helps...

regards
Pranav


---
Hello, my name is Spencer Smith.  I am working on a very large project using
J2EE, EJBs and Struts as the view.  It is a multi-tier environment.  So far,
the project is running very smoothly with one notable exception.   The site
is very slow.

I couldn't help but notice how fast your site newdawnart.com is!  It is a
very impressive site.  Very clean.

I would really appreciate it if you could give me some insight on any hints
to make our site faster.  Ie:  do you precompile your jsps?  If so, does
that help?  Are you using Tomcat or some other server which might be faster?

Any help will be appreciated!

:) Spencer




On Tue, 04 Sep 2001 10:29:48 -0600 "Ryan Cornia" <[EMAIL PROTECTED]> 
wrote:
>I would be interested in how you are doing the "Next"/"Previous"  scrolls 
through the videos.
Do you load all video records at once and store them in the session, or are you 
somehow only
retrieving the records the user is looking at?
>
>Neat site!
>
>Ryan
>
>
 [EMAIL PROTECTED] 09/04/01 10:00AM >>>
>Hi struts-users,
>
>
>
>I just completed the development of a website, http://www.newdawnart.com, 
>
>completely based on Struts1.0b version.
>
>
>
>I would be happy to help  (and share code) with people who might have 
questions 
>
>regarding the use of struts  in the implementation of this site.
>
>
>
>Working with struts really helped structure the entire application and provide 
>
>very valuable web application services. I would highly recommend using struts 
>
>to everyone!!
>
>
>
>I wonder if my site could also be listed in the Struts Resources section with 
>
>the other "Powered by Struts" sites.
>
>
>
>
>
>Greetings,
>
>Pranav 
>
>-- 
>Get your firstname@lastname email for FREE at http://Nameplanet.com/?su
>
>


-- 
Get your firstname@lastname email for FREE at http://Nameplanet.com/?su



Re: New Dawn Art.com is powered by Struts!

2001-09-04 Thread pranav

Hi,

I have used two db utility classes from Ted Husted's fruit-glaze example 
(QueryFormBean and ScrollingFormBean), that were available some time ago on the 
www.husted.com site. ScrollingFormBean facilitates scrolling lists in db.

If you cannot find the fruit-glaze example, I would be happy to send you the 
zip file. Just let me know...

regards
Pranav



On Tue, 04 Sep 2001 10:29:48 -0600 "Ryan Cornia" <[EMAIL PROTECTED]> 
wrote:
>I would be interested in how you are doing the "Next"/"Previous"  scrolls 
through the videos.
Do you load all video records at once and store them in the session, or are you 
somehow only
retrieving the records the user is looking at?
>
>Neat site!
>
>Ryan
>
>
 [EMAIL PROTECTED] 09/04/01 10:00AM >>>
>Hi struts-users,
>
>
>
>I just completed the development of a website, http://www.newdawnart.com, 
>
>completely based on Struts1.0b version.
>
>
>
>I would be happy to help  (and share code) with people who might have 
questions 
>
>regarding the use of struts  in the implementation of this site.
>
>
>
>Working with struts really helped structure the entire application and provide 
>
>very valuable web application services. I would highly recommend using struts 
>
>to everyone!!
>
>
>
>I wonder if my site could also be listed in the Struts Resources section with 
>
>the other "Powered by Struts" sites.
>
>
>
>
>
>Greetings,
>
>Pranav 
>
>-- 
>Get your firstname@lastname email for FREE at http://Nameplanet.com/?su
>
>


-- 
Get your firstname@lastname email for FREE at http://Nameplanet.com/?su



what are different scope(s) available to define for a bean in struts-config.xml

2001-09-04 Thread Venkat Jonnalagadda

what are different scope(s) available to define for a bean in
struts-config.xml and how do it define themany examples...please...

--Venkat.



"indexed" option does not work with html:checkbox

2001-09-04 Thread Campesato, Oswald

The following tag:



generates the following error message:

indexed is not a valid attribute for tag html:checkbox

I've also tried "index" instead of "indexed" and "true" instead of "yes".
Other options (onchange, onclick, disabled) work correctly with this tag,
so why doesn't "indexed" work?  Suggestions welcome

Cordially,

Oswald





RE: New Dawn Art.com is powered by Struts!

2001-09-04 Thread Kurt Olsen

Nice Job!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 6:01 AM
To: [EMAIL PROTECTED]
Subject: New Dawn Art.com is powered by Struts!


Hi struts-users,  I just completed the development of a website,
http://www.newdawnart.com,  completely based on Struts1.0b version.  I would
be happy to help  (and share code) with people who might have questions
regarding the use of struts  in the implementation of this site.  Working
with struts really helped structure the entire application and provide  very
valuable web application services. I would highly recommend using struts  to
everyone!!  I wonder if my site could also be listed in the Struts Resources
section with  the other "Powered by Struts" sites.   Greetings, Pranav

--
Get your firstname@lastname email for FREE at http://Nameplanet.com/?su




RE: Websphere deployment problem

2001-09-04 Thread Esterkin, Alex

This looks like the well known form tag problem in WebSphere 3.5.*.
WebSphere 3.5.* is not fully compliant with the Java standards.  

Here is the fix.  Open Java file org.apache.struts.taglib.html.FormTag, go
to method doEndTag() and replace the following two lines:

pageContext.removeAttribute(Constants.BEAN_KEY,
PageContext.REQUEST_SCOPE);
pageContext.removeAttribute(Constants.FORM_KEY,
PageContext.REQUEST_SCOPE);

with the following two lines:

pageContext.removeAttribute(Constants.BEAN_KEY);
pageContext.removeAttribute(Constants.FORM_KEY);

Hope this helps.

Best regards,

   Alex Esterkin 
   Fidelity Investments FPCMS S&MDS T&A / Z2B
Tel.  :  617-563-5997
E-mail:  [EMAIL PROTECTED]

=



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:49 PM
To: [EMAIL PROTECTED]
Subject: Websphere deployment problem





Hi,

when i deploy struts application in websphere 3.5.2 and try to access any
JSP
file i get the following error.
Can anyone let me know how to resolve it.

TIA
rafee

[01.08.30 16:57:04:735 GMT+05:30] 32e0194d WebGroup  A SRVE0091I:
[Servlet
LOG]: "jsp11: init"
[01.08.30 16:57:04:846 GMT+05:30] 32e0194d ServletInstan A SRVE0130I:
Servlet
available for service: "jsp11"
[01.08.30 16:58:12:142 GMT+05:30] a16c9945 WebGroup  X [Servlet
Error]-[{0}]: {1}: {2}
 "jsp11"
 "org/apache/struts/action/ActionForm"

com.ibm.servlet.engine.webapp.WebAppErrorReport:
org/apache/struts/action/ActionForm
 at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:97)

 at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:381)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:460)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:580)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:35
3)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:729)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:655)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:338)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:175)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:93)

 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:77)

 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)

 at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:155)
 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:300)

 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQ
EventListenerImp.java:230)

 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventL
istenerImp.java:104)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQE
ventSource.java:212)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.notifyService(SQWrapperEventSource.java:347)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.run(SQWrapperEventSource.java:216)

 at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run
(OutOfProcThread.java:248)

 at java.lang.Thread.run(Thread.java:481)

[01.08.30 16:58:12:483 GMT+05:30] a16c9945 ServletInstan X Uncaught
service()
exception thrown by servlet {0}: {1}
 "file"
 javax.servlet.ServletException
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:598)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)

 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:35
3)
 at

Re: Employeelist example in VAJ 3.5.3

2001-09-04 Thread Daniel Jimenez

I'm not too familiar with Kyle Browns Employeelist application but I have gotten the 
"missing message for key..." with VAJ 3.5.3.  From what I've discovered, every time 
this error occurs it has to do with forgetting to update or add my resources for the 
specific application.  I don't work directly inside of VAJ, instead I have a 
development directory in which all my "presentation" work is done.  Because of this, 
every time I make an update or addiction to the *. properties file its not making that 
update to the VAJ resource file.  If I don't update my VAJ resources after I've made a 
change to my *.properties file, when I start the WTE it will not pick up my changes 
and throw an error ""missing message for key...".

If someone does want a central location for development, VAJ puts it's resources in a 
directory structure similar to:
C:\Program Files\IBM\VisualAge for Java\ide\project_resources

Modifying your .properites file under the project_resources directory will reflect the 
change when you startup your wte.


I hope this is what you looking for. 
Dan Jimenez


>>> [EMAIL PROTECTED] 9/3/01 7:58:49 AM >>>
Sean,

I experienced this same problem (in VAJ 3.5.4).  I solved it the same way 
anyone else have a better solution? (Better explanation of what's wrong?)

Stephen :-{)




RE: Help!!!

2001-09-04 Thread Venkat Jonnalagadda

Thanks simon, robin

for all the help!!!

Venkat.

-Original Message-
From: Simon Sadedin [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 8:19 PM
To: [EMAIL PROTECTED]
Subject: RE: Help!!!


Hi Venkat,

I would encourage you to consider (if you haven't already) keeping your
actions in separate classes and possibly using inheritance or other
means to extract the common portions.  This is more in line with the
design intent of struts, and makes cleaner, more maintainable code.

For example you can have your EditRegistrationAction and
SaveRegistrationAction extend a common RegistrationAction.

Cheers & good luck!

Simon Sadedin.

> -Original Message-
> From: Venkat Jonnalagadda [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 31, 2001 5:34 PM
> To: Struts User (E-mail)
> Subject: Help!!!
> 
> 
> Hi,
>   i am new to struts and i am going through the struts-example
> application. in the struts-config.xml under the action 
> mappings section, for
> every action there is a action class, for same domain (lets say for
> registration, there is a EditRegistrationAction and 
> SaveRegistrationAction
> and same with subscription too). is there a way to couple the 
> edit/save and
> may be delete and someother actions into the same action 
> class instead of
> having one for every operation...
> 
> Any ideas anybody?
> 
> -Venkat
> 



Re: ActionMapping parameter

2001-09-04 Thread David Corbin

I'm not saying it's a bad idea, but be very careful what road you start
down.  If you're not careful, you end up "programming" in xml, which can
have its down sides


- Original Message -
From: "Ernest Jones" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, September 04, 2001 11:50 AM
Subject: ActionMapping parameter


> I wanted some feedback on a feature request before I submit it.
>
> In the ActionMapping api you can only get one nameless config parameter
> (public String getParameter()).  I would find it useful if I could specify
> any number of named parameters (public String getParameter(String key)).
> The xml in the struts-config file could look like:
>
> 
>
>
> ...
>   
>  
>
> To maintain backwards compatability (if you really wanted to) you could
keep
> the old parameter attribute and function.
>
> Thoughts? Comments?
>
>
>
>




Re: tomcat's jasper compiler and jspc

2001-09-04 Thread dhay



Matt,

Yes, you should be able to compile them too.  That is what I do.  Are you using
Ant to build stuff?  Am attaching my build.xml and you should be able to see
what classpath stuff I use...targets jspc and compileJSPs.  The graniteClient is
our own stuff - I think you should only need servlet.jar, jasper.jar, struts.jar
and any other dependancies.

Cheers,

Dave

PS  Do you get any output from your jspc step?  I had great trouble figuring out
what I needed as I couldn't get any output!

(See attached file: build.xml)



Matt Raible <[EMAIL PROTECTED]> on 09/04/2001 06:44:04
AM

Please respond to [EMAIL PROTECTED]; Please
  respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  tomcat's jasper compiler and jspc



I am using jspc to pre-compile my struts-based jsps.  I can pre-compile them
just fine and they get placed in the appropriate directories.  What I'm
wondering is if I can "compile" them (convert them to *.class files) as well -
so my appserver doesn't have to do this at runtime?

I tried using javac with jasper.jar and tomcat_util.jar (from tc 3.3.1b1) in my
classpath, but all kinds of errors occur.  I know my jsp's are fine because
they compile and run great when I run my app from the browser.

Thanks,

Matt

__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com










	
	
	
	
	
	
	
	
  
 
	
	
		
		
	

 
	
	
		
		
		
		
  
  
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
	

 
  
  
		
		
   		
		
  
		
	   	
		
		
		
		   
		
		
		
		   
		
		
		
		   
		
		
		
		   
		
	


   
   
		
		
			




			
		
  

	
	
		
			







			
			
			
			
			
			
			
			
		
	
  
	
	
		
			


			


			
		
	

	
	
		
			  


	
	
	
	
		
		
	
	



	

   
   
		
		   
		
   
   


  


  







display error messages for errors found in an Action

2001-09-04 Thread Brian K. Buckley

Hi,  I'm a relative struts newbie, seeking advise.

I have a class MyForm and in the validate() method of MyForm I check for
input errors and add them to the ActionErrors object which gets returned.

Later in my MyAction action, I check for additional business logic type
input errors.  If I find errors, I want to put them into to the same error
list that the form's ActionErrors creates, so that  in my jsp
pages can display them the same way.

Is there a way to do this?

-Brian




Re: New Dawn Art.com is powered by Struts!

2001-09-04 Thread Ryan Cornia

I would be interested in how you are doing the "Next"/"Previous"  scrolls through the 
videos. Do you load all video records at once and store them in the session, or are 
you somehow only retrieving the records the user is looking at?

Neat site!

Ryan


>>> [EMAIL PROTECTED] 09/04/01 10:00AM >>>
Hi struts-users,



I just completed the development of a website, http://www.newdawnart.com, 

completely based on Struts1.0b version.



I would be happy to help  (and share code) with people who might have questions 

regarding the use of struts  in the implementation of this site.



Working with struts really helped structure the entire application and provide 

very valuable web application services. I would highly recommend using struts 

to everyone!!



I wonder if my site could also be listed in the Struts Resources section with 

the other "Powered by Struts" sites.





Greetings,

Pranav 

-- 
Get your firstname@lastname email for FREE at http://Nameplanet.com/?su




Re: doubly nested data structures and iterate

2001-09-04 Thread Troy Hart

Has anyone ever used a collection within a collection???

On Monday 03 September 2001 10:59 am, Troy wrote:
> Is there a convenient way to work with the iterate tag, using the "indexed"
> attribute, and data structures that are doubly nested?
>
> I have a search form with a dynamic set of search attributes, and each
> search attribute optionally has a dynamic set of conditions.
>
> I have used scriptlets to generate request parameter names in the following
> form: "searchAttr[i].condition[j].someProperty". And these parameters have
> worked with standard html tags (they've successfully updated the correct
> property when the from has been submitted). However, the struts taglibs
> don't seem to want to work. When I try to use these generated names, I get
> exceptions (like "Invalid declaration" exceptions, where the array
> subscripts on searchAttr were complained about).
>
> Has any else worked with the iterate tag using the "indexed" attribute to
> accomplish something similar?
>
> I would envision being able to do something like the following:
>
>  property="searchAttributes">  name="searchAttr" properties="conditions">  name="condition" property="someProperty" /> 
> 
>
> I would then expect the  tag to generate a parameter name as my
> scriptlet does...
>
> Any thoughts on this would be appreciated!
>
> Thanks,
>
> Troy
>
>
> __
> Your favorite stores, helpful shopping tools and great gift ideas.
> Experience the convenience of buying online with Shop@Netscape!
> http://shopnow.netscape.com/
>
> Get your own FREE, personal Netscape Mail account today at
> http://webmail.netscape.com/



Compiliation issues

2001-09-04 Thread McClung, Brian

I am running the latest version of Resin.  I am able to precompile a page
using the /resin/bin/httpd.sh -e  command but the page will not autocompile.
Has anyone encountered this problem before?  I am getting the following
Servlet Exception:

java.lang.NoSuchMethodError
at com.caucho.jsp.Taglib.fillTag(Taglib.java:406)
at com.caucho.jsp.Taglib.fillTagLibraryInfo(Taglib.java:336)
at com.caucho.jsp.Taglib.(Taglib.java:164)
at com.caucho.jsp.JspParser.parseTaglibDirective(JspParser.java:975)
at com.caucho.jsp.JspParser.parseDirective(JspParser.java:685)
at com.caucho.jsp.JspParser.parseScriptlet(JspParser.java:554)
at com.caucho.jsp.JspParser.parseNode(JspParser.java:309)
at com.caucho.jsp.JspParser.parseJsp(JspParser.java:289)
at com.caucho.jsp.JspParser.parse(JspParser.java:187)
at com.caucho.jsp.JspParser.parse(JspParser.java:135)
at com.caucho.jsp.JspManager.createPage(JspManager.java:122)
at com.caucho.jsp.PageManager.getPage(PageManager.java:332)
at com.caucho.jsp.PageManager.getPage(PageManager.java:195)
at com.caucho.jsp.QServlet.getPage(QServlet.java:215)
at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:126)
at com.caucho.server.http.Invocation.service(Invocation.java:272)
at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:334)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:266
)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)

Thanks for any help

Brian McClung
Belo Interactive
214-977-4083




Re: rtexprvalue - what is it?

2001-09-04 Thread Troy Hart

That is true or false based on whether or not the attribute can accept a run 
time expression. That is, in the jsp can you do the following or not:



On Monday 03 September 2001 05:01 pm, you wrote:
> In the .tld files, every attribute looks like this. But I can't find
> anything anywhere about the third one:  rtexprvalue, and when to set it
> true and false.
>
> 
> value
> false
> true
> 
>
> Also, where did I miss it, if it is in the documentation somewhere?
> --
> Pete Carapetyan
> http://datafundamentals.com
> Java Development Services
>
> Open standards technology for commercial profitability



Re: ActionForm question ?

2001-09-04 Thread Troy Hart

You'd have the same problems if you used request scope. What you need to do 
is reset your form after the acton has successfully processed it.

Troy

On Tuesday 04 September 2001 04:02 am, you wrote:
> As much as I know, if you redisplay your form, and you use "session" for
> your scope, it will show you the values. If you need a initialized form,
> use "request" instead.
>
> marcel
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 11:53 AM
> To: [EMAIL PROTECTED]
> Subject: ActionForm question ?
>
>
> Hello,
>
> I've got a functionnal problem with ActionForm:
>
> I fill a form and submit then when I re-display this
> form, my old value are display on the form.
>
> How can I initialize the ActionForm after sumit ?
>
> Where the ActionForm is stocked (session, request, ...
> ) ?
>
> Thanx.
>
> ___
> Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr !
> Yahoo! Courrier : http://fr.mail.yahoo.com



New Dawn Art.com is powered by Struts!

2001-09-04 Thread pranav

Hi struts-users,

I just completed the development of a website, http://www.newdawnart.com, 
completely based on Struts1.0b version.

I would be happy to help  (and share code) with people who might have questions 
regarding the use of struts  in the implementation of this site.

Working with struts really helped structure the entire application and provide 
very valuable web application services. I would highly recommend using struts 
to everyone!!

I wonder if my site could also be listed in the Struts Resources section with 
the other "Powered by Struts" sites.


Greetings,
Pranav 

-- 
Get your firstname@lastname email for FREE at http://Nameplanet.com/?su



ActionMapping parameter

2001-09-04 Thread Ernest Jones

I wanted some feedback on a feature request before I submit it.

In the ActionMapping api you can only get one nameless config parameter
(public String getParameter()).  I would find it useful if I could specify
any number of named parameters (public String getParameter(String key)).
The xml in the struts-config file could look like:


   
   
...
  
 

To maintain backwards compatability (if you really wanted to) you could keep
the old parameter attribute and function.

Thoughts? Comments?





Re: dynamic template tag parameter values

2001-09-04 Thread Cedric Dumoulin



  Struts 1.1 is available from
http://jakarta.apache.org/builds/jakarta-struts/nightly/ .
  Pick up the most recent files, usually at bottom of list.
  Check if Struts1.1 example work. If not, check if you haven't multiple
instances of jaxp in your classpath. Especially, check tomcat/lib.
  There is no known problems running Tiles and Struts1.0 or 1.1, so it certainly
comes from your configuration.

Cedric

David Boardman wrote:

> I have only run the struts 1.0 example, and have not yet downloaded struts
> 1.1(I could not find it at the Struts site). I downloaded the JAXP reference
> implementation and placed jaxp.jar, crimson.jar and xalan.jar in my
> classpath.  After restarting Tomcat I got the same error message as before.
>
> Thanks,
>
> Dave
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> ]On Behalf Of Cedric Dumoulin
> Sent: Monday, September 03, 2001 3:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: dynamic template tag parameter values
>
>   The tiles tutorial have been moved into the tiles-doc.war file, under
> 'tutorial'.
>
>   I think the error is issue because the servlet has failed to start. Are
> you
> sure you use a jaxp1.1 compliant parser ? Does Struts1.1 example runs with
> your
> configuration ?
>
>   Cedric
>
> David Boardman wrote:
>
> > A couple of questions about Tiles,
> >
> > When I downloaded the binary distribution I did not see the
> > tiles-tutorial.war file and was therefore missing some of the files
> > necessary to go through your tutorial.  Am I missing something in the
> > distribution, or was the tutorial removed.
> >
> > Secondly, when I attempt to run both the tiles-docs application and the
> > tiles-channel application I got an exception with the following message:
> >
> > "Tag Insert : Can't get component definition 'mainLayout'. Check if this
> > name exist in component definitions."
> >
> > I simply placed the war files in the webapps directory of my tomcat server
> > to deploy them.
> >
> > thanks for the help.
> >
> > Dave
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > ]On Behalf Of Cedric Dumoulin
> > Sent: Friday, August 31, 2001 5:01 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: dynamic template tag parameter values
> >
> >   You can do something like :
> > 
> >   But you certainly have to put some processing before to check if the
> > clientName is valid.
> >
> >   Also, you can check Tiles contribution for others ideas. For example,
> you
> > can
> > adapt the channels example to fit your client names.
> >
> > Cedric
> >
> > Tiles sites :
> >   http://www.lifl.fr/~dumoulin/tiles/
> >   (mirror) : http://www.geocities.com/cedricdumoulin/tiles/
> >
> > David Boardman wrote:
> >
> > > Our site will be accessed by users via other sites on the web.  For
> > > instance, our site might be accessed from a link on Cisco's site.  When
> > this
> > > occurs we want the GUI to be different than the default GUI (same
> general
> > > layout, but different graphics etc.)  To do this I was hoping to include
> a
> > > client parameter in the query string
> > > (http://oursite.com/login.jsp?client=Xxx) and then use that to
> dynamically
> > > set the value of the content parameter within a  tag to
> load
> > > the appropriate jsp.
> > >
> > > I believe I can retrieve the query string parameter using
>  > > id="clientName" name="client">.  However, I am not sure how to
> dynamically
> > > include this value in the content parameter of the  tag.
> > >
> > > For example, my default template currently looks like this:
> > >
> > > **
> > > <%@ page language="java" %>
> > > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> > >
> > > 
> > >  > > key="candidate.detail.title"/>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > **
> > >
> > > for Cisco I would like it to look like:
> > > **
> > > <%@ page language="java" %>
> > > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> > >
> > > 
> > >  > > key="candidate.detail.title"/>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > **
> > >
> > > and for client=Xxx I would like it to look like:
> > > **
> > > <%@ page language="java" %>
> > > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> > >
> > > 
> > >  > > key="candidate.detail.title"/>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > **
> > >
> > > Any help would be greatly apprecitated.
> > >
> > > Thanks,
> > >
> > > David Boardman
> > > Integral7




Re: Submit and html:link tag

2001-09-04 Thread Ted Husted

The Struts HTML tags "just" lookup things from the application context
(mappings, messages) or from an ActionForm bean, and then render
standard HTML.

So the first question would be "is it possible to make a submit on a 
tag without using Javascript".

The html:link tag can only do what the HTML  tag does (because in the
end, that's what it is). 


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


> Thierry Lempereur wrote:
> 
> Hello
> 
> Is it possible to make a submit on a html:link tag whitout Javascript
> only using struts tag ?
> 
> Thank You for answers.
> 
> Thierry



Re: Confused about everything ...

2001-09-04 Thread Ted Husted

The one other thing to check is for something like this in your web.xml
where the Struts servlet is loaded


  config
  /WEB-INF/struts-config.xml


If your struts-config.xml is modelled after most of the examples, it
probably has this in it



if so, try /admin/reload.do and see if you get an OK on the screen. Then
try the other URI again.

You might also try (this part of) the application under Tomcat or Resin,
to be sure it is not a WegLogic deployment issue.

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


Antonio Weber wrote:
> 
> Hi !!
> 
> I get an ServletException on my bea with this message
> 
> Cannot retrieve mapping for action /LookupAction
> Must I add in the web-xml the class as an servlet ??
> I don't think so but no I'm so confused ...
> 
> In my struts-config.xml is this entry:
> 
>  name="LookupActionForm"  input="/lookup/lookups.jsp">
> 
> 
> in my web.xml I have for the action
> a *.do mapping...
> the form-tag looks like this:
> 
>  
> where is my fault ? whats going wrong ?
> Please help me 



RE: logic tag and empty string value ("") problem

2001-09-04 Thread Matt Raible

In SP3, if you turn the jasper compiler on, yes it is fixed.  If you disable
it, you get the same behavior as in SP2 (same jsp compiler).

I've put together a how-to and zip for porting the "struts-example" to SP3 with
the jasper compiler enabled.  I'll be posting in the next couple of days.

Also, just a warning, but the ability to pre-compile jsp's in SP3 is buggy -
I've written a workaround and can answer any questions on this too.

Matt


--- "Paradis,_André" <[EMAIL PROTECTED]> wrote:
> Thanks matt,
> 
> Is it fixed in SP3 ?
> 
> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]]
> Sent: September 4, 2001 10:53 AM
> To: [EMAIL PROTECTED]
> Subject: Re: logic tag and empty string value ("") problem
> 
> 
> The workaround is to use a scriplet:
> 
> ">
> 
> kinda silly - but it works!
> 
> 
> --- "Paradis,_André" <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > the following declaration does not compile on iPlanet 6.0 SP2:
> > 
> > 
> > ...
> > 
> > 
> > here's a snippet of the generated java file:
> > 
> >
> ((org.apache.struts.taglib.logic.EqualTag)_JSP__0).setName("sqc_submenu_
> > currentitem");
> > ((org.apache.struts.taglib.logic.EqualTag)_JSP__0).setValue("" >
> > http://im.yahoo.com


__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



RE: logic tag and empty string value ("") problem

2001-09-04 Thread "Paradis, André"

Thanks matt,

Is it fixed in SP3 ?

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: September 4, 2001 10:53 AM
To: [EMAIL PROTECTED]
Subject: Re: logic tag and empty string value ("") problem


The workaround is to use a scriplet:

">

kinda silly - but it works!


--- "Paradis,_André" <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> the following declaration does not compile on iPlanet 6.0 SP2:
> 
> 
>   ...
> 
> 
> here's a snippet of the generated java file:
> 
>
((org.apache.struts.taglib.logic.EqualTag)_JSP__0).setName("sqc_submenu_
> currentitem");
> ((org.apache.struts.taglib.logic.EqualTag)_JSP__0).setValue("" >
> http://im.yahoo.com



Re: logic tag and empty string value ("") problem

2001-09-04 Thread Matt Raible

The workaround is to use a scriplet:

">

kinda silly - but it works!


--- "Paradis,_André" <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> the following declaration does not compile on iPlanet 6.0 SP2:
> 
> 
>   ...
> 
> 
> here's a snippet of the generated java file:
> 
> ((org.apache.struts.taglib.logic.EqualTag)_JSP__0).setName("sqc_submenu_
> currentitem");
> ((org.apache.struts.taglib.logic.EqualTag)_JSP__0).setValue("" >
> http://im.yahoo.com



RE: dynamic template tag parameter values

2001-09-04 Thread David Boardman

I have only run the struts 1.0 example, and have not yet downloaded struts
1.1(I could not find it at the Struts site). I downloaded the JAXP reference
implementation and placed jaxp.jar, crimson.jar and xalan.jar in my
classpath.  After restarting Tomcat I got the same error message as before.


Thanks,

Dave

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
]On Behalf Of Cedric Dumoulin
Sent: Monday, September 03, 2001 3:33 AM
To: [EMAIL PROTECTED]
Subject: Re: dynamic template tag parameter values



  The tiles tutorial have been moved into the tiles-doc.war file, under
'tutorial'.

  I think the error is issue because the servlet has failed to start. Are
you
sure you use a jaxp1.1 compliant parser ? Does Struts1.1 example runs with
your
configuration ?

  Cedric

David Boardman wrote:

> A couple of questions about Tiles,
>
> When I downloaded the binary distribution I did not see the
> tiles-tutorial.war file and was therefore missing some of the files
> necessary to go through your tutorial.  Am I missing something in the
> distribution, or was the tutorial removed.
>
> Secondly, when I attempt to run both the tiles-docs application and the
> tiles-channel application I got an exception with the following message:
>
> "Tag Insert : Can't get component definition 'mainLayout'. Check if this
> name exist in component definitions."
>
> I simply placed the war files in the webapps directory of my tomcat server
> to deploy them.
>
> thanks for the help.
>
> Dave
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> ]On Behalf Of Cedric Dumoulin
> Sent: Friday, August 31, 2001 5:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: dynamic template tag parameter values
>
>   You can do something like :
> 
>   But you certainly have to put some processing before to check if the
> clientName is valid.
>
>   Also, you can check Tiles contribution for others ideas. For example,
you
> can
> adapt the channels example to fit your client names.
>
> Cedric
>
> Tiles sites :
>   http://www.lifl.fr/~dumoulin/tiles/
>   (mirror) : http://www.geocities.com/cedricdumoulin/tiles/
>
> David Boardman wrote:
>
> > Our site will be accessed by users via other sites on the web.  For
> > instance, our site might be accessed from a link on Cisco's site.  When
> this
> > occurs we want the GUI to be different than the default GUI (same
general
> > layout, but different graphics etc.)  To do this I was hoping to include
a
> > client parameter in the query string
> > (http://oursite.com/login.jsp?client=Xxx) and then use that to
dynamically
> > set the value of the content parameter within a  tag to
load
> > the appropriate jsp.
> >
> > I believe I can retrieve the query string parameter using
 > id="clientName" name="client">.  However, I am not sure how to
dynamically
> > include this value in the content parameter of the  tag.
> >
> > For example, my default template currently looks like this:
> >
> > **
> > <%@ page language="java" %>
> > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> >
> > 
> >  > key="candidate.detail.title"/>
> > 
> > 
> > 
> > 
> > 
> > **
> >
> > for Cisco I would like it to look like:
> > **
> > <%@ page language="java" %>
> > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> >
> > 
> >  > key="candidate.detail.title"/>
> > 
> > 
> > 
> > 
> > 
> > **
> >
> > and for client=Xxx I would like it to look like:
> > **
> > <%@ page language="java" %>
> > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> >
> > 
> >  > key="candidate.detail.title"/>
> > 
> > 
> > 
> > 
> > 
> > **
> >
> > Any help would be greatly apprecitated.
> >
> > Thanks,
> >
> > David Boardman
> > Integral7





logic tag and empty string value ("") problem

2001-09-04 Thread "Paradis, André"

Hi,

the following declaration does not compile on iPlanet 6.0 SP2:


...


here's a snippet of the generated java file:

((org.apache.struts.taglib.logic.EqualTag)_JSP__0).setName("sqc_submenu_
currentitem");
((org.apache.struts.taglib.logic.EqualTag)_JSP__0).setValue("" >

test

2001-09-04 Thread Sujata Katikala




begin:vcard 
n:;
tel;work:727-561-9500 x268
x-mozilla-html:FALSE
url:www.opennetwork.com
version:2.1
email;internet:[EMAIL PROTECTED]
title:Systems Engineer
adr;quoted-printable:;;13577 Feather Sound Dr =0D=0A;Clearwater;FL;33762;
note;quoted-printable:=0D=0A
fn:Sujata Katikala
end:vcard



TEST

2001-09-04 Thread Jake Schleich
Title: TEST










Re: iterating woes

2001-09-04 Thread SUPRIYA MISRA

Are you sure you have an entry for your form bean is struts-config.xml


>From: Aaron O'Hara <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: iterating woes
>Date: Sun, 2 Sep 2001 19:43:20 -0700
>
>All,
>
>I'm pulling my hair out try to figure out iterating.  The code below does
>not iterate through an ArrayList like I'd like it to.
>
>class="com.razorfront.corporate.global.General"/>
>class="com.razorfront.corporate.global.Service"/>
>...
>...
>   
> 
>   
>
>In the application scope bean referenced as "general", I have a populated
>ArrayList of "service" objects.   The "general" bean has a private 
>ArrayList
>with a getter method called "getServices".  I verified in the page that the
>getServices method returns an ArrayList with a size of 11 and I can write a
>scriplet to iterate through the list.
>
>If anybody could point out to me what I'm doing wrong, it would be greatly
>appreciated.
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Re: Struts handling of checkbox parameter values

2001-09-04 Thread SUPRIYA MISRA

For check boxes the value has to be boolean. So you need to use multibox as 
suggested below which works great.


>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Struts handling of checkbox parameter values
>Date: Sat, 1 Sep 2001 12:16:41 -0700
>
>If you make your form bean property a String array, Struts will populate it
>from the request for you.
>
>You might also want to take a look at the  tag, which comes
>in handy for this type of thing.
>
>--
>Martin Cooper
>
>
>- Original Message -
>From: "Peter Pilgrim" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, August 31, 2001 5:02 AM
>Subject: Struts handling of checkbox parameter values
>
>
> > How does do perform "String [] HttpServletRequest.getParameterValues()"
> > with a Struts Action and Action Form?
> >
> > If you a html form with a group of html checkbox elements like so
> >
> >  apple
> >  orange
> >  pear
> >
> > You would get an String array with raw Servlet request parameter.
> > Which looks like this "orange|apple| pear" assume all item were 
>selected.
> >
> > Tia
> > --
> > Peter Pilgrim  |  |++44 (0)207-545-9923
> >  \  \  ___   /  / ... .
> > -     ( * )  ---   --
> > _Cafe_Savannah,_San Antonio,Ibiza__
> >
> >
> >
> > --
> >
> > This e-mail may contain confidential and/or privileged information. If 
>you
>are not the intended recipient (or have received this e-mail in error)
>please notify the sender immediately and destroy this e-mail. Any
>unauthorized copying, disclosure or distribution of the material in this
>e-mail is strictly forbidden.
> >
> >
>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Submit and html:link tag

2001-09-04 Thread Thierry Lempereur



Hello
 
Is it possible to make a submit on a html:link tag whitout 
Javascript only using struts tag ?
 
Thank You for answers.
 
Thierry


Confused about everything ...

2001-09-04 Thread Antonio Weber

Hi !!

I get an ServletException on my bea with this message 

Cannot retrieve mapping for action /LookupAction
Must I add in the web-xml the class as an servlet ??
I don't think so but no I'm so confused ...

In my struts-config.xml is this entry:


   

in my web.xml I have for the action
a *.do mapping...
the form-tag looks like this:




RE: logic:equal tag with more than one value?

2001-09-04 Thread Dudley [EMAIL PROTECTED]

yes, u just nest your logic tags, this is equivalent to AND


do something



this is equivalent to OR, seperate single logic tags each testing for some
value/condition


do something



do something



-Original Message-
From: Marcel Andres [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 2:46 PM
To: struts-user
Subject: logic:equal tag with more than one value?


Hello, 

I could not find information on the following topic:

I would like to use the logic:equal tag, but instead of using just one value
to compare, I would like to use several values. 
Is this possible without the if-then-else-tag or switch-tag from Niall
Pemberton? Is there an other possibility to do this compare?

Thanks, Marcel


**
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.mimesweeper.com
**



logic:equal tag with more than one value?

2001-09-04 Thread Marcel Andres

Hello, 

I could not find information on the following topic:

I would like to use the logic:equal tag, but instead of using just one value to 
compare, I would like to use several values. 
Is this possible without the if-then-else-tag or switch-tag from Niall Pemberton? Is 
there an other possibility to do this compare?

Thanks, Marcel



Re: One ActionForm One Action for Multiple different JSP

2001-09-04 Thread Ted Husted

On each request, Struts will call reset() and try to repopulate the bean
from the current request. The default reset() does nothing.

You need to be sure that your reset() method does not clear all the
fields when you are using it to collect properties this way. One
strategy is to set a flag, like "populated", on the first page, and then
use that to decide whether to actually reset the properties or not. 

One reason Struts need to call reset() is due to the way HTML/HTTP
handles things like checkboxes, which may be omitted from a request if
they are unset. The reset() gives you a chance to handle these properly,
but then confounds other things, like wizard forms ;-( 

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


Xavier Brunel wrote:
> 
> hi all,
> 
> I have a software design problem with Struts.
> 
> I have to deal with an application where you fill a global form across
> several jsp's :
> I have to fill some fields in the first JSP, then press next, fill other
> fields, press next(or back), fill other fields, ... In each JSP, i can
> submit the form.
> 
> I decide to Build one big ActionForm, containing all the possible fields of
> all JSPs, and one big Action class where you find all the action possible on
> these JSPs.
> I then modify the struts-config.xml file and make several  tags,
> mapping this same ActionForm and this same Action but forwarding to
> different JSP in order to deal with the navigation.
> 
> My problem is that when I move from one JSP to another through the "next" or
> "back" buttons or submit the form in the current page, I lost the previous
> containt of my ActionForm. It seems that I get a new instance of my
> ActionForm as soon as i navigate in my application.
> 
> I think it's a software design problem, not an implementation one though it
> is working pretty well elsewhere.
> Has anybody an idea of the way to solve this,
> or an explanation on how to organize a Struts application to deal with
> multiple JSP for one ActionForm and one Action ???
> 
> Xavier



RE: CDATA with Digester

2001-09-04 Thread Rey Francois

Not sure if this is the reason, but the XML you wrote below is actually
going to be parsed as two elements: one text part, then one CDATA section.
Both of them make up the body of your tag. Perhaps the digester expects only
one element inside the tag...

Try this instead:





Fr.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 04 September 2001 12:22
To: [EMAIL PROTECTED]
Subject: CDATA with Digester


Hello List,

Is it normal to get an exception when one tries to parse CDATA tags  with
Digester ? (maybe related to Sax)
Like in :
..

some text 


Thanks for any hint,

.B


The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorised. If you are not
an intended recipient, you must not read, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com
***




RE: Instalation of Struts on TomCat with Apache

2001-09-04 Thread Maxime Saby


tanx you help me a lot ...

-Original Message-
From: Wagner Correa Ramos [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 03, 2001 4:35 PM
To: [EMAIL PROTECTED]
Subject: Re: Instalation of Struts on TomCat with Apache


Luiz,

I had this problem too and the solution is...

In the http.conf we need the line (or similar depending of your o.s.)
include C:\jakarta-tomcat-3.2.1\conf\mod_jk.conf-auto

Insert them (after) the line:

JkMount /*.do ajp12

And modify too the line (in http.conf) where we have
DirectoryIndex index.html

To be as:

DirectoryIndex index.html index.jsp

I hope this help you.

Wagner Correa Ramos


(Depois de responder vi que voce fala portugues !!! - Boa Sorte com o
Struts - eh uma excelente ferramenta)


- Original Message -
From: "Luiz Carlos Barbosa Jr." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 03, 2001 10:04 AM
Subject: Instalation of Struts on TomCat with Apache


Hi,

   I´m tring to install the Struts 1.0 on the Tomcat 3.2.1 with Apache
(on the Win2k). Acording to the instaling instructions on the Tomcat web
page I could include one of the following configuration files on the
Apache's "httpd.conf":
* tomcat-apache.conf
* mod_jk.conf-auto
   It recommened to use the "mod_jk.conf-auto". So I've used it. But on
the Struts' site it says that I have to include the following line on
the "tomcat-apache.conf": AddHandler jserv-servlet .do
   As I'm using "mod_jk.conf-auto" instead of "tomcat-apache.conf", I
tried to include this line on the httpd.conf, but didn't work out. So my
web server isn't recognizing the *.do extension. I haven't tried to
include this line on the "mod_jk.conf-auto", because this file is built
every inicialization of the the Tomcat.

Thanks.
Luiz





tomcat's jasper compiler and jspc

2001-09-04 Thread Matt Raible

I am using jspc to pre-compile my struts-based jsps.  I can pre-compile them
just fine and they get placed in the appropriate directories.  What I'm
wondering is if I can "compile" them (convert them to *.class files) as well -
so my appserver doesn't have to do this at runtime?

I tried using javac with jasper.jar and tomcat_util.jar (from tc 3.3.1b1) in my
classpath, but all kinds of errors occur.  I know my jsp's are fine because
they compile and run great when I run my app from the browser.

Thanks,

Matt

__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



CDATA with Digester

2001-09-04 Thread Bernard Genin

Hello List,

Is it normal to get an exception when one tries to parse CDATA tags  with
Digester ? (maybe related to Sax)
Like in :
..

some text 


Thanks for any hint,

.B




RE: ActionForm question ?

2001-09-04 Thread Marcel Andres

As much as I know, if you redisplay your form, and you use "session" for your scope, 
it will show you the values.
If you need a initialized form, use "request" instead.

marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 11:53 AM
To: [EMAIL PROTECTED]
Subject: ActionForm question ?


Hello,

I've got a functionnal problem with ActionForm:

I fill a form and submit then when I re-display this
form, my old value are display on the form. 

How can I initialize the ActionForm after sumit ?

Where the ActionForm is stocked (session, request, ...
) ?

Thanx.

___
Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr !
Yahoo! Courrier : http://fr.mail.yahoo.com



One ActionForm One Action for Multiple different JSP

2001-09-04 Thread Xavier Brunel

hi all,

I have a software design problem with Struts.

I have to deal with an application where you fill a global form across
several jsp's :
I have to fill some fields in the first JSP, then press next, fill other
fields, press next(or back), fill other fields, ... In each JSP, i can
submit the form.

I decide to Build one big ActionForm, containing all the possible fields of
all JSPs, and one big Action class where you find all the action possible on
these JSPs.
I then modify the struts-config.xml file and make several  tags,
mapping this same ActionForm and this same Action but forwarding to
different JSP in order to deal with the navigation.

My problem is that when I move from one JSP to another through the "next" or
"back" buttons or submit the form in the current page, I lost the previous
containt of my ActionForm. It seems that I get a new instance of my
ActionForm as soon as i navigate in my application.

I think it's a software design problem, not an implementation one though it
is working pretty well elsewhere.
Has anybody an idea of the way to solve this,
or an explanation on how to organize a Struts application to deal with
multiple JSP for one ActionForm and one Action ???

Xavier




ActionForm question ?

2001-09-04 Thread emmanuel.boudrant

Hello,

I've got a functionnal problem with ActionForm:

I fill a form and submit then when I re-display this
form, my old value are display on the form. 

How can I initialize the ActionForm after sumit ?

Where the ActionForm is stocked (session, request, ...
) ?

Thanx.

___
Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr !
Yahoo! Courrier : http://fr.mail.yahoo.com



Re: rtexprvalue - what is it?

2001-09-04 Thread Peter Pilgrim



It stands for "RUN-TIME EXPRESSION VALUE"
It is describe the type of attribute for custom action tag whether
it is evaluated at run-time or not.

BTW: In the JSP 1.1 Spec note you can do this:




But this is illegal

" />


--
Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --
_Cafe_Savannah,_San Antonio,Ibiza__



 Message History 



From: Matt Raible <[EMAIL PROTECTED]> on 03/09/2001 16:21 MST

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: rtexprvalue - what is it?


true means you can have:



false means you cannot have a scriplet variable as a value.

At least that's my understanding.

Matt

--- Pete Carapetyan <[EMAIL PROTECTED]> wrote:
> In the .tld files, every attribute looks like this. But I can't find
> anything anywhere about the third one:  rtexprvalue, and when to set it
> true and false.
>
> 
> value
> false
> true
> 
>
> Also, where did I miss it, if it is in the documentation somewhere?
> --
> Pete Carapetyan
> http://datafundamentals.com
> Java Development Services
>
> Open standards technology for commercial profitability
>
>


__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com





--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.





AW: "Cannot find bean element in scope null" - Error in action forwar d page - but the next page works !

2001-09-04 Thread juraj Lenharcik

put scope="request" to your write tag

-Ursprüngliche Nachricht-
Von: Hamelmann Stefan [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 4. September 2001 10:30
An: '[EMAIL PROTECTED]'
Betreff: "Cannot find bean element in scope null" - Error in action
forwar d page - but the next page works !


Hi

I have an action class setting a session attribute ( java bean class )
forwarding to a jsp page which calls  for that bean.
I got a "Cannot find bean element in scope null" error message for element.


  

  

When I make the same call " a page later " everything works fine.

I got the error in Struts 1.0 and Struts 1.1.4 with Tomcat 3.2.3 and Tomcat
4.0 B7

Thanx in advance, Stefan



RE: LDAP Authentication To Active Directory

2001-09-04 Thread Lacerda, Wellington (AFIS)

I'd like to have some info on this too.

Thanks!
Wellington

-Original Message-
From: Giuseppe Galli [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 10:53 AM
To: [EMAIL PROTECTED]
Subject: Re: LDAP Authentication To Active Directory


Hi Supriya,
I' see your post on the struts ml only today, sorry for the long time I
took.
I'm interested in LDAP auth with Active Directory: can you send me a link
where to see your code/experience?
TIA
Pino


- Original Message -
From: "SUPRIYA MISRA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 13, 2001 1:39 PM
Subject: LDAP Authentication To Active Directory


> I have successfully implemented LDAP authentication to Microsoft Active
> Directory at Wayne State University school of Medicine. If anyone is
> interested in having LDAP Authentication To Microsoft Active Directory ,
> please email me.
>
> Supriya Misra
> System Integrator II
> MSIS,WSUSOM
> Detroit, MI
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>




Re: LDAP Authentication To Active Directory

2001-09-04 Thread Giuseppe Galli

Hi Supriya,
I' see your post on the struts ml only today, sorry for the long time I
took.
I'm interested in LDAP auth with Active Directory: can you send me a link
where to see your code/experience?
TIA
Pino


- Original Message -
From: "SUPRIYA MISRA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 13, 2001 1:39 PM
Subject: LDAP Authentication To Active Directory


> I have successfully implemented LDAP authentication to Microsoft Active
> Directory at Wayne State University school of Medicine. If anyone is
> interested in having LDAP Authentication To Microsoft Active Directory ,
> please email me.
>
> Supriya Misra
> System Integrator II
> MSIS,WSUSOM
> Detroit, MI
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>




"Cannot find bean element in scope null" - Error in action forward page - but the next page works !

2001-09-04 Thread Hamelmann Stefan

Hi

I have an action class setting a session attribute ( java bean class )
forwarding to a jsp page which calls  for that bean.
I got a "Cannot find bean element in scope null" error message for element.


  

  

When I make the same call " a page later " everything works fine.

I got the error in Struts 1.0 and Struts 1.1.4 with Tomcat 3.2.3 and Tomcat
4.0 B7

Thanx in advance, Stefan