Clarification on Oracle JDeveloper9i (Was:Re: Re[2]: At wits end, questions JRun, Oracle9ias)

2002-04-04 Thread Steve Muench

| Oracle 9i is based on the Orion application server.  I think Oracle bought
| the source and are developing it, like they did with JBuilder -> JDeveloper.

Oracle JDeveloper 3.2.x was still partially based on
some Borland code, however now that is a thing of the past!

Our latest JDeveloper9i release has no longer any relationship
to JBuilder. Over the last two years we completely rewrote
the IDE in Java, added fully-integrated UML modeling, 
code profiling, J2EE deployment/deployment, etc.

And now (as of JavaOne last week) it's free.

More info at:  http://otn.oracle.com/products/jdev
 
__
Steve Muench - Developer, Product Mgr, Evangelist, Author
Simplify J2EE and EJB Development with BC4J
http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html
Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp




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




Re: Editor aware of Struts

2002-04-04 Thread Nicolas De Loof

> Please help if any one knows such tool to enable a developer to visually
> edit a JSP page with Struts.  Appreciate it very much,
>
> Yanhui

I installed Dreamweaver CTLX extension.
You need to install a Tomcat server (very simple) and put the TLDParser
servlet on it (put its war file in webapp directory), start Tomcat and put
your TLDs into webapp tomcat expanded as directories.

You then start and configure Dreamweaver as explained in tutorial and that's
OK.

You put your JSPs and beans as a second Tomcat webApp, so it can render the
JSPs for dreamweaver in "live data mode". Some say you have to create your
JSP with Dreamweaver, not just import them (no errors for me)


NB:
I get a 500 error with TLDParser servlet, so I had to recompile it with my
local JDK. Now it works fine !


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




help me

2002-04-04 Thread @Basebeans.com

Subject: help me 
From: mikastav <[EMAIL PROTECTED]>
 ===
Help Me

I have not a other solution, if you have, thank you

> have you a other solution for : (example with AND)
>
> 
> action A
> 
>
> 
> action A
> 
>
> 
> action A
> 
>
> 
> action B
> 
>
> 
> action B
> 
>
> 
> action C
> 
>
> thank you

Thank for your help


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




Struts tutorial in Spanish - Tutorial de struts en español

2002-04-04 Thread Pello Xabier Altadill Izura Pello Xabier Altadill Izura

Hi!
This is an announcement of a new tutorial of Struts written
in Spanish, with sample code.

Saludos!
Por si a alguien le interesa hay un nuevo tutorial sobre struts que se
puede descargar de javahispano.org o de ciberia.ya.com/pxai.
Contiene ejemplos de codigo que pueden ser utiles para iniciarse.

Hasta otra!

Pello Xabier Altadill Izura
Ingeniero





---
Descubre el poder de la personalización en línea. Todos tus servicios
favoritos en un solo lugar: http://www.terra.com/tumonitor/

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




RE: Problem with IE5 not calling an Action

2002-04-04 Thread James Mitchell

Yes, I use a similar concept.  I use my own taglib within my header.jsp
which is included site-wide.


like so





JM


> -Original Message-
> From: Antony Stace [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 05, 2002 1:39 AM
> To: Struts Users Mailing List
> Subject: Re: Problem with IE5 not calling an Action
>
>
> Thanks James for the reply.
>
> On Fri, 5 Apr 2002 01:31:21 -0500
> "James Mitchell" <[EMAIL PROTECTED]> wrote:
>
> > Not sure if this was answered yet but are you setting the
> content-type to
> > "image/gif" or "image/jpeg" depending on what you are serving up?
>
> Yup, still has problems with setting content-type to those values.
>  I have added
>
>  response.setHeader("Cache-Control", "no-cache");
>  response.setHeader("Pragma", "no-cache");
>  response.setHeader("Expires", "-1");
>
> to the Action and it works fine now in IE5, IE6 and Netscape 6.2.
> I want to use a filter to put this in all my responses, but I
> always get an error when I call
>
> chain.doFilter(request, response)
>
> so I am trying to figure this out at the moment.
>
> Cheers
>
> Tony
>
>
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




Re: Problem with IE5 not calling an Action

2002-04-04 Thread Antony Stace

Thanks James for the reply.

On Fri, 5 Apr 2002 01:31:21 -0500
"James Mitchell" <[EMAIL PROTECTED]> wrote:

> Not sure if this was answered yet but are you setting the content-type to
> "image/gif" or "image/jpeg" depending on what you are serving up?

Yup, still has problems with setting content-type to those values.
 I have added 

 response.setHeader("Cache-Control", "no-cache");
 response.setHeader("Pragma", "no-cache");
 response.setHeader("Expires", "-1");

to the Action and it works fine now in IE5, IE6 and Netscape 6.2.  
I want to use a filter to put this in all my responses, but I always get an error when 
I call

chain.doFilter(request, response)

so I am trying to figure this out at the moment.

Cheers

Tony




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




RE: Problem with IE5 not calling an Action

2002-04-04 Thread James Mitchell

Not sure if this was answered yet but are you setting the content-type to
"image/gif" or "image/jpeg" depending on what you are serving up?



JM

> -Original Message-
> From: Antony Stace [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 5:18 AM
> To: [EMAIL PROTECTED]
> Subject: Problem with IE5 not calling an Action
>
>
> Hi
>
> I have a jsp page.  An action populates some beans in the page and the jsp
> uses those values to display the page.  Also in this page is
>
> ">
>
> This action generates an image which is displayed on the page.
> The generateImage.do Action checks some bean values to work out
> which image to send.  The problem is that the page works fine on
>
> IE6
> Netscape 6.2
>
> It does not work on
>
> IE5.
>
> What I am seeing is that the jsp renders fine on the first
> rendering of the page for all browsers.  The second time the page
> is rendered the page renders fine on IE6 and Netscape 6.2 but
> with IE5 the image part of the jsp
>
> ">
>
> is not displayed (it was correctly displayed on the first access for all).
> For IE5 when I look in the tomcat4 logs I see the Action
> generateImage.do called the first access to the page, then on
> subsequent accesses it is not called.
> Any ideas folks?
>
> Cheers
>
> Tony
>
>
>
>
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




Re: Problem with Struts and 2.3 Filters

2002-04-04 Thread stefan werner

Hello chris,
did you try to place the elements exactly in the order they appear in the
dtd.
You can invoke the error you described f.e. by just crowding elements
together.
sorry about my english, but i hope it helps
cheers
stefan




- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 04, 2002 10:19 AM
Subject: Problem with Struts and 2.3 Filters


> Content-Transfer-Encoding: 7bit
>
> Hi folks,
>
> I am currently endeavouring to add Servlet 2.3 filtering (SiteMesh 1.3,
> in fact) to a Struts 1.0.2 application - but having no luck. I have
> searched the mailing list archives and can find no reference to this
> combination.
>
> I have set up inside one webapp folder of Tomcat 4.0.3 a Struts
> application which works correctly if it has the Struts application
> web.xml file in WEB-INF.
>
> Then I have copied into that same webapp directory a SiteMesh
> application. This also works correctly if it has the SiteMesh
> application web.xml file in WEB-INF (moving the Struts web.xml aside for
> now).
>
> However, if I add the SiteMesh elements ( and 
> plus some taglibs) to the web.xml of the Struts application it fails.
>
> In catalina.out I get:
> ---
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.3
> PARSE error at line 111 column 11
> org.xml.sax.SAXParseException: The content of element type "web-app"
> must match "(icon?,display-
> name?,description?,distributable?,context-param*,filter*,filter-
> mapping*,listener*,servlet*,servlet-mapping*,session-
> config?,mime-mapping*,welcome-file-list?,error-
> page*,taglib*,resource-env-ref*,resource-ref*,security-
> constraint*,login-config?,security-role*,env-entry*,ejb-
> ref*,ejb-local-ref*)".
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.3
> ---
>
> and the aplication does not work (file not found errors in the browser).
>
> Line 111, column 11 is the very end of the file. I have run Tidy over
> web.xml to check for any XML errors and there are none according to that
> tool.
>
> If I comment out the SiteMesh elements and restart Tomcat then the
> Struts application starts working again.
>
> If I comment out the Struts elements and restart Tomcat then the
> SiteMesh application starts working again.
>
> Can anyone enlighten me as to why the XML parser thinks there is a
> problem? I have searched the web for published examples of web.xml that
> include filter and servlet definitions and they appear no different in
> spirit to what I have...
>
> Any help is much appreciated!
>
> Thanks,
>
> Chris
>
>
> *
> This email and any files transmitted with it may be confidential and
> privileged.  It is intended solely for the use of the individual or
> parties to whom it is addressed. If you have received this email in
> error please forward it to [EMAIL PROTECTED] and delete all
> copies of this message immediately. Thank you.
> *
>
>






> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



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




Where is the roles attribute in struts-config_1_1.dtd?

2002-04-04 Thread struts-user

Anyone know why the DTD doesn't specify a roles attribute for the action mapping, but 
the processRoles() method in the RequestProcessor is checking the ActionMapping for 
every request to see if the roleNames field contains roles loaded from the 
struts-config? Is this a feature that's just not done yet?

Chuck
--
Sent via jApache.org

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




Re: Preventing Caching of all pages

2002-04-04 Thread Antony Stace

On Thu, 4 Apr 2002 18:13:31 -0800
"Heath Chiavettone" <[EMAIL PROTECTED]> wrote:

> If you are using a Servlet 2.3 compliant application server, you could write
> a filter that does this automatically for you and apply the filter to the
> action servlet.

I have decided to take the filter approach.  Here is what I have written, but this 
code dies on line (0)

public class TestFilter implements Filter
{
private FilterConfig filterConfig;
public void doFilter (ServletRequest request,
  ServletResponse response,
  FilterChain chain)
{
try
{

HttpServletResponse httpResponse = (HttpServletResponse) response;

httpResponse.setHeader("Cache-Control", "no-cache");
httpResponse.setHeader("Pragma", "no-cache");
httpResponse.setHeader("Expires", "-1");
chain.doFilter(request, response);  --(0)
} catch (IOException io) {
System.out.println ("IOException ");
} catch (ServletException se) {
System.out.println ("ServletException");
}
}

The error I am getting is
2002-04-05 13:24:16 StandardWrapperValve[action]: Servlet.service() for servlet action 
threw exception
java.lang.IllegalStateException: Cannot create a session after the response has been 
committed
at 
org.apache.catalina.connector.HttpRequestBase.doGetSession(HttpRequestBase.java)
at 
org.apache.catalina.connector.HttpRequestBase.getSession(HttpRequestBase.java)
at 
org.apache.catalina.connector.HttpRequestFacade.getSession(HttpRequestFacade.java)
at org.apache.catalina.connector.HttpRequestFacade.getSession(HttpRequest

How can I make my filter work?

Cheers

Tony



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




hi

2002-04-04 Thread arul

Hi

I am involved in developing a small application to get details abt struts.

I have four screens thru which i get info from the user and thru the value
object i transfer it to the EJB components.

I hold all the details of the four screens in four different session beans.

I accept a criteria [eg. user id] from the user and retrieve the
corresponding user info from database. I get an value object.

I have to set the details retrieved into the corresponding pages from the
first page itself. How could i do this, since when the next button in my
page is clicked i transfer the control to an .jsp i am not able to populate
the form bean.

Any solutions?suggestions??

Arul



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




html taglib yields "Cannot find message resources under key org.apache.struts.action.MESSAGE"

2002-04-04 Thread @Basebeans.com

Subject: html taglib yields "Cannot find message resources under key 
org.apache.struts.action.MESSAGE"
From: Bill Wohler <[EMAIL PROTECTED]>
 ===

  I've got the following complicated page:

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
http://www.newt.com/images/anybrowser4b.png"; />

  However, this complexity comes at a price:
  
javax.servlet.ServletException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE

  I found a message from Ted Husted about this and he suggested making a
  post 1.3.1 Xerces parser available. I have a 1.4.3 Xerces parser in
  /WEB-INF/lib. Why would an XML parser be necessary in the statement
  above?

  If I drop the "html:" in the above page, the image displays fine.

  I did just get Struts up today, so there could be some installation
  item I overlooked. I was able to get the template, logic, and tiles
  taglibs to work fine though.

  Suggestions much appreciated.

--
Bill Wohler <[EMAIL PROTECTED]>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and mh-e. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.

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




RE: Preventing Caching of all pages

2002-04-04 Thread Heath Chiavettone

Are you using a Servlet 2.3 compliant server?  If not then you can't use the
filter approach.  If you are, I would recommend using the filter as you
don't have to mess around with the servlet.  Plus, if you ever decide to use
Tiles, you would have to extend a different servlet.

-Original Message-
From: Antony Stace [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 04, 2002 6:18 PM
To: Struts Users Mailing List
Subject: Re: Preventing Caching of all pages

> If you are using a Servlet 2.3 compliant application server, you could
write
> a filter that does this automatically for you and apply the filter to the
> action servlet.

Which is the better to do you think.  Extend the ActionServlet or use a
filter?
Whats the advantage of each approach?

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: Preventing Caching of all pages

2002-04-04 Thread Antony Stace

> If you are using a Servlet 2.3 compliant application server, you could write
> a filter that does this automatically for you and apply the filter to the
> action servlet.

Which is the better to do you think.  Extend the ActionServlet or use a filter?
Whats the advantage of each approach?

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




RE: How to Generate .xls file from struts app.

2002-04-04 Thread Heath Chiavettone

We did this in our application and we found out just how limited Excel's
HTML conversion capability is.  It doesn't understand stylesheet styles, it
sometimes blows up if images are referenced in the html, etc...

We are looking into POI as a solution.

-Original Message-
From: Gruner, Manfred [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 04, 2002 2:50 AM
To: 'Struts Users Mailing List'
Subject: RE: How to Generate .xls file from struts app.

Hi,
you don't have to generate csv-files take the html-Code itself,
and change the mime type to "application/vnd.ms-excel".
This should work too.
Manfred

> -Original Message-
> From: Jim Crossley [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 02, 2002 4:34 PM
> To: Struts Users Mailing List
> Subject: Re: How to Generate .xls file from struts app.
> 
> 
> "gvn" <[EMAIL PROTECTED]> writes:
> >
> > I would like to generate a .xls (excel) file data from a result set.
> > =20
> > What I have to do ?=20
> 
> One simple approach is to generate a CSV (Comma-Separated-Values) file
> instead, and then set the response's content type to
> "application/vnd.ms-excel".  That way, you exploit the fact that Excel
> transparently handles CSV files and rely on the browser to invoke
> Excel. 
> 
> Your action amounts to something not quite as trivial as this:
> 
>   PrintWriter out = response.getWriter();
>   while (youHaveRows)
> while (youHaveColumns)
>   out.print(yourCell+",");
>   out.close();
>   response.setContentType("application/vnd.ms-excel");
> 
> -- 
> Jim Crossley
> http://www.lads.com/~jim
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Preventing Caching of all pages

2002-04-04 Thread Heath Chiavettone

If you are using a Servlet 2.3 compliant application server, you could write
a filter that does this automatically for you and apply the filter to the
action servlet.

-Original Message-
From: Antony Stace [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 04, 2002 6:07 PM
To: Struts Users Mailing List
Subject: Re: Preventing Caching of all pages

Thanks for the reply.  I want to try this out.  But first a couple of
questions.

I have not extended ActionServlet in my webapp, so I want to ask some advice
on
how to do this and how to adjust the web.xml file.
In regards to extending ActionServlet do I something like

public final class  MyActionServlet extends ActionServlet 
{


}

is the only only function I have to override the perform() method?
Also, once I have done this, do I change my web.xml file so the line

 org.apache.struts.action.ActionServlet

becomes

 org.apache.struts.action.MyActionServlet

Is there any examples anywhere which has in it an extended ActionServlet?

Thanks for your help.

Cheers

Tony



> Regardless, we solve this problem by overriding the process method of
> the ActionServlet and setting some headers prior to calling super.
> Something like this:
> 
> protected void process(HttpServletRequest request,
>HttpServletResponse response)
> throws java.io.IOException, ServletException
> {
> // We're dynamic, so caching is disabled
> response.setHeader("Cache-Control", "no-cache");
> response.setHeader("Pragma", "no-cache");
> response.setHeader("Expires", "-1");
> 
> super.process(request, response);
> }
> 

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: Preventing Caching of all pages

2002-04-04 Thread Antony Stace

Thanks for the reply.  I want to try this out.  But first a couple of questions.

I have not extended ActionServlet in my webapp, so I want to ask some advice on
how to do this and how to adjust the web.xml file.
In regards to extending ActionServlet do I something like

public final class  MyActionServlet extends ActionServlet 
{


}

is the only only function I have to override the perform() method?
Also, once I have done this, do I change my web.xml file so the line

 org.apache.struts.action.ActionServlet

becomes

 org.apache.struts.action.MyActionServlet

Is there any examples anywhere which has in it an extended ActionServlet?

Thanks for your help.

Cheers

Tony



> Regardless, we solve this problem by overriding the process method of
> the ActionServlet and setting some headers prior to calling super.
> Something like this:
> 
> protected void process(HttpServletRequest request,
>HttpServletResponse response)
> throws java.io.IOException, ServletException
> {
> // We're dynamic, so caching is disabled
> response.setHeader("Cache-Control", "no-cache");
> response.setHeader("Pragma", "no-cache");
> response.setHeader("Expires", "-1");
> 
> super.process(request, response);
> }
> 

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




2 articles

2002-04-04 Thread @Basebeans.com

Subject: 2 articles
From: Vic Cekvenich <[EMAIL PROTECTED]>
 ===
Also...
http://www.fawcette.com/javapro/2002_04/magazine/features/tholloway/

 Original Message 
Subject: [MVC-Programmers] [Struts Tips] #5 - Coarsed-Grained 
ActionForms (ON StrutsPlus.com)
Date: Thu, 04 Apr 2002 10:19:39 -0500
From: Ted Husted <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Organization: Apache Software Foundation / Jakarta
Newsgroups: MVC-Programmers

The biggest hassle for any Struts developer can maintaining the #@$!%
ActionForms. The ActionForm provides several important services to an
application, since it is

a firewall.,
a buffer for the HTML controls, and
a mutable transfer object..

As a firewall it keeps untrusted input from passing directly into your
application. As a field buffer, it stores new input so it can verified
before it is passed to more trusting parts of your application, As a
mutable transfer object (fka value object), the ActionForm provides an
extensible container where data can collected and passed in a batch to
one or more business or resource layer objects.

But, in practice, you usually need a different form-bean for each HTML
form in your application. This makes it easy to store the data for each
form under its own attribute, and to fine-tune the validation for each
form.

Hey -- what's that about form-beans? I thought we were talking about
ActionForms?

This is an important distinction. Each HTML form typically needs its own
form-bean, but a form-bean is not an ActionForm. A form-bean identifies
which ActionForm to use,  in the same way an action-mapping identifies
which Action class to use. Many Struts developers share Actions between
action-mapping, but tend to forget that you can share ActionForms
between form-beans too.

While ActionForms are vital objects, they are not subtle. Typically,
they are a pure data-only JavaBean, with nothing but accessors and
mutators. Occasionally, there is a helper method to transform data from
one type to another, but even those are a simple wrappers around
standard library functions. With the Struts-Validator, most ActionForms
don't even need to subclass validate(). All that's needed is to define a
formset for each form-bean, or attribute, that needs validation.

So, why bother with more than one ActionForm class? The form-bean
determines the runtime attribute name, and therefore the formset the
Struts-Validator will use. Neither the validator nor the autopopulation
utilities care if there are more properties a form than are used with a
given request. And, null properties consume fewer resources that
instantiating yet another class. So why not just put all the
application's properties together in a single ActionForm?

Worst case, you can define a base ActionForm with all the properties you
need, and subclass to provide any custom validations. Meanwhile, by
aggregating your application's properties into a single ActionForm,
several key benefits are realized.

+ Better Manageability. Implementing ActionForms as fine-grained
containers results in a large number of objects in the application, many
of which have redundant properties. This consumes both system and
developer resources, and can negatively impact application performance
and long-term maintenance.

+ Relationships are preserved. Most HTML forms represent, in part, a SQL
view, which includes properties from several different tables. If an
ActionForm contains properties for all the fields, any relationship can
represented.

+ Schema independance.  When ActionForms are fine-grained, each
ActionForm usually represents a single row in a database. This ties the
presentation layer to the database schema, rather than to the greater
business model. When the schema changes, fine-grained ActionForm objects
may also need to changed. Coarse-grained ActionForms change less
frequently, since if a field is moved from one table to another, it will
still available the form. If a field is introduced or renamed, only one
ActionForm object needs to adjusted.

So the next time you need an ActionForm to go with a new form-bean,
think twice before creating a new subclass. Maybe you already have one
you can reuse.

HTH, Ted.

For more about aggregate entities in J2EE applications, see <
http://developer.java.sun.com/developer/restricted/patterns/AggregateEntity.html
 >.

-

About Ted. Ted Husted is an active Struts Committer and moderates the
Struts mailing list and the JGuru Struts FAQ.


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




RE: RES: JRun and struts problem worked out?

2002-04-04 Thread Thinh Doan

you should only need struts.jar in app/WEB-INF/lib.

Thinh

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 8:30 AM
To: Gilson Nascimento D Elrei
Cc: Struts Users Mailing List
Subject: Re: RES: JRun and struts problem worked out?


Thanks for trying to help. I'm still stumped.  I don't point to the
struts.jar anywhere within JRun, not on my system classpath, only
place is in the actually applications WEB-INF/lib directory. I've
stuck so much stuff in there now trying to get it to work with no
luck. I'd appreciate any other suggestions to try. Here's what's
currently in my app/WEB-INF/lib directory (I'm sure some of these I
don't need. I was just trying to take some out of Tomcat's default lib
directory seeing if that would help):

activation.jar
commons-beanutils.jar
commons-validator.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
connector_util.jar
core_util.jar
crimson.jar
etomcat.jar
facade22.jar
jakarta-regexp-1.2.jar
jasper.jar
jasper-runtime.jar
mail.jar
servlet.jar
struts.jar
struts-validator.jar
tomcat_core.jar
tomcat_util.jar
tomcat_modules.jar
xalan.jar



On Thursday, April 4, 2002, 7:47:19 AM, Gilson wrote:

GNDE>Look on struts.jar path, this file must to be on your
GNDE> WEBAPP\WEB-INF\LIB directory not in WEBCONTAINER\WEB-INF\LIB
GNDE> public directory. It error commonly occur when your WEBServer
GNDE> container find struts.jar in another directory from your
GNDE> CLASSPATH (the first occurrence of struts.jar found is used by
GNDE> WEBServer container for your WEBApplication). If the struts.jar
GNDE> found doesn't in your WEBAPP\WEB-INF\LIB directory therefore the
GNDE> STRUTS lost the class references. I did have this same problem
GNDE> and I resolved  it erasing falses struts.jar references from
GNDE> CLASSPATH that wasn't TRULY my WEBAPP\WEB-INF\LIB.  Try it, find
GNDE> all struts.jar and remove struts.jar false references... You
GNDE> don't need keep struts.jar in your CLASSPATH only put it in your
GNDE> Webapp\WEB-INF\LIB. If struts.jar doesn't is correctly
GNDE> installed in WEBAPP\WEB-INF\LIB directory STRUTS will not find
GNDE> your MESSAGE RESOURCE and STRUTS-CONFIG.XML files.

GNDE>Let me know if it worked out, ok !?

GNDE>Good Luck.

>> - Mensagem original -
>> De:   Rick Reumann [SMTP:[EMAIL PROTECTED]]
>> Enviada em:   quarta-feira, 3 de abril de 2002 21:00
>> Para: [EMAIL PROTECTED]
>> Assunto:  JRun and struts problem worked out?
>>
>> gilson,
>>
>> Hi, did you ever get that JRun/Struts problem worked out? I'm getting
>> the same error with JRun (and not using Tomcat)
>> "Cannot find ActionMappings or ActionFormBeans collection"
>>
>> Please let me know what you did to resolve this problem. Thanks so
>> much.
>>
>> --
>>
>> Rick
>> mailto:[EMAIL PROTECTED]
>>
>> "I bet a fun thing would be to go way back in time to where there was
>> going to be an eclipse and tell the cave men, 'If I have come to
>> destroy you, may the sun be blotted out from the sky.' Just then the
>> eclipse would start, and they'd probably try to kill you or something,
>> but then you could explain about the rotation of the moon and all, and
>> everyone would get a good laugh."
>>   -Jack Handey


--

Rick
mailto:[EMAIL PROTECTED]

"I'd like to be buried Indian-style, where they put you up on a high
rack, above the ground. That way, you could get hit by meteorites and
not even feel it."
  -Jack Handey


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: ApplicationResources Error

2002-04-04 Thread Galbreath, Mark

> We get this:
> 
> ???en_US.default.required.error.key??? 
> When in ApplicationResources we say :
> default.required.error.key=Required.
> and in struts-config.xml we say:
>parameter="com.tessco.partner.vsb2c.web.ApplicationResources"/>
> 
Mark

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




RE: Struts html:link tag

2002-04-04 Thread Tim Sawyer

You can turn off validation on a form bean for a particular ActionMapping by
specifying validate="false" in the action mapping.

See http://jakarta.apache.org/struts/doc-1.0.2/api/index.html for more
details.


 
 


Tim.

> -Original Message-
> From: regatta DeBlanc [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 4:03 PM
> To: [EMAIL PROTECTED]
> Subject: Struts html:link tag
>
>
> How can I use the html:link tag to reference a page,
> without trigerring the validation process.
>
> e.g.
>
> 
>
> This will trigger the validate() operation in the
> userAddForm and the perform() operation in
> userAddAction, BEFORE displaying the page userAdd.jsp.
>
> The problem here is that I have added a check in the
> validate() operation so that it adds an ActionError if
> the user did not fill in the username text box. But
> this check is meant for when the user hits the submit
> button, not when the page is first loaded.
>
> When referencing the page with:
> 
> how can I differentiate, in the ActionForm and Action
> operations, between the case when the page is first
> loaded and the case when the user hits the submit
> button??
>
> I know I can solve the problem by referencing the page
> as follows:
> 
> but I want to try to do it the "Struts" way so that I
> can load the page with templates that are derived in
> the Action.
>
>
>
> __
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: Connection pool behaviour

2002-04-04 Thread Zeltser, Mark

Try to print out cached data to your log file just to make sure that it
doesn't cached by the browser/tomcat/proxy if any.

-Original Message-
From: Johannes Wolfgang Woger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 2:59 PM
To: Struts Users Mailing List
Subject: Re: Connection pool behaviour


Thanks,
but I cacheEnabled true and setting a cacheRefreshInterval
the log file even tells me that poolman is refreshing, but
simply does not.
I use tomcat403 and poolman 2.1-b1

Wolfgang


"Zeltser, Mark" schrieb:

> Both datasources should reflect database change when tomcat restarted. You
> can configure poolman to automatically refresh cache by configuring the
> appropriate attributes in configuration file ( e.g. cacheEnable,
cacheSize,
> cacheRefreshInterval) You can't configure struts Datasource for automatic
> refresh.
>
> Mark.
>
> -Original Message-
> From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 2:55 AM
> To: [EMAIL PROTECTED]
> Subject: Connection pool behaviour
>
> Subject: Connection pool behaviour
> From: "Johannes Wolfgang Woger" <[EMAIL PROTECTED]>
>  ===
> Hi,
> I notized that both PoolMan and
> struts-DataSource do not refresh their
> output from an SELECT * FROM MYTABLE
> if mytable was changed by an other
> application.
> Struts-DataSource does refresh when
> Tomcat is restarted, PoolMan does not.
> If this is a normal behaviour, how will I
> introduce megatons of existing data into
> my application ?
> I am sure there is a simple explanation.
>
> Wolfgang
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>

--
> This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient
of this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information
is complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.



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




Accessing Hashtable / Map entries with bean library

2002-04-04 Thread Wellie W. Chao

Is there a way to access Hashtable (or Map) entries with the bean tag
library? Normally I would use a regular bean and just do bean:write, but I
want to have several derived values as well that are not in the bean, so I
have to copy the bean properties to a Hashtable and add the derived values.

Right now I use <%= hashTable.get(propertyName) %>, but I'd prefer to use a
struts tag.


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




RE: No action instance for path

2002-04-04 Thread Wellie W. Chao

I don't think you actually need the ".do" extension when using the html:form
tag. I don't have it in my forms and it works. I think the struts-html tag
library searches through the actions and automatically appends the correct
extension. If you were using standard HTML form tags, you'd have to append
the ".do" extension to the action.

-Original Message-
From: Dimitar Stavrakov [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 12:55 PM
To: Struts Users Mailing List
Subject: RE: No action instance for path



You forgot to put the ".do" at the end of the action :




Should do it.

Regards,

Dimitar

-Original Message-
From: kelly lan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 4:36 AM
To: Struts User
Subject: No action instance for path

Hi,
In my logon page ,I logon with user name and user
password,when I submit I get the error:

No action instance for path /verifyAction could be
created
This is my logon page:

..



  



UserName: 
  
  
   
   

Password:

 
  
  
  

  
 

  

  

 


This is my struts_config.xml:










  


  
  


 

  


  
  




 



  


  
  














   

















  



Thank for you!



__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: RequestUtils.populate ( BeanUtils.populate)

2002-04-04 Thread David M. Karr

> "Peter" == Peter Pilgrim <[EMAIL PROTECTED]> writes:

Peter> In Struts 1.1

Peter> RequestUtils.populate ( BeanUtils.populate) does not seem to be populate
Peter> my action forms which explicityly have a mapped attributes.

Peter> I defined a bean like this

Peter>public CcyItem getCurrenyItem( String ccy ) {
Peter>   return (CcyItem)mapItem.ge( ccy );

Peter> In my JSP I wrote a HTML Input Text field like so

Peter> 

Peter> but it does not work because I think that Struts 1.1 does not populate 
mapped properties!

Peter> Is it me or is it Struts?
Peter> Can someone else verify that it is working?

Just in case, did you paste in this code from your actual code, or did you type
it in directly?  If this is pasted from your code, then you might want to
change "getCurrenyItem" to "getCurrencyItem".

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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




RE: Re[2]: At wits end, questions JRun, Oracle9ias

2002-04-04 Thread Tim Sawyer

Oracle 9i is based on the Orion application server.  I think Oracle bought
the source and are developing it, like they did with JBuilder -> JDeveloper.

The orion application server is free for development, and $1500 per server
for deployment.  We're using it instead of paying Oracle ?20,000 or so.
http://www.orionserver.com

It might make sense to use Orion in development, rather than Tomcat.  This
will be closer to 9i, and you're less likely to get problems migrating.

Just a thought.

Tim.

> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 8:44 PM
> To: Galbreath, Mark
> Cc: Struts List
> Subject: Re[2]: At wits end, questions JRun, Oracle9ias
>
>
> Thanks for the feedback Mark. Actually we are using 9ias here also. (I
> just had JRun running locally since it was smaller on my little
> machine. Now I have Tomcat also so I really don't need to use both,
> but thought I'd just try to get it to work ok under JRun). Is there
> anything 'special' or 'quirky' that I need to know getting this to run
> under Oracle9ias? I'm actually going to move some struts stuff over
> there that was working under Tomcat right now and see how it works.
>
> On Thursday, April 4, 2002, 9:41:05 AM, Mark wrote:
>
> GM> My short answer to you is, "Shit-can JRun."  My team is developing
> GM> a very complex web-based B2B/B2C/Maintenance application for
> GM> VoiceStream Wireless. We are using Struts (now) 1.1b-1 (and the
> GM> migration from 1.0.2 was very problematic!), Apache webserver on
> GM> Unix, and Oracle 8i as the integration tier.  We started out using
> GM> JRun 3.1 and had so many problems with it (from huge memory leaks
> GM> to configuration nightmares) that we have abandoned it and are
> GM> migrating to Oracle9ias.  Our preliminary exposure to 9ias has
> GM> been very positive.
>
> GM> Mark
>
> GM> -Original Message-
> GM> From: Rick Reumann [mailto:[EMAIL PROTECTED]]
> GM> Sent: Wednesday, April 03, 2002 8:51 PM
> GM> To: Struts Users Mailing List
> GM> Subject: At wits end, questions JRun, Oracle9ias
>
>
> GM> Strutsters,
>
> GM> I've been playing around with struts on my local machine here at work
> GM> under Tomcat and everything is fine. In another local environment I've
> GM> been using JRun for some applications and I'd like to get the sample
> GM> app I was working under Tomcat to work under JRun. I'm not having any
> GM> luck. I've been searching these archives and whatever I could find but
> GM> I'm still stuck.
>
> GM> Here's the deal. I have a really really watered down basic app in a
> GM> directory called 'utilities' in the tomcat webapps folder. I now took
> GM> this whole directory and copied it into the default path for where I
> GM> have other JRun apps. ( I configured JRun to point to this new
> GM> application and even configured the servlet mapping). If I try to go
> GM> right to the page 'payrollChangeForm.jsp' I get an error that others
> GM> have gotten (not necessarily with JRun):
>
> GM> Exception thrown processing JSP page.
> GM> javax.servlet.jsp.JspException: Cannot find ActionMappings or
> GM> ActionFormBeans collection
> GM> at
> org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:781)
> GM> at
> org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481
> GM> {cut}...
>
> GM> Now, I'm not sure what cause this error since the same files are
> GM> working fine under Tomcat. Another thing messed up which might help
> GM> some of you debug is I also have an index page with a simple link on
> GM> it that calls the action :
> GM>  GM> forward="/formsStruts/test.jsp">
> GM> 
>
> GM> When this link is hit, I get a nice 500 Internal Error page with:
>
> GM> null
> GM> java.lang.NoSuchMethodError
> GM> at
> org.apache.commons.digester.Digester.parse(Digester.java:859)
> GM> at
> GM>
> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.j
> ava:1274)
> GM> at
> GM> org.apache.struts.action.ActionServlet.init(ActionServlet.java:461)
>
>
> GM> What else do I need to get this running successfully under JRun? The
> GM> installation instructions with Struts mention the taglib issues but I
> GM> don't think this is really related to that. Couple comments: JRun is
> GM> pointing to the directory for this application on another network
> GM> directory. This means my local classpath that points to some
> XML xerces
> GM> stuff I have on my local classpath won't be valid so I put the
> GM> following files in my applications lib directory xmlParserAPIs.jar and
> GM> xercesImpl.jar. Somehow I think this is a parser issue or
> something because
> GM> if I
> GM> remove this file and then click on the link I'll get:
>
> GM> org/xml/sax/helpers/DefaultHandler
> GM> java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
> GM> at java.lang.ClassLoader.defineClass0(Native Method)
>
>
> GM> I'm just guessing here but if

applicationresources.properties error

2002-04-04 Thread Galbreath, Mark

Has anyone had a problem with beta-1 not translating the error messages?
 
Mark



RE: Editor aware of Struts

2002-04-04 Thread Yu, Yanhui

Hi Pim,

I will for sure post the solution if any one suggests a tool for us.  Rajesh
kindly suggested Dreamweaver UltraDev4 and CTLX extension, I was trying to
download those, but so far unable to make the system work yet (it also asks
for Tomcat, we don't use any of these here).  Hope Rajesh would kindly post
his suggestion on the net.  Thanks very much Rajesh.

Please help if any one knows such tool to enable a developer to visually
edit a JSP page with Struts.  Appreciate it very much,

Yanhui



-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 2:10 AM
To: [EMAIL PROTECTED]
Subject: Re: Editor aware of Struts


Subject: Re: Editor aware of Struts
From: "Pim" <[EMAIL PROTECTED]>
 ===
Hi Yanhui,

Good question, I'm struggeling with the same problem. I hope that a plugin
for Eclipse will be written. Keep us informed if you find a solution.

Pim

"Yu, Yanhui" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Vic,
>
> is OmniCore.com CodeGuide 4 a Java IDE?  We are using IBM's WSAD (combines
> Java IDE, like VAJ and JSP editors like Websphere studio) to edit Java
code
> (such as the Action and ActionForm classes).
>
> WSAD has a page Designer (like Websphere Studio) which offers visual
> desgning for JSP page, somewhat like FrontPage, where the developer can
> visually see the buttons, tables, images and such during development.
WSAD
> also comes with a Source editor (just like Textpad) which only shows the
JSP
> source code.  The developer can choose to use either the Designer or the
> Source editor to compose a JSP page.  Now we are trying to use Struts, the
> Designer from WSAD no longer recongnize the struts componnets such as
Struts
> buttons.  It shows a red triangular icon for any of the Struts component
> without any face value shown (like a button's value).
>
> What I am looking for is an editing tool that will recognize Struts
> components, e.g., Struts button and show the button during editing, i.e.,
> before rendering with a browser.
>
> Hope I explained what I am looking for and appreciate for any suggestions.
>
> Yanhui
>
>
> -Original Message-
> From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 8:40 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Editor aware of Struts
>
>
> Subject: Re: Editor aware of Struts
> From: Vic Cekvenich <[EMAIL PROTECTED]>
>  ===
> You can do Struts with just JSP, you have to "edit" Java as well.
> (I use OmniCore.com CodeGuide 4 now, after NetBeans.org)
>
> To do things like table iterate of a resuult set, they will have to be
> OK with writing HTML 
>
> Vic
>
>
> Yu, Yanhui wrote:
>
> > Hi all,
> >
> > Does anyone out there who can recommend us a tool that is Struts aware?
> We
> > are using WSAD and it can't recognize any struts tags in the Page
Designer
> > that comes with WSAD.  The developers don't really like to edit the
Source
> > page (the text editor).  We would very much appreciate any suggestions
to
> > any tool that can visually edit a JSP page with Struts.  Thank you very
> much
> > in advance,
> >
> > Yanhui
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>



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




config in struts-config.xml?

2002-04-04 Thread Mark Johnson

I have been unable to access a database as suggested in
struts-example.war.  I started with a working example that does not 
access a database, and made a single change: I added a 
element to struts-config.xml. When I did that, the example at the first 
attempt to access the action servlet.

Here's a relevant snippet from Tomcat's localhost_log:
...
2002-04-04 13:09:59 StandardWrapper[/testapp:action]: Marking servlet action as 
unavailable
2002-04-04 13:09:59 StandardContext[/testapp]: Servlet /testapp threw load() exception
javax.servlet.UnavailableException: Initializing application data source 
org.apache.struts.action.DATA_SOURCE
at 
org.apache.struts.action.ActionServlet.initApplicationDataSources(ActionServlet.java:850)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:419)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
...

I've tried both versions of the  element:

1. Section 4.4 of the Users Guide 
  

  

2.  struts-example/WEB-INF/struts-config.xml version
  









 

To check that my setup is OK, I wrote the following class. It runs fine.
**
import java.sql.*;
import org.apache.struts.util.*;

public class Pgtest2 {

public static void main(String[] args) {
try {
// I believe this is what struts uses ...
GenericDataSource gds =  new GenericDataSource(); 

// set all the properties from  element 
gds.setAutoCommit(false);   
gds.setDriverClass("org.postgresql.Driver");
gds.setMaxCount(2);
gds.setMinCount(4);
gds.setPassword("whatever");
gds.setUrl("jdbc:postgresql:mystraw");
gds.setUser("postgres");

// access database table and print to see whether it all works
Connection con = gds.getConnection();
Statement  stm = con.createStatement();
stm.setQueryTimeout(10);
ResultSet  rs  = stm.executeQuery("select password from users");
rs.next();
System.out.println(rs.getString(1));
con.close();
} catch (Exception e) {
System.out.println("Exception!");
System.out.println(e.toString());
}
}
}
**

I'm using standalone Tomcat-4.0.2, Struts-1.1-b1, Postgresql-7.2.1 with 
pgjdbc2.jar.

Any suggestions?

TIA,
-- 

Mark Johnson
[EMAIL PROTECTED]

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




Form tag to ActionForm field types relationships.

2002-04-04 Thread Bob Lee

Is there a complete list of what ActionForm field types corresponds to which
HTML elements? I'm having trouble finding one.

For example, if I have multiple hidden fields with the same name, can my
ActionForm field be an array or a Collection? Or, if I have a checkbox, can
my ActionForm field be a boolean or String?

Thanks,
Bob


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




Re: Connection pool behaviour

2002-04-04 Thread Johannes Wolfgang Woger

Thanks,
but I cacheEnabled true and setting a cacheRefreshInterval
the log file even tells me that poolman is refreshing, but
simply does not.
I use tomcat403 and poolman 2.1-b1

Wolfgang


"Zeltser, Mark" schrieb:

> Both datasources should reflect database change when tomcat restarted. You
> can configure poolman to automatically refresh cache by configuring the
> appropriate attributes in configuration file ( e.g. cacheEnable, cacheSize,
> cacheRefreshInterval) You can't configure struts Datasource for automatic
> refresh.
>
> Mark.
>
> -Original Message-
> From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 2:55 AM
> To: [EMAIL PROTECTED]
> Subject: Connection pool behaviour
>
> Subject: Connection pool behaviour
> From: "Johannes Wolfgang Woger" <[EMAIL PROTECTED]>
>  ===
> Hi,
> I notized that both PoolMan and
> struts-DataSource do not refresh their
> output from an SELECT * FROM MYTABLE
> if mytable was changed by an other
> application.
> Struts-DataSource does refresh when
> Tomcat is restarted, PoolMan does not.
> If this is a normal behaviour, how will I
> introduce megatons of existing data into
> my application ?
> I am sure there is a simple explanation.
>
> Wolfgang
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> This message is intended only for the personal and confidential use of the 
>designated recipient(s) named above.  If you are not the intended recipient of this 
>message you are hereby notified that any review, dissemination, distribution or 
>copying of this message is strictly prohibited.  This communication is for 
>information purposes only and should not be regarded as an offer to sell or as a 
>solicitation of an offer to buy any financial product, an official confirmation of 
>any transaction, or as an official statement of Lehman Brothers.  Email transmission 
>cannot be guaranteed to be secure or error-free.  Therefore, we do not represent that 
>this information is complete or accurate and it should not be relied upon as such.  
>All information is subject to change without notice.
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 



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




Re: conditional iterate

2002-04-04 Thread Marcelo Vanzin

Peter Cnops wrote:
> Instead of "searchvalue" I want to include the value of  name="articlebean" property="articledivisionid" />, while the iterate is on
> the divisionbean.

You can't do that directly in Struts (at least in 1.0.2, haven't looked 
more closely in 1.1b yet), you have to use a workaround. For example:





This probably solves your second problem, also.


-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
"Life is too short to drink cheap beer"


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




forwarding problem

2002-04-04 Thread Bhaskar Gopalan

Hi,
Inside a jsp I include a action (.do) file. I get this error when the
forwarding tries to
take place:

Error Message: ERROR: Cannot forward. Writer or Stream already obtained.
Error Code: 500
Target Servlet: null

Any clues on how to fix this?

Thnx,
GB


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




RE: Problem with tag

2002-04-04 Thread Jakkampudi, ChandraseKhar
Make sure you have included the logic taglib in your page 

 <%@ taglib uri="WEB-INF/struts-logic.tld" prefix="logic" %>

If you dont have this, the logic tags are just ignored and you will get the
output you described.

HTH,
JC

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 8:41 PM
To: [EMAIL PROTECTED]
Subject: Problem with  tag


I have some code in a jsp page


logic:equal tag returned true



logic:notEqual tag returned true


When I access this page, I get the following

logic:equal tag returned true
logic:notEqual tag returned true



Am I missing the point about the "logic:equal" and "logic:notEqual" tags, or
is there a reason this might be happening?
How can I make it print out only if value="false" ?



Regards

Antony





_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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


RE: Urgent: xml with struts

2002-04-04 Thread Greg.Reddin

If all you're trying to do is convert data between java objects and XML
you might want to look at Castor or JAXB (the upcoming Java API for XML
Binding).  Struts does not have any built-in support for moving data
between Java and XML, but you could certainly plug one of these packages
in.
 
Greg

-Original Message-
From: Yugandhar_Reddy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:19 PM
To: [EMAIL PROTECTED]
Subject: Urgent: xml with struts


Hi,
 
Can anyone tell me how can we make use of xml with struts
can we use struts for converting the xml to valueObjects(java class
which hold the set and get methods for the each xml tag) and again
valueObjects to xml??
 
Thanks in advance,
Yug
 
 

***

This e-mail (including any attachments) is intended for the sole use of
the intended recipient/s and may contain material that is CONFIDENTIAL
AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or
copying or distribution or forwarding of any or all of the contents in
this message is STRICTLY PROHIBITED. If you are not the intended
recipeint,please contact the sender by e-mail and delete all copies;
your co-operation in this regard is appreciated.





Re: How to Generate .xls file from struts app.

2002-04-04 Thread Ben Peter

Hi,

I don't have the whole thread available, so I'm not sure whether this has been 
said: you can use jakarta poi to build native xls files.

http://jakarta.apache.org/poi/index.html

Cheers,
Ben
-- 
Benjamin Peter  +49-69-96244395
Application Engineer Moerfelder Landstr. 55
(zentropy:partners)60598 Frankfurt, Germany


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




Re: At wits end, questions JRun, Oracle9ias

2002-04-04 Thread @Basebeans.com

Subject: Re: At wits end, questions JRun, Oracle9ias
From: Vic Cekvenich <[EMAIL PROTECTED]>
 ===
I run OrionServer.com (Oracle is based on it) and it is cake.

Vic

Galbreath, Mark wrote:

> My short answer to you is, "Shit-can JRun."  My team is developing a very
> complex web-based B2B/B2C/Maintenance application for VoiceStream Wireless.
> We are using Struts (now) 1.1b-1 (and the migration from 1.0.2 was very
> problematic!), Apache webserver on Unix, and Oracle 8i as the integration
> tier.  We started out using JRun 3.1 and had so many problems with it (from
> huge memory leaks to configuration nightmares) that we have abandoned it and
> are migrating to Oracle9ias.  Our preliminary exposure to 9ias has been very
> positive.
> 
> Mark
> 
> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 8:51 PM
> To: Struts Users Mailing List
> Subject: At wits end, questions JRun, Oracle9ias
> 
> 
> Strutsters,
> 
> I've been playing around with struts on my local machine here at work
> under Tomcat and everything is fine. In another local environment I've
> been using JRun for some applications and I'd like to get the sample
> app I was working under Tomcat to work under JRun. I'm not having any
> luck. I've been searching these archives and whatever I could find but
> I'm still stuck.
> 
> Here's the deal. I have a really really watered down basic app in a
> directory called 'utilities' in the tomcat webapps folder. I now took
> this whole directory and copied it into the default path for where I
> have other JRun apps. ( I configured JRun to point to this new
> application and even configured the servlet mapping). If I try to go
> right to the page 'payrollChangeForm.jsp' I get an error that others
> have gotten (not necessarily with JRun):
> 
> Exception thrown processing JSP page.
> javax.servlet.jsp.JspException: Cannot find ActionMappings or
> ActionFormBeans collection
> at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:781)
> at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481
> {cut}...
> 
> Now, I'm not sure what cause this error since the same files are
> working fine under Tomcat. Another thing messed up which might help
> some of you debug is I also have an index page with a simple link on
> it that calls the action :
>  forward="/formsStruts/test.jsp">
> 
> 
> When this link is hit, I get a nice 500 Internal Error page with:
> 
> null
> java.lang.NoSuchMethodError
> at org.apache.commons.digester.Digester.parse(Digester.java:859)
> at
> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1274)
> at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:461)
> 
> 
> What else do I need to get this running successfully under JRun? The
> installation instructions with Struts mention the taglib issues but I
> don't think this is really related to that. Couple comments: JRun is
> pointing to the directory for this application on another network
> directory. This means my local classpath that points to some XML xerces
> stuff I have on my local classpath won't be valid so I put the
> following files in my applications lib directory xmlParserAPIs.jar and
> xercesImpl.jar. Somehow I think this is a parser issue or something because
> if I
> remove this file and then click on the link I'll get:
> 
> org/xml/sax/helpers/DefaultHandler
> java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
> at java.lang.ClassLoader.defineClass0(Native Method)
> 
> 
> I'm just guessing here but if the parsing isn't taking place correctly
> that might explain the first problem of when I try to go straight to
> the form.jsp page and get the "Cannot find ActionMappings or
> ActionFormBean collections' error, since maybe it can't parse the
> struts-config.xml?
> 
> Any ideas what is wrong? I'm also concerned because I want to push for
> using struts here at work but I know they'll have issues if it's going
> to be hard to configure it to get it to work under Oracle9ias as well.
> Are struts apps easy to configure under Oracle9ias as well? I didn't
> think I'd have this problem with JRun so once I tackle that hurdle I
> hope tackling the next one won't be as bad.
> 
> Thanks for any help.
> 
> 


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




RE: Struts html:link tag

2002-04-04 Thread Dimitar Stavrakov

In struts-config.xml 

For action userAdd.do enter a parameter validate="false" . 

Something like this : 


  


Regards, 

Dimitar

-Original Message-
From: regatta DeBlanc [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 04, 2002 9:03 AM
To: [EMAIL PROTECTED]
Subject: Struts html:link tag

How can I use the html:link tag to reference a page,
without trigerring the validation process.

e.g.



This will trigger the validate() operation in the
userAddForm and the perform() operation in
userAddAction, BEFORE displaying the page userAdd.jsp.

The problem here is that I have added a check in the
validate() operation so that it adds an ActionError if
the user did not fill in the username text box. But
this check is meant for when the user hits the submit
button, not when the page is first loaded. 

When referencing the page with:

how can I differentiate, in the ActionForm and Action
operations, between the case when the page is first
loaded and the case when the user hits the submit
button??

I know I can solve the problem by referencing the page
as follows:

but I want to try to do it the "Struts" way so that I
can load the page with templates that are derived in
the Action.



__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




DynaValidatorActionForm/DynaValidatorAction

2002-04-04 Thread Phase Web and Multimedia

Can someone please give me a snippet of code that uses these classes
properly. I have found no examples. Perhaps because it is new, maybe. But, I
have tried to use it like the DynaActionForm in my form-bean declaration and
I have tried to cast it from the ActionForm form in my Action class to both
DynaValidatorActionForm and DynaValidatorForm. On the first one I get a null
pointer exception on the getProperty(...) and on the latter I get
ClassCastExcpetion. I am not sure what I am doing. But, can someone provide
an explanation or example. I've got a better understanding of the
DynaActionForm. Now, I need some help with DynaValidatorActionForm and
DynaValidatorAction. Also, why the two different DynaValidator classes. What
are the differences between the two besides logging?

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws



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




connection pool not refreshing

2002-04-04 Thread Johannes Wolfgang Woger

Hi,
I have a small struts application that
writes into and reads from an InterBase
Database via an interclient jdbc driver.
I tried both PoolMan and the DataSource
provided by ActionServlet itself.

In both cases the real state of the database
is not shown up in the application if the table
was altered manually with isql (like sqlplus in oracle)
DataSource refreshes after Tomcat was restarted
but PoolMan does not. The cacheEnabled is false
and if I set it true and set the cacheRefrechInterval to 10
poolman's log-file tells me that is is refreshing.
Nevertheless the data from SELECT * FROM myTable
stay the same. Only input from the struts-application is
shown.
If this is a normal behavior how will I intraduce already
existing data to the application ?

I am using tomcat 402 and poolman 2.1-b1
what can I do?

Wolfgang




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




Re: Urgent: xml with struts

2002-04-04 Thread Louis Leung

you can do that in the action class


Yugandhar_Reddy wrote:

>  Hi,Can anyone tell me how can we make use of xml with strutscan
> we use struts for converting the xml to valueObjects(java class which
> hold the set and get methods for the each xml tag) and again
> valueObjects to xml??Thanks in
> advance,Yug***
>
> This e-mail (including any attachments) is intended for the sole use
> of the intended recipient/s and may contain material that is
> CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance
> by others or copying or distribution or forwarding of any or all of
> the contents in this message is STRICTLY PROHIBITED. If you are not
> the intended recipeint,please contact the sender by e-mail and delete
> all copies; your co-operation in this regard is appreciated.
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>


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




Re[2]: At wits end, questions JRun, Oracle9ias

2002-04-04 Thread Rick Reumann

Thanks for the feedback Mark. Actually we are using 9ias here also. (I
just had JRun running locally since it was smaller on my little
machine. Now I have Tomcat also so I really don't need to use both,
but thought I'd just try to get it to work ok under JRun). Is there
anything 'special' or 'quirky' that I need to know getting this to run
under Oracle9ias? I'm actually going to move some struts stuff over
there that was working under Tomcat right now and see how it works.

On Thursday, April 4, 2002, 9:41:05 AM, Mark wrote:

GM> My short answer to you is, "Shit-can JRun."  My team is developing
GM> a very complex web-based B2B/B2C/Maintenance application for
GM> VoiceStream Wireless. We are using Struts (now) 1.1b-1 (and the
GM> migration from 1.0.2 was very problematic!), Apache webserver on
GM> Unix, and Oracle 8i as the integration tier.  We started out using
GM> JRun 3.1 and had so many problems with it (from huge memory leaks
GM> to configuration nightmares) that we have abandoned it and are
GM> migrating to Oracle9ias.  Our preliminary exposure to 9ias has
GM> been very positive.

GM> Mark

GM> -Original Message-
GM> From: Rick Reumann [mailto:[EMAIL PROTECTED]]
GM> Sent: Wednesday, April 03, 2002 8:51 PM
GM> To: Struts Users Mailing List
GM> Subject: At wits end, questions JRun, Oracle9ias


GM> Strutsters,

GM> I've been playing around with struts on my local machine here at work
GM> under Tomcat and everything is fine. In another local environment I've
GM> been using JRun for some applications and I'd like to get the sample
GM> app I was working under Tomcat to work under JRun. I'm not having any
GM> luck. I've been searching these archives and whatever I could find but
GM> I'm still stuck.

GM> Here's the deal. I have a really really watered down basic app in a
GM> directory called 'utilities' in the tomcat webapps folder. I now took
GM> this whole directory and copied it into the default path for where I
GM> have other JRun apps. ( I configured JRun to point to this new
GM> application and even configured the servlet mapping). If I try to go
GM> right to the page 'payrollChangeForm.jsp' I get an error that others
GM> have gotten (not necessarily with JRun):

GM> Exception thrown processing JSP page.
GM> javax.servlet.jsp.JspException: Cannot find ActionMappings or
GM> ActionFormBeans collection
GM> at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:781)
GM> at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481
GM> {cut}...

GM> Now, I'm not sure what cause this error since the same files are
GM> working fine under Tomcat. Another thing messed up which might help
GM> some of you debug is I also have an index page with a simple link on
GM> it that calls the action :
GM>  forward="/formsStruts/test.jsp">
GM> 

GM> When this link is hit, I get a nice 500 Internal Error page with:

GM> null
GM> java.lang.NoSuchMethodError
GM> at org.apache.commons.digester.Digester.parse(Digester.java:859)
GM> at
GM> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1274)
GM> at
GM> org.apache.struts.action.ActionServlet.init(ActionServlet.java:461)


GM> What else do I need to get this running successfully under JRun? The
GM> installation instructions with Struts mention the taglib issues but I
GM> don't think this is really related to that. Couple comments: JRun is
GM> pointing to the directory for this application on another network
GM> directory. This means my local classpath that points to some XML xerces
GM> stuff I have on my local classpath won't be valid so I put the
GM> following files in my applications lib directory xmlParserAPIs.jar and
GM> xercesImpl.jar. Somehow I think this is a parser issue or something because
GM> if I
GM> remove this file and then click on the link I'll get:

GM> org/xml/sax/helpers/DefaultHandler
GM> java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
GM> at java.lang.ClassLoader.defineClass0(Native Method)


GM> I'm just guessing here but if the parsing isn't taking place correctly
GM> that might explain the first problem of when I try to go straight to
GM> the form.jsp page and get the "Cannot find ActionMappings or
GM> ActionFormBean collections' error, since maybe it can't parse the
GM> struts-config.xml?

GM> Any ideas what is wrong? I'm also concerned because I want to push for
GM> using struts here at work but I know they'll have issues if it's going
GM> to be hard to configure it to get it to work under Oracle9ias as well.
GM> Are struts apps easy to configure under Oracle9ias as well? I didn't
GM> think I'd have this problem with JRun so once I tackle that hurdle I
GM> hope tackling the next one won't be as bad.

GM> Thanks for any help.



-- 

Rick
mailto:[EMAIL PROTECTED]

"Maybe in order to understand mankind, we have to look at the word
itself: 'Mankind'. Basically, it's made up of two separate words -
'mank

RE: Problem with Struts and 2.3 Filters

2002-04-04 Thread Arnaud Heritier

Do you have correctly ordered your tags in the web.xml
The error informs you that you don't respect the dtd.
You must write your web xml with the order :

(icon?,
display-name?,
description?,
distributable?,
context-param*,
filter*,
filter-mapping*,
listener*,
servlet*,
servlet-mapping*,
session-config?,
mime-mapping*,
welcome-file-list?,
error-page*,
taglib*,
resource-env-ref*,
resource-ref*,
security-constraint*,
login-config?,
security-role*,
env-entry*,
ejb-ref*,
ejb-local-ref*)

I think you should check again your web.xml

arno


> -Message d'origine-
> De:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Date: jeudi 4 avril 2002 10:20
> A:[EMAIL PROTECTED]
> Objet:Problem with Struts and 2.3 Filters
> 
> Content-Transfer-Encoding: 7bit
> 
> Hi folks,
> 
> I am currently endeavouring to add Servlet 2.3 filtering (SiteMesh 1.3,
> in fact) to a Struts 1.0.2 application - but having no luck. I have
> searched the mailing list archives and can find no reference to this
> combination.
> 
> I have set up inside one webapp folder of Tomcat 4.0.3 a Struts
> application which works correctly if it has the Struts application
> web.xml file in WEB-INF.
> 
> Then I have copied into that same webapp directory a SiteMesh
> application. This also works correctly if it has the SiteMesh
> application web.xml file in WEB-INF (moving the Struts web.xml aside for
> now).
> 
> However, if I add the SiteMesh elements ( and 
> plus some taglibs) to the web.xml of the Struts application it fails.
> 
> In catalina.out I get:
> ---
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.3
> PARSE error at line 111 column 11
> org.xml.sax.SAXParseException: The content of element type "web-app" 
> must match "(icon?,display-
> name?,description?,distributable?,context-param*,filter*,filter-
> mapping*,listener*,servlet*,servlet-mapping*,session-
> config?,mime-mapping*,welcome-file-list?,error-
> page*,taglib*,resource-env-ref*,resource-ref*,security-
> constraint*,login-config?,security-role*,env-entry*,ejb-
> ref*,ejb-local-ref*)".
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.3
> ---
> 
> and the aplication does not work (file not found errors in the browser).
> 
> Line 111, column 11 is the very end of the file. I have run Tidy over
> web.xml to check for any XML errors and there are none according to that
> tool. 
> 
> If I comment out the SiteMesh elements and restart Tomcat then the
> Struts application starts working again.
> 
> If I comment out the Struts elements and restart Tomcat then the
> SiteMesh application starts working again.
> 
> Can anyone enlighten me as to why the XML parser thinks there is a
> problem? I have searched the web for published examples of web.xml that
> include filter and servlet definitions and they appear no different in
> spirit to what I have...
> 
> Any help is much appreciated!
> 
> Thanks,
> 
> Chris
> 
> 
> *
> This email and any files transmitted with it may be confidential and
> privileged.  It is intended solely for the use of the individual or
> parties to whom it is addressed. If you have received this email in
> error please forward it to [EMAIL PROTECTED] and delete all
> copies of this message immediately. Thank you.
> *
> << Fichier: ATT00014.txt>>


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




Re: How do I use Struts tags in JSP and HTML tags?

2002-04-04 Thread Louis Leung

the html tag one should be fine

when using the jsp tag with struts tag, it won't work.  What you need to do is
something like this



<% String currentUseCase = form.getCurrentUseCase(); %>



of course, the action form then needs to exists in the scope that is specified by
the bean:define tag


snurre1000 wrote:

> Hi,
> I hop someone can help me with the following.
> I would like to do something like this:
>  flush="true"/>
>
> but I want to take the value from a bean, like this:
>
> "  flush="true"/>
>
> I have the same problem when I want to use Struts tags in HTML tags.
> Instead of:
> 
> I woild like to do something like:
> ">
> How can I do this?
>
> Thanks, Ulrika
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Re: Forward from one webapp to another

2002-04-04 Thread Sandeep Takhar

can you use cookies?

Sandeep
--- Arnaud Chiaberge <[EMAIL PROTECTED]>
wrote:
> Hi all,
> 
> I'm looking for a way to forward control from one
> webapp to another with
> passing
> some parameters.
> What I actually have is a webapp A, where a user
> first authenticate, and
> then does his job.
> Later, the user can switch, via an html link, to a
> another webapp B. The
> fact
> is that I don't want the user to authenticate again
> in this webapp B so, for
> the moment I'm
> using a REDIRECTION in the webapp A action with some
> URL parameters: login,
> password
> (argh, they are in cleartext !)
> 
> To better understand what I mean, here's how I'm
> currently doing :
> 
> BrowserServer
> |   
>|
> |GET  switchwebapp.do   |
> | >  | webappA
> |   
>|
> |   
>|
> |   REDIRECT to webapp B |
> | <  | webappA
> |   
>|
> |   
>|
> |   GET action.do of webapp B |
> | >  | webappB
> |   
>|
> |   
>|
> |   OK - Result page |
> | < | webappB
> 
> 
> But, what I'D LIKE TO HAVE is this :
> 
> Browser   Server
> |   
>|
> |GET  switchwebapp.do   |
> | >  | webappA
> |   
>|   |
> |   
>|   | pass user's
> parameters
> |   
>|   |
> |   
>|   v
> |   
>| getting in webappB
> |   
>| get user's
> credentials
> |   OK - Result page |
> | <  | webappB
> 
> 
> Is it possible to do so with Tomcat-Struts ?
> 
> Thanks in advance for any contribution/idea about
> this issue.
> 
> Regards,
> 
> Arnaud Chiaberge
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




bean message and name property (1.0.2)

2002-04-04 Thread Ivan Siviero

Hi.

I have downloaded the latest struts stable version (1.0.2 ) and noticed the
 tag misses the attributes 'name' and 'property' which allow
to get a message from ApplicationResources when the key is specified in a
bean property.
i.e.:
 with strust 1.0 i was able to do the following

 

how can i get the same result with struts 1.0.2 ?
I'd like to avoid downloading the nightly  builds.

thanks
Ivan.


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




Re: Preventing Caching of all pages

2002-04-04 Thread Jim Crossley

I wasn't aware of the  solution -- is that new with Struts
1.1?

Regardless, we solve this problem by overriding the process method of
the ActionServlet and setting some headers prior to calling super.
Something like this:

protected void process(HttpServletRequest request,
   HttpServletResponse response)
throws java.io.IOException, ServletException
{
// We're dynamic, so caching is disabled
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", "-1");

super.process(request, response);
}

That works for all the popular browsers.  I think it's only the
"Expires" that actually works, though.  The others are there due to
programmer superstition...  :-)

-- Jim

Antony Stace <[EMAIL PROTECTED]> writes:

> Hi Folks
> 
> I want to prevent caching of all pages in my webapp.  What is the easiest way for me 
>to append a dummy variable onto
> all the addresses which appear in the users browsers address bar, ie
> 
> http://localhost/testWebApp?rand=7A98SDF7ASD9YFBA9D8S7FBASDBFASBFASDFSADFASD
> 
> I don't want to rely on setting
> 
> 
> nocache
> true
> 
> 
> in my web.xml file since I have read in quite a few places that some browsers do not 
>respect the 
> 
> 
> 
> directive which is sent in a http message from a server to browser.
> 
> 
> 
> Cheers
> 
> Tony
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

-- 
Jim Crossley
http://www.lads.com/~jim

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




RE: No action instance for path

2002-04-04 Thread Dimitar Stavrakov


You forgot to put the ".do" at the end of the action : 

 


Should do it. 

Regards, 

Dimitar

-Original Message-
From: kelly lan [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 04, 2002 4:36 AM
To: Struts User
Subject: No action instance for path 

Hi,
In my logon page ,I logon with user name and user
password,when I submit I get the error:

No action instance for path /verifyAction could be
created
This is my logon page:

..



   



UserName:  
  
  
   


Password:

 
  
  
  

   
 

  

  

 
   

This is my struts_config.xml:










  


  
  


 

  


  
  


 
 
 


  
  


  
  



   










   

















  



Thank for you!



__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: DynaValidatorActionForm/DynaValidatorAction

2002-04-04 Thread David Winterfeldt

DynaValidatorForm just extends DynaActionForm and
overrides the validate method.  From a discussion on
the dev list I was under the impression that it would
work the same, but I didn't have time to test them or
make examples.  I was rushed to get them into the
beta.  If you can't just replace DynaValidatorForm in
a working DynaActionForm, could you file a bug in
bugzilla so it doesn't get missed and definitely gets
fixed for Struts 1.1?

http://nagoya.apache.org/bugzilla/

ValidatorForm & DynaValidatorForm use
mapping.getAttribute() to retrieve the form

DynaActionForm & DynaValidatorActionForm use
mapping.getPath() to retrieve a form

David

--- Phase Web and Multimedia <[EMAIL PROTECTED]> wrote:
> Can someone please give me a snippet of code that
> uses these classes
> properly. I have found no examples. Perhaps because
> it is new, maybe. But, I
> have tried to use it like the DynaActionForm in my
> form-bean declaration and
> I have tried to cast it from the ActionForm form in
> my Action class to both
> DynaValidatorActionForm and DynaValidatorForm. On
> the first one I get a null
> pointer exception on the getProperty(...) and on the
> latter I get
> ClassCastExcpetion. I am not sure what I am doing.
> But, can someone provide
> an explanation or example. I've got a better
> understanding of the
> DynaActionForm. Now, I need some help with
> DynaValidatorActionForm and
> DynaValidatorAction. Also, why the two different
> DynaValidator classes. What
> are the differences between the two besides logging?
> 
> Brandon Goodin
> Phase Web and Multimedia
> P (406) 862-2245
> F (406) 862-0354
> [EMAIL PROTECTED]
> http://www.phase.ws
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Tab update question again (this time more documentation)

2002-04-04 Thread theron . kousek


This is the "Tabbed Pane" portion of my application:



  
 Details
  
  
 Link to
Employee
  



Both methods share the same form (which is defined at session scope)...
How can I 'force' the form's object to be loaded when I click on either of
these links?Right now when I go back and forth, I lose all the data I
typed into the screen.   I "need" to do something like a submit I guess
when flipping back and forth between tabs...How can I force a submit to
occur?

thanks in advance,
Theron


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




Re: No action instance for path

2002-04-04 Thread David M. Karr

> "kelly" == kelly lan <[EMAIL PROTECTED]> writes:

kelly> Hi,
kelly> In my logon page ,I logon with user name and user
kelly> password,when I submit I get the error:

kelly> No action instance for path /verifyAction could be
kelly> created
kelly> This is my logon page:

kelly> ..
kelly> 

Are you mapping to ActionServlet using extension mapping, or path mapping?
This is specified in your "web.xml" file.  if you're using extension mapping,
your "action" attribute in "html:form" should be "/verifyAction.do".

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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




DynaValidatorActionForm and DynaValidatorForm

2002-04-04 Thread Phase Web and Multimedia

Can someone please give me a snippet of code that uses these classes
properly. I have found no examples. Perhaps because it is new, maybe. But, I
have tried to use it like the DynaActionForm in my form-bean declaration and
I have tried to cast it from the ActionForm form in my Action class to both
DynaValidatorActionForm and DynaValidatorForm. On the first one I get a null
pointer exception on the getProperty(...) and on the latter I get
ClassCastExcpetion. I am not sure what I am doing. But, can someone provide
an explanation or example. I've got a better understanding of the
DynaActionForm. Now, I need some help with DynaValidatorActionForm and
DynaValidatorAction. Also, why the two different DynaValidator classes. What
are the differences between the two besides logging?

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


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




RequestUtils.populate ( BeanUtils.populate)

2002-04-04 Thread Peter Pilgrim


In Struts 1.1

RequestUtils.populate ( BeanUtils.populate) does not seem to be populate
my action forms which explicityly have a mapped attributes.

I defined a bean like this

public class DerivativesForm  extends ActionForm { ...

 private  Map mapItems = new TreeMap();  // Associate  a currency to an item

   public CcyItem getCurrenyItem( String ccy ) {
  return (CcyItem)mapItem.ge( ccy );

}

public class  CcyItem { ...
 public BigDecimal getAmount()  { ... }
 public String getAmountAsText()  { ... }
 public void setAmountAsText( String text )  { ... }

}

In my JSP I wrote a HTML Input Text field like so



but it does not work because I think that Struts 1.1 does not populate mapped 
properties!

Is it me or is it Struts?
Can someone else verify that it is working?

--
Peter Pilgrim   ++44 (0)207-545-9923

 Swamped under electronic mails


--

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.



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




RE: lost form data when validate returns errors]

2002-04-04 Thread mtStruts




__
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/

--- Begin Message ---


Larry, 

Thanks for your prompt reply :)  I tried to implement your suggestion using the 
reset() method in the form bean which works, but ONLY when the form element is not 
trying to get the properties from a bean on the page.  

For instance if I'm presenting a form the user may be changing existing info or 
entering info for the first time.  

1) If the user is updating - the form defaults to their old info on all of the fields 
if even one is erroneous.  

2) If the user is entering information for the first time the data gets erased 
completely - even if the form bean is in scope because the form elements are reading 
the empty fields of the bean.

To solve the second problem I could output different form fields based on whether the 
user is updating or adding.  However, this will not solve my first problem.  

Any additional thoughts?

Thanks in advance, 
mturner

"Maturo, Larry" <[EMAIL PROTECTED]> wrote:

>Hi,
>
>What we do is put the form beans in the session, but each
>one has a clear method we call before filling in data on
>the form.  This keeps the data from being lost, and also
>keeps it from showing up when not wanted.  The clear just
>sets the member variables in the form bean back to nothing.
>
>-- Larry Maturo
>   [EMAIL PROTECTED]
>
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, April 03, 2002 11:04 AM
>To: "Struts Users Mailing List"
>Subject: Re: lost form data when validate returns errors
>
>
>Dan, 
>
>I am having the exact same problem!  In my struts-config.xml I have my
>formBeans set to "request" scope, so I suspect that this causes the
>information in my form to disappear.  I don't want to have the bean persist
>for the whole session because users will be coming back to this page.  Have
>you solved this problem already?
>
>Thanks, 
>mturner
>
>> I'm having the problem of losing form data when my action class returns 
>> errors.  The error displays properly, but I lose all the form data.
>
>> Looking at older posts, I've seen the same problem, but haven't seen a 
>> fix or workaround yet.  I've included the relevant code snippets.
>
>
>
>
>__
>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/
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>


__
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/



--- End Message ---

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


Re: logic:iterate problem

2002-04-04 Thread David M. Karr

> "Jerome" == Jerome Josephraj <[EMAIL PROTECTED]> writes:

Jerome> Hi,
Jerome> My logic:iterate looks like this

Jerome>  property="lstEmployees" > 
Jerome> 
Jerome>  
Jerome>name="searchEmpRes" property="firstName"/> 
Jerome>   
Jerome>name="searchEmpRes" property="lastName"/> 
Jerome>   
Jerome> 

Jerome> lstEmployees is a vector defined in the form and has Employee
Jerome> objects

Jerome> The problem is the iterate is not going to line 1. There are
Jerome> values in lstEmployees. Any help on this is much appreciated.

Just in case, when you say "not going to line 1", you mean that line, including
any of the lines inside the "logic:iterate" element, are not being emitted into
the output?

In your Action that forwarded to this page, are you verifying the attribute
name in the form object, and verifying it really has elements?

If you still can't fix it, this would be a good opportunity to set up your
debugger to step into the Struts code, the IterateTag in particular.  This
likely won't find any problems in the IterateTag, but it might give you a clue
why it isn't finding your elements.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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




RE: No action instance for path

2002-04-04 Thread Dimitar Stavrakov

You forgot to put the ".do" at the end of the action : 

 


Should do it. 

Regards, 

Dimitar

-Original Message-
From: kelly lan [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 04, 2002 4:36 AM
To: Struts User
Subject: No action instance for path 

Hi,
In my logon page ,I logon with user name and user
password,when I submit I get the error:

No action instance for path /verifyAction could be
created
This is my logon page:

..



   



UserName:  
  
  
   


Password:

 
  
  
  

   
 

  

  

 
   

This is my struts_config.xml:










  


  
  


 

  


  
  


 
 
 


  
  


  
  



   










   

















  



Thank for you!



__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Action Trouble : Servlet Error: Connection reset by peer: socket write error

2002-04-04 Thread Struts Developer

I believe I have discovered the reason for this error. It appears that an 
actionForm declaration in my struts-config.xml file was missing. At least 
when I added the missing form-bean to the configuration the error goes away.

Thanks anyway
Mark


>From: "Struts Developer" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Action Trouble : Servlet Error: Connection reset by peer: socket 
>write error
>Date: Wed, 03 Apr 2002 14:11:52 -0600
>
>All -
>
>I am getting the log messages attached at the end of this e-mail when my
>action is initally instantiated. Once these messages post everything works
>fine. I am clueless as to what is causing this problem. Any help,
>suggestions, or rude comments welcome!
>
>regards,
>mark nichols
>
>Struts version: 1.0
>IDE: WebSphere Studio Application Developer 4.0
>JSP spec: 1.1
>Servlet Spec: 2.2
>Favorite Ginger Ale: Vernor's
>
>
>== START of messages ===
>[02.04.03 13:30:36:568 CST] 2c8da636 WebGroup  I SRVE0091I: [Servlet
>LOG]: action:   Creating new Action instance
>[02.04.03 13:35:51:121 CST] 2c822636 WebGroup  X Servlet Error:
>Connection reset by peer: socket write error: java.net.SocketException:
>Connection reset by peer: socket write error
>   at java.net.SocketOutputStream.socketWrite(Native Method)
>   at java.net.SocketOutputStream.write(SocketOutputStream.java:95)
>   at com.ibm.ws.io.Stream.write(Stream.java:26)
>   at com.ibm.ws.io.WriteStream.write(WriteStream.java:108)
>   at com.ibm.ws.http.ResponseStream.writeChunk(ResponseStream.java:303)
>   at com.ibm.ws.http.ResponseStream.write(ResponseStream.java:143)
>   at com.ibm.ws.io.WriteStream.flush(WriteStream.java:129)
>   at
>com.ibm.servlet.engine.http11.HttpConnection.flush(HttpConnection.java:384)
>   at com.ibm.servlet.engine.srp.SRPConnection.flush(SRPConnection.java:242)
>   at
>com.ibm.servlet.engine.srt.SRTOutputStream.flush(SRTOutputStream.java:41)
>   at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:251)
>   at
>com.ibm.servlet.engine.srt.BufferedWriter.flushChars(BufferedWriter.java:341)
>   at 
>com.ibm.servlet.engine.srt.BufferedWriter.flush(BufferedWriter.java:322)
>   at
>com.ibm.servlet.engine.srt.BufferedWriter.flushBuffer(BufferedWriter.java:445)
>   at
>com.ibm.servlet.engine.srt.SRTServletResponse.flushBuffer(SRTServletResponse.java:579)
>   at
>com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer(HttpServletResponseProxy.java:116)
>   at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:235)
>   at welcomeContent_jsp_1._jspService(welcomeContent.jsp   :22)
>   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)
>   at 
>org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
>   at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
>   at
>com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:159)
>   at
>com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:286)
>   at
>com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:106)
>   at
>com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
>   at
>com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
>   at
>com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
>   at
>com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:499)
>   at
>com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:278)
>   at
>com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:105)
>   at
>com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67)
>   at
>com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:123)
>   at
>com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
>   at
>com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
>   at
>com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
>   at
>com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
>   at
>com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313)
>   at com.ibm.ws.http.HttpConnection.

RE: Connection pool behaviour

2002-04-04 Thread Zeltser, Mark

Both datasources should reflect database change when tomcat restarted. You
can configure poolman to automatically refresh cache by configuring the
appropriate attributes in configuration file ( e.g. cacheEnable, cacheSize,
cacheRefreshInterval) You can't configure struts Datasource for automatic
refresh.

Mark.

-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 2:55 AM
To: [EMAIL PROTECTED]
Subject: Connection pool behaviour


Subject: Connection pool behaviour
From: "Johannes Wolfgang Woger" <[EMAIL PROTECTED]>
 ===
Hi,
I notized that both PoolMan and
struts-DataSource do not refresh their
output from an SELECT * FROM MYTABLE
if mytable was changed by an other
application.
Struts-DataSource does refresh when
Tomcat is restarted, PoolMan does not.
If this is a normal behaviour, how will I
introduce megatons of existing data into
my application ?
I am sure there is a simple explanation.

Wolfgang



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.



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




how to add data into a form?

2002-04-04 Thread yanming lu

Here is what i'd like to do:

page 1 has form with ID and NAME. The NAME field is hidden so it is blank. 
This form is configured as a java bean and set in the struts-config.xml 
file.

when user click the 'save' button, the id of the form is carried to next 
page, page 2. But in the between, I look at the dababase and find the name 
base on this id and call the setNAME() function to set the name value in the 
same form. But this NAME does not appear on the second form. Why?

yan

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




conditional iterate

2002-04-04 Thread Peter Cnops

Hi,

I have two problems using Struts 1.0.2.
First problem
I use two beans on a html-page: an articlebean and a divisionbean.

This is part of my page:


"
selected>



Instead of "searchvalue" I want to include the value of , while the iterate is on
the divisionbean.

How do I do this?


Second problem

I do an iterate where "companyname" has the same value for several lines in
orderlinebean. However, I just want to write lines with a certain name only
once, witch is a conditional loop: as long as articlename has the same
value, don't write the line more then one time.

part of the html-page:







I tried to include a logic:match with conditional value =  but I did not manage to get the
property into a string. How can I do this?


Peter Cnops
Project Management - MediaTower
Digital Photography - PrePress - Digital Printing - Internet Services
Veldkant 29, B-2550 Kontich
Tel. 03 450 81 00 - Fax 03 450 81 09
http://www.mediatower.be



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




[ANNOUNCE] struts-layout 0.4 released

2002-04-04 Thread jnribette

Hi,

I'm proud to announce the release of struts-layout 0.4. Struts-layout is a 
specialized and open source taglib for struts that allows fast UI development 
by providing tags to insert usual components (form, fields, lists etc.) in a 
page. The tags deal with the layout and the developer don't have to write HTML 
code any more.

struts-layout 0.4 supports value formatting and the display of input fields 
read-write or read only according to the user profile or the type of action 
done (creation of data, edition of data, inspection of data).

For more information about struts-layout please visit  
http://struts.application-servers.com

Regards,

Jean-Noel Ribette

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




Re: How to avoid a separate .jsp page for body definition when us ing Templates?

2002-04-04 Thread Jens Viebig

You don't need tiles for this issue
Just use direct='true' in your template tag.




   
  Your body goes here
   



- Original Message -
From: "Wellie W. Chao" <[EMAIL PROTECTED]>
Newsgroups: Struts
Sent: Wednesday, April 03, 2002 6:38 PM
Subject: RE: How to avoid a separate .jsp page for body definition when us
ing Templates?


> Hi Alex,
>
> I agree with Mark. I had your same problem a while back and decided to
> switch to Tiles, which is much more flexible. For each page, I have an
entry
> in struts-config.xml and one in tiles-defs.xml. A really simple page looks
> like this:
>
> struts-config.xml:
> 
>
> tiles-defs.xml:
>  path="/security/authIndex.jsp"/>
>
> /security/authIndex.jsp:
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> 
>   
> 
> 
>   
> 
> 
>   
> 
> 
>   
> 
>
> You could put whatever you wanted in /security/authIndex.jsp. Also, you
can
> have the site.page.security.authIndex inherit from a base layout if you
> wanted to. You no longer need two files per page. It's one master layout
> file plus a file for each logical content page (a page body).
>
> -Original Message-
> From: Zeltser, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 11:21 AM
> To: 'Struts Users Mailing List'
> Subject: RE: How to avoid a separate .jsp page for body definition when
> us ing Templates?
>
>
> Hi Alex,
>
> That was one of the reasons I used Tiles. You can put all your page
> definitions in tiles-defs.xml. This single configuration files will
replace
> all your page.jsp(s).
>
> Mark.
>
> -Original Message-
> From: Alex Paransky [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 11:19 AM
> To: 'Struts Users'
> Subject: How to avoid a separate .jsp page for body definition when
> using Templates?
>
>
> I am currently using Templates (not Tiles) to layout our pages.  While
> general components such as menu, header, footer are well defined, same for
> all pages, and are included from a global single location, the body is
> always different.  So, for every page, we wind up with 2 pages.
>
> page.jsp - uses the  pageContent.jsp - used from page.jsp to define the body content
>
> This is quite cumbersome.  Is there a way to put the layout definition and
> the "contents" of at least the body into the same page?  Other things such
> as the title, and help text change on a page  by page basis, so it would
be
> nice to package these two items in to the same page as well.
>
> Is this easier done with Tiles?
>
> Thanks.
>
> -AP_
> http://www.alexparansky.com
> Java/J2EE Architect/Consultant
> http://www.myprofiles.com/member/view.do?profileId=127
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
--
> --
> This message is intended only for the personal and confidential use of the
> designated recipient(s) named above.  If you are not the intended
recipient
> of this message you are hereby notified that any review, dissemination,
> distribution or copying of this message is strictly prohibited.  This
> communication is for information purposes only and should not be regarded
as
> an offer to sell or as a solicitation of an offer to buy any financial
> product, an official confirmation of any transaction, or as an official
> statement of Lehman Brothers.  Email transmission cannot be guaranteed to
be
> secure or error-free.  Therefore, we do not represent that this
information
> is complete or accurate and it should not be relied upon as such.  All
> information is subject to change without notice.
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Re: Re[2]: Struts Basic/Pooling DataSource Vs Poolman

2002-04-04 Thread Martin Samm

go to sourceforge.net and search for it

On Thursday 04 Apr 2002 4:22 am, you wrote:
> On Tuesday, April 2, 2002, 7:42:27 PM, someone wrote:
> > How is Poolman better than the database connection manager
> > included with struts? Speed? Reliablity?
>
>   I'm curious about this also. Also, where can I get Poolman and
>   documentation if the site is down>  I'm looking for fairly robust
>   connection pooling, it doesn't have to be super industrial strength
>   though, so maybe the one with struts will be fine?

-- 
Martin Samm
[EMAIL PROTECTED]

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




Urgent: xml with struts

2002-04-04 Thread Yugandhar_Reddy



Hi,
 
Can anyone tell me 
how can we make use of xml with struts
can we use struts 
for converting the xml to valueObjects(java class which hold the set and get 
methods for the each xml tag) and again valueObjects to 
xml??
 
Thanks in 
advance,
Yug
 
 

***

This e-mail (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or  copying or distribution or forwarding of any or all of the  contents in this message is STRICTLY PROHIBITED. If you are not the intended recipeint,please contact the sender by e-mail and delete all copies; your co-operation in this regard is appreciated.


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


Re: Perhaps OT, clearing history

2002-04-04 Thread Matt Raible

Like all Javascript - you might see some inconsistencies b/w browsers,
BUT

location.replace("url you want in history");



<[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> 
> In working with the struts architecture, since there's an awful lot of

> actions which do JSP forwards, I notice it creates a ton of pages in
> history that the user can do forward/back in...Is there a
JavaScript
> call or something I can add to the JSP files which clear our the page 
> history?
> 
> We're doing an application where this would be ok to do since we have 
> an access-menu at the top of the page which will allow us to go
anywhere in
> the system that we need to go... Is there something that is
compatible
> with IE and netscape to clear out the history so they can never really

> go "back" more than one level?
> 
> thanks in advance,
> Theron
> 
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail: 
> 
> 


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




HTML and JSP tags with Struts tags

2002-04-04 Thread snurre1000

Hi, 
I hope someone can help me with the following:
I would like to do something like this:



but I want to pick the parameter from a Struts tag like:

" flush="true"/>

I have the same problem here:


but I would like to pick the image from a bean like:

"" 
width="60" height="60">

Thanks, Ulrika




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




Re: [AM] Agile Modeling for web (Struts)

2002-04-04 Thread Neil Pitman

This is a thread that I started on ([EMAIL PROTECTED])  They know 
about modelling but don't seem to know much about Struts.  maybe it will 
work better here.  I am interested in modeling STruts in UML.
--

Jon,

I guess that if I knew the answers to your questions or even the right
questions to ask I wouldn't be asking the list.

There are (at least) three interesting behaviour aspects:
1) submit behaviour in response to a click;
2) navigation in response to a click (and perhaps a function of the
results of the submit);
3) HTML painting.

The points of departure are, respectively:
1) Action::perform()
2) Action::perform() and struts_config.xml
3) JSP and tags


I have the sitemap as a state diagramme.  I can map each page (state) to
a class (JSP); compose the page of Tags and Actions.  The Forwards and
are too significant to put only in sequence diagrammes I will probably
use an association.  I'm not sure about the where to put the logical XML
   name versus the Java name.  I suppose that the correct way would be to
put an intermediate UML class representing the indirection in the
.  I'll assume that it won't be a problem for this system.

I still see a hole in modelling the use of session and request data.
There are implicit dependencies between the suppliers and consumers of
the objects stored there.  My understanding is that they are used as a
blackboard.  I can impose a formality, but I don't care to solely for
the reason of modelling.

--

I'm not really concerned about generation of code (yet), although I
spent 2 years in code generation technology.  My system is small and I
really would like to understand the dynamics first.  By the time I
deliver this system, I will know the patterns to automate.  The
ruminations above are certainly too loose to generate from. (Strangely,
my client is more interested in me delivering his site than building
cool tools.)

I'll report back.


Jon Kern wrote:

 > Isn't one of the interesting things that you'd like to visualize the
 > "control flow" contained in the strutsconfig.xml file? Navigation between
 > JSP pages, what happens when you "click" a button, etc.? Is it naive 
of me
 > to think one might want to model this in sync'd, two-way fashion? Or, 
is it
 > too specific to basic frameworks (like struts)?
 >
 > Are the web client end of the development artifacts difficult to deal 
with
 > from a modeling and behavioral view? What about server-side 
auto-generation
 > of JSP content and behavior? That could be a real challenge .
 >
 > I would be interested in the requirements that might come out of the 
answers
 > to your request. Maybe I can help implement something agile and 
useful in a
 > certain tool.
 >
 >
 > -- jon
 >
 >
 >
 >
 >
 >>-Original Message-
 >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 >>Sent: Wednesday, April 03, 2002 9:45 AM
 >>To: [EMAIL PROTECTED]; .at artifact
 >>Subject: [AM] Agile Modeling for web (Struts)
 >>
 >>
 >>Hello all,
 >>
 >>I am developping a web application using Apache Struts.  It is my first
 >>real Java / web project so there are a bunch of new technology artifacts
 >>to deal with (JSP / servlets, beans, javascript, applets, Actions,
 >>ActionForms, forwarders, tags, maps and XML fragments,  well you know
 >>them).  Yes, welcome to the late 90's.
 >>
 >>As a non-web modeler, I can model these things as classes and go from
 >>there.  I have modeled the page navigation with states, and that seems
 >>simple and useful.  A class diagram works well for the entity model.
 >>Now the JSP's, tags, Actions and ActionForms are classes, but that's not
 >>the interesting part.  It's the connectivity and aggregation between
 >>them that's interesting  (so I can write those wretched XML config 
files.)
 >>
 >>Anyone have a UML profile in their head for Struts?  A few agile
 >>pointers would be appreciated.
 >>
 >>Thanks
 >>
 >>--
 >>Neil Pitman
 >>[EMAIL PROTECTED]
 >>[EMAIL PROTECTED]
 >>+1.514.863.5465
 >>
 >>For more information about AM, visit the Agile Modeling Home Page
 >>at www.agilemodeling.com
 >>
 >>
 >>
 >>
 >
 > For more information about AM, visit the Agile Modeling Home Page at 
www.agilemodeling.com
 >
 > ==^
 > This email was sent to: [EMAIL PROTECTED]
 >
 > EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrKDA.bVDdGn
 > Or send an email to: [EMAIL PROTECTED]
 >
 > T O P I C A -- Register now to manage your mail!
 > http://www.topica.com/partner/tag02/register
 > ==^
 >
 >
 >


-- 
Neil Pitman
[EMAIL PROTECTED]
+1.514.863.5465


-- 
Neil Pitman
[EMAIL PROTECTED]
+1.514.863.5465


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




RE: No action instance for path

2002-04-04 Thread Alex Paransky

I am not an expert in Struts, but in my development I have been using the
.do extension when specifying any references to Struts actions from .jsp
pages, so my code would look like:



If you are using the .do extension method, try this.

-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/view.do?profileId=127

-Original Message-
From: kelly lan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 2:36 AM
To: Struts User
Subject: No action instance for path


Hi,
In my logon page ,I logon with user name and user
password,when I submit I get the error:

No action instance for path /verifyAction could be
created
This is my logon page:

..



  



UserName: 
  
  
   
   

Password:

 
  
  
  

  
 

  

  

 


This is my struts_config.xml:










  


  
  


 

  


  
  




 



  


  
  














   

















  



Thank for you!



__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: No action instance for path

2002-04-04 Thread Zeltser, Mark

What is your servlet mappings? If you have standard *.do mapped to action
servlet then you will need the following action="/verifyAction.do"

Mark.

-Original Message-
From: kelly lan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 5:36 AM
To: Struts User
Subject: No action instance for path


Hi,
In my logon page ,I logon with user name and user
password,when I submit I get the error:

No action instance for path /verifyAction could be
created
This is my logon page:

..



  



UserName: 
  
  
   
   

Password:

 
  
  
  

  
 

  

  

 


This is my struts_config.xml:










  


  
  


 

  


  
  




 



  


  
  














   

















  



Thank for you!



__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.



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




Struts html:link tag

2002-04-04 Thread regatta DeBlanc

How can I use the html:link tag to reference a page,
without trigerring the validation process.

e.g.



This will trigger the validate() operation in the
userAddForm and the perform() operation in
userAddAction, BEFORE displaying the page userAdd.jsp.

The problem here is that I have added a check in the
validate() operation so that it adds an ActionError if
the user did not fill in the username text box. But
this check is meant for when the user hits the submit
button, not when the page is first loaded. 

When referencing the page with:

how can I differentiate, in the ActionForm and Action
operations, between the case when the page is first
loaded and the case when the user hits the submit
button??

I know I can solve the problem by referencing the page
as follows:

but I want to try to do it the "Struts" way so that I
can load the page with templates that are derived in
the Action.



__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Struts & Websphere 3.5/4.0

2002-04-04 Thread Pruthee, Ranjan

Hello,
 
Does anyone know if single servlet model - Struts can have security concerns in 
Websphere 3.5/4.0? We need to provide role based security using the URIs. What are the 
downsides of it? 
 
Thanks so much,
-Ranjan



RE: RE: lost form data when validate returns errors

2002-04-04 Thread mtStruts

Larry, 

Thanks for your prompt reply :)  I tried to implement your suggestion using the 
reset() method in the form bean which works, but ONLY when the form element is not 
trying to get the properties from a bean on the page.  

For instance if I'm presenting a form the user may be changing existing info or 
entering info for the first time.  

1) If the user is updating - the form defaults to their old info on all of the fields 
if even one is erroneous.  

2) If the user is entering information for the first time the data gets erased 
completely - even if the form bean is in scope because the form elements are reading 
the empty fields of the bean.

To solve the second problem I could output different form fields based on whether the 
user is updating or adding.  However, this will not solve my first problem.  

Any additional thoughts?

Thanks in advance, 
mturner

"Maturo, Larry" <[EMAIL PROTECTED]> wrote:

>Hi,
>
>What we do is put the form beans in the session, but each
>one has a clear method we call before filling in data on
>the form.  This keeps the data from being lost, and also
>keeps it from showing up when not wanted.  The clear just
>sets the member variables in the form bean back to nothing.
>
>-- Larry Maturo
>   [EMAIL PROTECTED]
>
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, April 03, 2002 11:04 AM
>To: "Struts Users Mailing List"
>Subject: Re: lost form data when validate returns errors
>
>
>Dan, 
>
>I am having the exact same problem!  In my struts-config.xml I have my
>formBeans set to "request" scope, so I suspect that this causes the
>information in my form to disappear.  I don't want to have the bean persist
>for the whole session because users will be coming back to this page.  Have
>you solved this problem already?
>
>Thanks, 
>mturner
>
>> I'm having the problem of losing form data when my action class returns 
>> errors.  The error displays properly, but I lose all the form data.
>
>> Looking at older posts, I've seen the same problem, but haven't seen a 
>> fix or workaround yet.  I've included the relevant code snippets.
>
>
>
>
>__
>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/
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>


__
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/


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




Re: RES: JRun and struts problem worked out?

2002-04-04 Thread Rick Reumann

Thanks for trying to help. I'm still stumped.  I don't point to the
struts.jar anywhere within JRun, not on my system classpath, only
place is in the actually applications WEB-INF/lib directory. I've
stuck so much stuff in there now trying to get it to work with no
luck. I'd appreciate any other suggestions to try. Here's what's
currently in my app/WEB-INF/lib directory (I'm sure some of these I
don't need. I was just trying to take some out of Tomcat's default lib
directory seeing if that would help):

activation.jar
commons-beanutils.jar  
commons-validator.jar  
commons-collections.jar
commons-digester.jar   
commons-logging.jar
connector_util.jar 
core_util.jar  
crimson.jar
etomcat.jar
facade22.jar   
jakarta-regexp-1.2.jar 
jasper.jar 
jasper-runtime.jar 
mail.jar   
servlet.jar
struts.jar 
struts-validator.jar   
tomcat_core.jar
tomcat_util.jar
tomcat_modules.jar 
xalan.jar  



On Thursday, April 4, 2002, 7:47:19 AM, Gilson wrote:

GNDE>Look on struts.jar path, this file must to be on your
GNDE> WEBAPP\WEB-INF\LIB directory not in WEBCONTAINER\WEB-INF\LIB
GNDE> public directory. It error commonly occur when your WEBServer
GNDE> container find struts.jar in another directory from your
GNDE> CLASSPATH (the first occurrence of struts.jar found is used by
GNDE> WEBServer container for your WEBApplication). If the struts.jar
GNDE> found doesn't in your WEBAPP\WEB-INF\LIB directory therefore the
GNDE> STRUTS lost the class references. I did have this same problem
GNDE> and I resolved  it erasing falses struts.jar references from
GNDE> CLASSPATH that wasn't TRULY my WEBAPP\WEB-INF\LIB.  Try it, find
GNDE> all struts.jar and remove struts.jar false references... You
GNDE> don't need keep struts.jar in your CLASSPATH only put it in your
GNDE> Webapp\WEB-INF\LIB. If struts.jar doesn't is correctly
GNDE> installed in WEBAPP\WEB-INF\LIB directory STRUTS will not find
GNDE> your MESSAGE RESOURCE and STRUTS-CONFIG.XML files.
   
GNDE>Let me know if it worked out, ok !?

GNDE>Good Luck.

>> - Mensagem original -
>> De:   Rick Reumann [SMTP:[EMAIL PROTECTED]]
>> Enviada em:   quarta-feira, 3 de abril de 2002 21:00
>> Para: [EMAIL PROTECTED]
>> Assunto:  JRun and struts problem worked out?
>> 
>> gilson,
>> 
>> Hi, did you ever get that JRun/Struts problem worked out? I'm getting
>> the same error with JRun (and not using Tomcat)
>> "Cannot find ActionMappings or ActionFormBeans collection"
>> 
>> Please let me know what you did to resolve this problem. Thanks so
>> much.
>> 
>> -- 
>> 
>> Rick
>> mailto:[EMAIL PROTECTED]
>> 
>> "I bet a fun thing would be to go way back in time to where there was
>> going to be an eclipse and tell the cave men, 'If I have come to
>> destroy you, may the sun be blotted out from the sky.' Just then the
>> eclipse would start, and they'd probably try to kill you or something,
>> but then you could explain about the rotation of the moon and all, and
>> everyone would get a good laugh." 
>>   -Jack Handey


-- 

Rick
mailto:[EMAIL PROTECTED]

"I'd like to be buried Indian-style, where they put you up on a high
rack, above the ground. That way, you could get hit by meteorites and
not even feel it." 
  -Jack Handey


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




RE: [StrutsTestCase Error] Request does not contain handler parameter named action

2002-04-04 Thread Matt Raible

I get this same error using Mozilla 0.9.9, but not in IE.  It might be
an issue with Struts 1.1b1.

Thanks,

Matt

> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 8:18 AM
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Subject: [StrutsTestCase Error] Request does not contain handler
parameter
> named action
> 
> Deryl,
> 
> I'm trying to use StrutsTestCase 1.6 and CactusStrutsTestCase to test
an
> Action that extends LookupDispatchAction.
> 
> In my mind, the following test method "should" call the "create"
method on
> my class.
> 
> public void testCreate() {
>setRequestPathInfo("/assetEdit");
>addRequestParameter("action","Create");
>actionPerform();
>verifyForward("create");
>assertTrue(getSession().getAttribute("assetForm") != null);
>verifyNoActionErrors();
> }
> 
> Here is my action-mapping:
> 
>   
>type="com.onpoint.webapp.action.AssetAction" name="assetForm"
> scope="session" validate="false" input="asset.list"
parameter="action">
>   
>   
>path="/do/assetEdit?action=Search"/>
>   
>   
>   
> 
> However, I get the following error:
> 
> [junit] FAILED
> [junit] Error running action.perform(): Request[/assetEdit] does
not
> contain handler parameter named action
> [junit] junit.framework.AssertionFailedError: Error running
> action.perform(): Request[/assetEdit] does not contain h
> andler parameter named action
> [junit] at
>
servletunit.struts.CactusStrutsTestCase.actionPerform(CactusStrutsTestCa
se
> .java:389)
> [junit] at
>
com.onpoint.webapp.action.AssetActionTest.testCreate(AssetActionTest.jav
a:
> 97)
> 
> Any ideas?
> 
> Thanks,
> 
> Matt


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




How do I use Struts tags in JSP and HTML tags?

2002-04-04 Thread snurre1000

Hi,
I hop someone can help me with the following.
I would like to do something like this:


but I want to take the value from a bean, like this:

"  flush="true"/>

I have the same problem when I want to use Struts tags in HTML tags. 
Instead of:
 
I woild like to do something like:
">
How can I do this? 

Thanks, Ulrika




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




RE: At wits end, questions JRun, Oracle9ias

2002-04-04 Thread Galbreath, Mark

My short answer to you is, "Shit-can JRun."  My team is developing a very
complex web-based B2B/B2C/Maintenance application for VoiceStream Wireless.
We are using Struts (now) 1.1b-1 (and the migration from 1.0.2 was very
problematic!), Apache webserver on Unix, and Oracle 8i as the integration
tier.  We started out using JRun 3.1 and had so many problems with it (from
huge memory leaks to configuration nightmares) that we have abandoned it and
are migrating to Oracle9ias.  Our preliminary exposure to 9ias has been very
positive.

Mark

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 8:51 PM
To: Struts Users Mailing List
Subject: At wits end, questions JRun, Oracle9ias


Strutsters,

I've been playing around with struts on my local machine here at work
under Tomcat and everything is fine. In another local environment I've
been using JRun for some applications and I'd like to get the sample
app I was working under Tomcat to work under JRun. I'm not having any
luck. I've been searching these archives and whatever I could find but
I'm still stuck.

Here's the deal. I have a really really watered down basic app in a
directory called 'utilities' in the tomcat webapps folder. I now took
this whole directory and copied it into the default path for where I
have other JRun apps. ( I configured JRun to point to this new
application and even configured the servlet mapping). If I try to go
right to the page 'payrollChangeForm.jsp' I get an error that others
have gotten (not necessarily with JRun):

Exception thrown processing JSP page.
javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:781)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481
{cut}...

Now, I'm not sure what cause this error since the same files are
working fine under Tomcat. Another thing messed up which might help
some of you debug is I also have an index page with a simple link on
it that calls the action :



When this link is hit, I get a nice 500 Internal Error page with:

null
java.lang.NoSuchMethodError
at org.apache.commons.digester.Digester.parse(Digester.java:859)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1274)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:461)


What else do I need to get this running successfully under JRun? The
installation instructions with Struts mention the taglib issues but I
don't think this is really related to that. Couple comments: JRun is
pointing to the directory for this application on another network
directory. This means my local classpath that points to some XML xerces
stuff I have on my local classpath won't be valid so I put the
following files in my applications lib directory xmlParserAPIs.jar and
xercesImpl.jar. Somehow I think this is a parser issue or something because
if I
remove this file and then click on the link I'll get:

org/xml/sax/helpers/DefaultHandler
java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
at java.lang.ClassLoader.defineClass0(Native Method)


I'm just guessing here but if the parsing isn't taking place correctly
that might explain the first problem of when I try to go straight to
the form.jsp page and get the "Cannot find ActionMappings or
ActionFormBean collections' error, since maybe it can't parse the
struts-config.xml?

Any ideas what is wrong? I'm also concerned because I want to push for
using struts here at work but I know they'll have issues if it's going
to be hard to configure it to get it to work under Oracle9ias as well.
Are struts apps easy to configure under Oracle9ias as well? I didn't
think I'd have this problem with JRun so once I tackle that hurdle I
hope tackling the next one won't be as bad.

Thanks for any help.

-- 

Rick
mailto:[EMAIL PROTECTED]

"One thing kids like is to be tricked. For instance, I was going to
take my little nephew to Disneyland, but instead I drove him to an old
burned-out warehouse. 'Oh, no,' I said. 'Disneyland burned down.' He
cried and cried, but I think that deep down, he thought it was a
pretty good joke. I started to drive over to the real Disneyland, but
it was getting pretty late." 
  -Jack Handey


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




[StrutsTestCase Error] Request does not contain handler parameter named action

2002-04-04 Thread Matt Raible

Deryl,

I'm trying to use StrutsTestCase 1.6 and CactusStrutsTestCase to test an
Action that extends LookupDispatchAction.

In my mind, the following test method "should" call the "create" method
on my class.

public void testCreate() {
   setRequestPathInfo("/assetEdit");
   addRequestParameter("action","Create");
   actionPerform();
   verifyForward("create");
   assertTrue(getSession().getAttribute("assetForm") != null);
   verifyNoActionErrors();
}

Here is my action-mapping:










However, I get the following error:

[junit] FAILED
[junit] Error running action.perform(): Request[/assetEdit] does not
contain handler parameter named action
[junit] junit.framework.AssertionFailedError: Error running
action.perform(): Request[/assetEdit] does not contain h
andler parameter named action
[junit] at
servletunit.struts.CactusStrutsTestCase.actionPerform(CactusStrutsTestCa
se.java:389)
[junit] at
com.onpoint.webapp.action.AssetActionTest.testCreate(AssetActionTest.jav
a:97)

Any ideas?

Thanks,

Matt


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




RE: At wits end, questions JRun, Oracle9ias

2002-04-04 Thread Dimitar Stavrakov


Look in your JRun/lib/ext directory and check if you have jaxp.jar and
parser.jar. Try removing them if you do. Also make sure that the struts jar
and tlds are accessible to JRun.

Regards, 

Dimitar

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 03, 2002 7:51 PM
To: Struts Users Mailing List
Subject: At wits end, questions JRun, Oracle9ias

Strutsters,

I've been playing around with struts on my local machine here at work
under Tomcat and everything is fine. In another local environment I've
been using JRun for some applications and I'd like to get the sample
app I was working under Tomcat to work under JRun. I'm not having any
luck. I've been searching these archives and whatever I could find but
I'm still stuck.

Here's the deal. I have a really really watered down basic app in a
directory called 'utilities' in the tomcat webapps folder. I now took
this whole directory and copied it into the default path for where I
have other JRun apps. ( I configured JRun to point to this new
application and even configured the servlet mapping). If I try to go
right to the page 'payrollChangeForm.jsp' I get an error that others
have gotten (not necessarily with JRun):

Exception thrown processing JSP page.
javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:781)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481
{cut}...

Now, I'm not sure what cause this error since the same files are
working fine under Tomcat. Another thing messed up which might help
some of you debug is I also have an index page with a simple link on
it that calls the action :



When this link is hit, I get a nice 500 Internal Error page with:

null
java.lang.NoSuchMethodError
at org.apache.commons.digester.Digester.parse(Digester.java:859)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1274)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:461)


What else do I need to get this running successfully under JRun? The
installation instructions with Struts mention the taglib issues but I
don't think this is really related to that. Couple comments: JRun is
pointing to the directory for this application on another network
directory. This means my local classpath that points to some XML xerces
stuff I have on my local classpath won't be valid so I put the
following files in my applications lib directory xmlParserAPIs.jar and
xercesImpl.jar. Somehow I think this is a parser issue or something because
if I
remove this file and then click on the link I'll get:

org/xml/sax/helpers/DefaultHandler
java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
at java.lang.ClassLoader.defineClass0(Native Method)


I'm just guessing here but if the parsing isn't taking place correctly
that might explain the first problem of when I try to go straight to
the form.jsp page and get the "Cannot find ActionMappings or
ActionFormBean collections' error, since maybe it can't parse the
struts-config.xml?

Any ideas what is wrong? I'm also concerned because I want to push for
using struts here at work but I know they'll have issues if it's going
to be hard to configure it to get it to work under Oracle9ias as well.
Are struts apps easy to configure under Oracle9ias as well? I didn't
think I'd have this problem with JRun so once I tackle that hurdle I
hope tackling the next one won't be as bad.

Thanks for any help.

-- 

Rick
mailto:[EMAIL PROTECTED]

"One thing kids like is to be tricked. For instance, I was going to
take my little nephew to Disneyland, but instead I drove him to an old
burned-out warehouse. 'Oh, no,' I said. 'Disneyland burned down.' He
cried and cried, but I think that deep down, he thought it was a
pretty good joke. I started to drive over to the real Disneyland, but
it was getting pretty late." 
  -Jack Handey


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




I simply do not understand this

2002-04-04 Thread theron . kousek


I have a JTabbedPane similated application where I click back and forth
between 2 tabs...

In the process of going back and forth, I keep losing the data that I
entered on my first tab.

They're both sharing the same form object at session scope.I have
verified that...

When clicking from tab 1 to tab 2, how can I force the form object to be
loaded?   I thought it should automatically
happen as long as I am using the html:text and the property attributes.
It is not. My reset() on the form is also
empty.   I have no idea what is going on.

thanks,
Theron


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




No action instance for path

2002-04-04 Thread kelly lan

Hi,
In my logon page ,I logon with user name and user
password,when I submit I get the error:

No action instance for path /verifyAction could be
created
This is my logon page:

..



   



UserName:  
  
  
   


Password:

 
  
  
  

   
 

  

  

 
   

This is my struts_config.xml:










  


  
  


 

  


  
  


 
 
 


  
  


  
  



   










   

















  



Thank for you!



__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




html:option

2002-04-04 Thread @Basebeans.com

Subject: html:option
From: "David Bolsover" <[EMAIL PROTECTED]>
 ===
Hi all

I have a page that uses multiple ~30  tags within an
 tag.

The problem is that the page loads very slowly from the servlet
container (TC4.01).

Has anyone else seen this problem / have any suggestions for a soluton?

Regards

David Bolsover
[EMAIL PROTECTED]



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




Re[2]: include tag

2002-04-04 Thread Ingo Bruell

Hi Struts,


CD>   You can't open a tag in a jsp, and close it in another. Both the start and the 
end of the tag should be in the same
CD> page.
CD>   In a table example, you can have include header, include body, include 
footer, and in included files
CD> :  ... .
CD>   Also, have you consider using Tiles to divide your pages and insert sub-pages ?
is it available for struts 1.0.x ? or when not does the actual beta of
struts works stable ?


so long


Ingo Bruell

---
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>

OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany  PGP-Public-Key available at pgpkeys.mit.edu



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




[OTish] BeanUtils and Booleans

2002-04-04 Thread Tim Sawyer

Does BeanUtils support using is and set when dealing with booleans?

If I do this:

Map lMap = BeanUtils.describe(lBean);
Set lSet = lMap.keySet();
Iterator lIterator = lSet.iterator();
while (lIterator.hasNext()) 
{
  Object lObject = lIterator.next();

  String lTempValue = (String)lObject;
  System.out.println("Value is " + lTempValue);
}

it only shows properties with get and set methods, not my booleans that use is.

Is this not supported, or am I doing something wrong somewhere?

ta,

Tim.




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




Re: Need example on using roles in struts-tiles

2002-04-04 Thread Cedric Dumoulin


  In Tiles implementation, role attribute value is passed "as is" to the
appropriate container method. If this method support multiple roles, so do Tiles.
If not, this shouldn't be difficult to implement in a future version if needed.

   Cedric

"Struts Newsgroup (@Basebeans.com)" wrote:

> Subject: Re: Need example on using roles in struts-tiles
> From: "Matt Raible" <[EMAIL PROTECTED]>
>  ===
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg27034.html
>
> In response to this thread, I'm wondering if it's possible to specify
> multiple roles in the "role" attribute - similar to how logic:present works?
>
> I'd love to be able to do  role="marketing,accounting"/>
>
> Thanks,
>
> Matt
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Problem with IE5 not calling an Action

2002-04-04 Thread Antony Stace

Hi

I have a jsp page.  An action populates some beans in the page and the jsp
uses those values to display the page.  Also in this page is 

">

This action generates an image which is displayed on the page.  The generateImage.do 
Action checks some bean values to work out which image to send.  The problem is that 
the page works fine on

IE6
Netscape 6.2

It does not work on

IE5.

What I am seeing is that the jsp renders fine on the first rendering of the page for 
all browsers.  The second time the page is rendered the page renders fine on IE6 and 
Netscape 6.2 but with IE5 the image part of the jsp 

">

is not displayed (it was correctly displayed on the first access for all).
For IE5 when I look in the tomcat4 logs I see the Action generateImage.do called the 
first access to the page, then on subsequent accesses it is not called.  
Any ideas folks?

Cheers

Tony






_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: Tiles, included pages, and taglibs

2002-04-04 Thread Cedric Dumoulin


  Hello,

  Tiles simply use the RequestDispatcher.include(...) method, wich allow to
include a servlet.

Cedric

Dave Dribin wrote:

> > Dave Dribin wrote:
> >
> > >Hi,
> > >
> > >This is more of an observation than a question.  I started playing
> > >with the tiles and noticed that in included pages, you have to
> > >redeclare taglibs in those included pages.
>
> On Tue, Apr 02, 2002 at 10:08:10AM +1000, Arron Bates wrote:
> > They may be separate pages in terms of development, but at runtime
> > they'll become separate servlets all together and will be parsed as
> > such. Being separate servlet entities, they'll need the talib
> > declarations etc etc.
>
> Just out of curiousity, how does Tiles do this?  Does it invoke the
> JSP servlet manually or do some sort of internal HTTP request and
> capture the output?  I took a brief look at the code, but it gave me a
> headeache. ;)
>
> -Dave
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Re: Template/flush problems

2002-04-04 Thread Cedric Dumoulin


  You can try to use Tiles instead of Templates. You can do this simply by
changing the referenced library for template in the web.xml file, and also adding
the appropriate tiles.jar in your lib directory.

Cedric

"Struts Newsgroup (@Basebeans.com)" wrote:

> Subject: Template/flush problems
> From: "Sjaak de Mul" <[EMAIL PROTECTED]>
>  ===
> Hi,
>
> I ran into problems with an application that uses Struts (1.0.1) templates
> that are related to flushing the output buffer,
>
> On a Windows 2000 server (using IBM WSAD 1.0.2) it runs without problems,
> but after deploying it on Solaris the screens were all mixed up: the content
> of the template was written before the template itself was written to the
> output stream. I learned that I had to set the flush attribute to "true"in
> the  tag, in order to force a flush before the include. That
> solved some of the problems, but not all.
>
> Then looked for other occurences of include in Struts taglib, and, as a
> test, I added flush calls here as well (directly in the Struts taglib,
> because the other tags, such as InsertTag don't know the flush attribute).
> Now it seems to work OK, but I wonder this is the right way to go. If these
> extra flush calls are needed, then why don't the other tags, like the
> InsertTag,  have a flush attribute as well?
>
> Is there anyone who experienced the same kind of problems and knows a good
> solution?
>
> Thanks,
> Sjaak
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Re: can TILES use existing jsp files ?

2002-04-04 Thread Cedric Dumoulin

 Hello,

  Normally, you don't have to reimplement your jsp pages. You can use them as body 
with no
modifications. However, I recommend to suppress all html  and  tags from 
tiles/body. In
practice, you can left them, as html browsers don't complain too much if there is 
several time 
and .

  The error you mentioned is a problem with application resources : as you use them, 
you need to
declare them :

   * in web.xml if you use Struts1.0.2
   * in struts-config.xml if you use Struts1.1

   Also, you should declare the file containing your key-value pairs

   Hope this help,

 Cedric

[EMAIL PROTECTED] wrote:

> My current project is using Struts 1.0 and I already implemented about 20%
> of my .jsp files,
> without giving too much thought to the navigation.
> Now I want to use tiles to implement the sidebar menus for navigation.
> I am hoping this does not mean I will have to re-implement  those .jsp
> files, i.e.
> I imagine I could simply put each of my jsp files in the
> place where we put body.jsp. However I am getting an error message because
> each of my jsp
> pages is using this tag "bean:message key=index.title".
>
> In my struts-config.xml I added  this tag for message-resource:
>   message-resource parameter
> ="org.apache.struts.example.tiles.dev1-1.ApplicationResources" null="false"
>
> I tried both: tiles for struts 1.0 and tiles for struts 1.1 with the same
> error message (see
> bellow).
> Searching  the mail-archive I found the same error but the scenario was
> different - that tiles user *was
> not using* the ApplicationResource, but was forced to specify it anyways.
> In my case *I am
> using* the ApplicationResource but the servlet cannot find it when I am
> using tiles. It finds it ok
> if I am not using tiles, i.e. if I am using just struts 1.0.
>
> javax.servlet.jsp.JspException: Cannot find message resources under key
> org.apache.struts.action.MESSAGE
> at
> org.apache.struts.util.RequestUtils.message(RequestUtils.java:735)
> at
> org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)
> at org.apache.jsp.index$jsp._jspService(index$jsp.java:93)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> at
> 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java

Re: include tag

2002-04-04 Thread Cedric Dumoulin


  You can't open a tag in a jsp, and close it in another. Both the start and the end 
of the tag should be in the same
page.
  In a table example, you can have include header, include body, include 
footer, and in included files
:  ... .
  Also, have you consider using Tiles to divide your pages and insert sub-pages ?

Cedric

Ingo Bruell wrote:

> Hi Struts,
>
> DS> 
> DS> It's a working example.
>
> if i only include for example a complete table it works. But if i
> divide the page into header, menu, main and footer with a table that
> starts in header.jsp and ends in footer.jsp i get:
>
> --- snip ---
> org.apache.jasper.compiler.ParseException: End of content reached while more parsing 
>required: tag nesting error?
> at org.apache.jasper.compiler.JspReader.popFile(JspReader.java:293)
> at org.apache.jasper.compiler.JspReader.hasMoreInput(JspReader.java:337)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1109)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:892)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
> at org.apache.jasper.compiler.ParserController.parse(ParserController.java:213)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
> at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
> at 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
> at 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> at 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> at 
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at 
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
> at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
> at java.lang.Thread.run(Thread.java:536)
> --- snap ---
>
> so long
>
> Ingo Bruell
>
> ---
> <[EMAIL PROTECTED]>
> <[EMAIL PROTECTED]>
> 
> OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
> Germany  PGP-Public-Key available at pgpkeys.mit.edu
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




bean message repost.

2002-04-04 Thread Ivan Siviero

Sorry for reposting but i had the date one year older. :) :)


Hi.

I have downloaded the latest struts stable version (1.0.2 ) and noticed the
 tag misses the attributes 'name' and 'property' which allow
to get a message from ApplicationResources when the key is specified in a
bean property.
i.e.:
 with strust 1.0 i was able to do the following

 

how can i get the same result with struts 1.0.2 ?
I'd like to avoid downloading the nightly  builds.

thanks
Ivan.




Re: Tiles and struts action

2002-04-04 Thread Cedric Dumoulin


  The jsp specification says that it is forbidden to do a forward once the response
has been committed.
  Response is committed once you have written something to the resulting page. So,
generally you can't do a forward once you have started writing the response.
  The only thing you can do is an include, or a send redirect (but in this latest
case you will loose your current request).

Hope this help,

  Cedric



"Wellie W. Chao" wrote:

> More generally, is it possible to forward from within a child tile? I know
> I can forward within the original page, but I can't seem to get forwarding
> working from within a layout page or an included tile. I've tried
> increasing the buffer size with <%@ page buffer="32kb" %>, but this
> doesn't do anything. I've also tried , but
> the flush attribute doesn't make a difference. I still get the message
> about an inability to forward because the response has already been
> committed. Does anyone have clues on why this behavior occurs? Does Tiles
> flush the headers and part of the page out before loading the layout? Can
> I disable this behavior somehow?
>
> On Thu, 28 Mar 2002, Wellie W. Chao wrote:
>
> > Date: Thu, 28 Mar 2002 22:23:58 -0500 (EST)
> > From: Wellie W. Chao <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: Re: Tiles and struts action
> >
> > Did you ever figure out the solution to the Response has been committed
> > problem? I am now having a similar problem with a custom tag. I have a tag
> > called checkLogin that I place in a page like so:
> >
> > -
> > <%@ taglib uri="/WEB-INF/app.tld" prefix="app" %>
> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
> >
> > 
> > 
> > ...
> > 
> > -
> >
> > I get the following error:
> > [ServletException in:/tiles-layouts/adminLayout.jsp]
> > java.lang.IllegalStateException: Cannot forward after response has been
> > committed'
> >
> > The code for the checkLogin tag checks to see if a user is logged in. If
> > so, and he is in the role, the tag does nothing. If not, the tag forwards
> > to the login page.
> >
> > I would rather use the tag than container-based security because I want to
> > protect pages by classes of layout rather than by directory structure.
> >
> > On Wed, 13 Mar 2002, Hill, Donald wrote:
> >
> > > Date: Wed, 13 Mar 2002 09:48:54 -0500
> > > From: "Hill, Donald" <[EMAIL PROTECTED]>
> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List (E-mail)" <[EMAIL PROTECTED]>
> > > Subject: FW: Tiles and struts action
> > >
> > >
> > > -Original Message-
> > > From: Hill, Donald
> > > Sent: Tuesday, March 12, 2002 12:44 PM
> > > To: 'Jakarta Tag Libraries Users List' (E-mail)
> > > Subject: Tiles and struts action
> > >
> > >
> > > I am trying to use a struts action in a tile definition, something like
> > > this.
> > >
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > >
> > > 
> > > 
> > > 
> > > 
> > >
> > > I always get a Response has been committed on the template page.
> > > Is there a trick to using a struts action in tiles or template tags that I
> > > am missing.
> > >
> > > -Don-
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> >
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




RE: How to Generate .xls file from struts app.

2002-04-04 Thread Gruner, Manfred

Hi,
you don't have to generate csv-files take the html-Code itself,
and change the mime type to "application/vnd.ms-excel".
This should work too.
Manfred

> -Original Message-
> From: Jim Crossley [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 02, 2002 4:34 PM
> To: Struts Users Mailing List
> Subject: Re: How to Generate .xls file from struts app.
> 
> 
> "gvn" <[EMAIL PROTECTED]> writes:
> >
> > I would like to generate a .xls (excel) file data from a result set.
> > =20
> > What I have to do ?=20
> 
> One simple approach is to generate a CSV (Comma-Separated-Values) file
> instead, and then set the response's content type to
> "application/vnd.ms-excel".  That way, you exploit the fact that Excel
> transparently handles CSV files and rely on the browser to invoke
> Excel. 
> 
> Your action amounts to something not quite as trivial as this:
> 
>   PrintWriter out = response.getWriter();
>   while (youHaveRows)
> while (youHaveColumns)
>   out.print(yourCell+",");
>   out.close();
>   response.setContentType("application/vnd.ms-excel");
> 
> -- 
> Jim Crossley
> http://www.lads.com/~jim
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




Re: Tiles, definitions and roles

2002-04-04 Thread Cedric Dumoulin


  Both definitions have the same name, so one override the other ;-(.
  Don't forget that definitions are stored with their names as the key.

Cedric

"Struts Newsgroup (@Basebeans.com)" wrote:

> Subject: Tiles, definitions and roles
> From: "Matt Raible" <[EMAIL PROTECTED]>
>  ===
> I have the following 2 definitions that are defined in separate
> tiles-config.xml files:
>
>  
>  
>   
>   
>   
>   
>  
>
>  
>   
> 
> 
>   
>  
>
> When I login as an Administrator, with request.isUserInRole("Administrator")
> == true, I still get the second definition inserted.
>
> Any ideas?
>
> Thanks,
>
> Matt
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




logic:iterate problem

2002-04-04 Thread Jerome Josephraj

Hi,

My logic:iterate looks like this

 

 
   
  
   
  



lstEmployees is a vector defined in the form and has Employee
objects

The problem is the iterate is not going to line 1. There are
values in lstEmployees. Any help on this is much appreciated.

Thanks and regards,

Jerome.
  _  

This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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




AW: Websphere 4 & Tiles

2002-04-04 Thread Daemi, Anusch


I've found the Error.

Replace the xerces.jar in the lib directory with an new (1.4.4) one and all
should work smooth.


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




AW: Websphere 4 & Tiles

2002-04-04 Thread Daemi, Anusch

Hello

I've tracked the problem a little bit & realised that the error occurs at
getting the XMLReader.
Do I have to add/update some libraries for websphere?!?!

greetings
Anusch Daemi


Here is a snippet from the log:
[02.04.04 10:42:40:168 GMT+02:00] 55fb881f ServletInstan X SRVE0100E: Nicht
erfasste Ausnahmebedingung für init() wurde von Servlet {0} ausgelöst:
javax.servlet.ServletException: javax/xml/parsers/SAXParser.getXMLReader
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja
va:817)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe
rvlet.java:137)
at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl
eServlet.java:243)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer
vlet.java:103)
at
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:
84)
at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet
Manager.java:226)
at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA
ppServletManager.java:357)
at
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1001)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234)
at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139)
at
com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:63
3)
at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
at com.ibm.ws.runtime.Server.startModule(Server.java:615)
at
com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
at
com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349
)
at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:882)
at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)

[02.04.04 10:42:40:218 GMT+02:00] 55fb881f WebGroup  X Servlet
Error-[action]: Servlet konnte nicht geladen werden:
java.lang.AbstractMethodError: javax/xml/parsers/SAXParser.getXMLReader
at
org.apache.commons.digester.Digester.getXMLReader(Digester.java:604)
at org.apache.commons.digester.Digester.parse(Digester.java:1299)
at
org.apache.struts.tiles.xmlDefinition.XmlParser.parse(XmlParser.java:264)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFile(I18nFactor
ySet.java:453)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFiles(I18nFacto
rySet.java:404)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.createDefaultFactory(I1
8nFactorySet.java:231)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactory
Set.java:204)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactory
Set.java:152)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.(I18nFactorySet.j
ava:105)
at
org.apache.struts.tiles.definition.ReloadableDefinitionsFactory.createFactor
y(ReloadableDefinitionsFactory.java:143)
at
org.apache.struts.tiles.definition.ReloadableDefinitionsFactory.(Reloa
dableDefinitionsFactory.java:50)
at
org.apache.struts.tiles.DefinitionsUtil.createDefinitionsFactory(Definitions
Util.java:163)
at
org.apache.struts.tiles.ActionComponentServlet.initComponentDefinitionsMappi
ng(ActionComponentServlet.java:65)
at
org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.j
ava:53)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja
va:802)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe
rvlet.java:137)
at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl
eServlet.java:243)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer
vlet.java:103)
at
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:
84)
at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet
Manager.java:226)
at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA
ppServletManager.java:357)
at
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1001)
at com.ibm.servlet.engine.webapp.WebApp.

Re: parser.jar

2002-04-04 Thread kelly lan

Hi,
If you need the jaxp1.0.1,you can direct to download
the jaxp-1_0_1.zip from :
http://www-pu.informatik.uni-tuebingen.de/ip/IP2000_2001/jaxp.html
If you need other versions you can get it from:
http://java.sun.com/xml
There are any versions for jaxp.

After the file is unzipped , the new directory should
contain the following files: 



docs/api/*  
examples/*  
examples/index.html  readme.html 
install.html
relnotes.html 
jaxp.jar 
parser.jar 
I think this will hope youu!


kelly.



--- "Singh, Sandeep" <[EMAIL PROTECTED]> wrote:
> I got the jaxp.jar from ant binary someone can give
> the URl from where I can get parser.jar
> 
> Thanks
> 
> 
> -Original Message-
> From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 02, 2002 3:37 PM
> To: Struts Users Mailing List
> Subject: Problem with
> org.apache.struts.util.PropertyMessageResources
> 
> 
> I'm using struts 1.1-b1 and am having problems
> getting properties from my
> ApplicationResources.properties. I have placed it in
> my classpath at
>
com/mycompany/myproject/ApplicationResources.properties
> and have configured
> struts to use
> com.mycompany.myproject.ApplicationResources as the
> message-resources file. When I execute the following
> code in a JSP page, I
> get back
> com.mycompany.myproject.ApplicationResources, which
> is what I
> expected:
> 
>
((org.apache.struts.util.PropertyMessageResources)request.getAttribute("org.
> apache.struts.action.MESSAGE")).getConfig()
> 
> When I try to fetch anything with  key="{XXX}"/>, it always
> fails, no matter what I plug in for {XXX}. Is there
> any way for me to peek
> inside of the PropertyMessageResources bundle to see
> what keys and values it
> has? I think this problem is the cause of my errors
> not showing up with
>  and .
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Problem with Struts and 2.3 Filters

2002-04-04 Thread chris . stephens

Content-Transfer-Encoding: 7bit

Hi folks,

I am currently endeavouring to add Servlet 2.3 filtering (SiteMesh 1.3,
in fact) to a Struts 1.0.2 application - but having no luck. I have
searched the mailing list archives and can find no reference to this
combination.

I have set up inside one webapp folder of Tomcat 4.0.3 a Struts
application which works correctly if it has the Struts application
web.xml file in WEB-INF.

Then I have copied into that same webapp directory a SiteMesh
application. This also works correctly if it has the SiteMesh
application web.xml file in WEB-INF (moving the Struts web.xml aside for
now).

However, if I add the SiteMesh elements ( and 
plus some taglibs) to the web.xml of the Struts application it fails.

In catalina.out I get:
---
Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
PARSE error at line 111 column 11
org.xml.sax.SAXParseException: The content of element type "web-app" 
must match "(icon?,display-
name?,description?,distributable?,context-param*,filter*,filter-
mapping*,listener*,servlet*,servlet-mapping*,session-
config?,mime-mapping*,welcome-file-list?,error-
page*,taglib*,resource-env-ref*,resource-ref*,security-
constraint*,login-config?,security-role*,env-entry*,ejb-
ref*,ejb-local-ref*)".
Starting service Tomcat-Apache
Apache Tomcat/4.0.3
---

and the aplication does not work (file not found errors in the browser).

Line 111, column 11 is the very end of the file. I have run Tidy over
web.xml to check for any XML errors and there are none according to that
tool. 

If I comment out the SiteMesh elements and restart Tomcat then the
Struts application starts working again.

If I comment out the Struts elements and restart Tomcat then the
SiteMesh application starts working again.

Can anyone enlighten me as to why the XML parser thinks there is a
problem? I have searched the web for published examples of web.xml that
include filter and servlet definitions and they appear no different in
spirit to what I have...

Any help is much appreciated!

Thanks,

Chris


*
This email and any files transmitted with it may be confidential and
privileged.  It is intended solely for the use of the individual or
parties to whom it is addressed. If you have received this email in
error please forward it to [EMAIL PROTECTED] and delete all
copies of this message immediately. Thank you.
*



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


Re: Editor aware of Struts

2002-04-04 Thread @Basebeans.com

Subject: Re: Editor aware of Struts
From: "Pim" <[EMAIL PROTECTED]>
 ===
Hi Yanhui,

Good question, I'm struggeling with the same problem. I hope that a plugin
for Eclipse will be written. Keep us informed if you find a solution.

Pim

"Yu, Yanhui" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Vic,
>
> is OmniCore.com CodeGuide 4 a Java IDE?  We are using IBM's WSAD (combines
> Java IDE, like VAJ and JSP editors like Websphere studio) to edit Java
code
> (such as the Action and ActionForm classes).
>
> WSAD has a page Designer (like Websphere Studio) which offers visual
> desgning for JSP page, somewhat like FrontPage, where the developer can
> visually see the buttons, tables, images and such during development.
WSAD
> also comes with a Source editor (just like Textpad) which only shows the
JSP
> source code.  The developer can choose to use either the Designer or the
> Source editor to compose a JSP page.  Now we are trying to use Struts, the
> Designer from WSAD no longer recongnize the struts componnets such as
Struts
> buttons.  It shows a red triangular icon for any of the Struts component
> without any face value shown (like a button's value).
>
> What I am looking for is an editing tool that will recognize Struts
> components, e.g., Struts button and show the button during editing, i.e.,
> before rendering with a browser.
>
> Hope I explained what I am looking for and appreciate for any suggestions.
>
> Yanhui
>
>
> -Original Message-
> From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 8:40 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Editor aware of Struts
>
>
> Subject: Re: Editor aware of Struts
> From: Vic Cekvenich <[EMAIL PROTECTED]>
>  ===
> You can do Struts with just JSP, you have to "edit" Java as well.
> (I use OmniCore.com CodeGuide 4 now, after NetBeans.org)
>
> To do things like table iterate of a resuult set, they will have to be
> OK with writing HTML 
>
> Vic
>
>
> Yu, Yanhui wrote:
>
> > Hi all,
> >
> > Does anyone out there who can recommend us a tool that is Struts aware?
> We
> > are using WSAD and it can't recognize any struts tags in the Page
Designer
> > that comes with WSAD.  The developers don't really like to edit the
Source
> > page (the text editor).  We would very much appreciate any suggestions
to
> > any tool that can visually edit a JSP page with Struts.  Thank you very
> much
> > in advance,
> >
> > Yanhui
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>



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




Beta 1 bugs in struts-exercise-taglib examples

2002-04-04 Thread Jing Zhou

There are two possible bugs related to the exampe pages index.jsp and
html-link.jsp
in the struts-exercise-taglib in struts beta 1 release.

The first one appeard in 04/03 nightly build. When clicking the link in the
index.jsp
that is pointing to the html-link.jsp, an exception is thrown for a reason
message resources not found under key org.apache.struts.action.MESSAG.

A quick fix I think is to change the BaseHandlerTag.message(String literal,
String key).
When both literal and key are null, this method should return null. Right
now it will
go ahead to invoke RequestUtils method and throw exception there.

The second bug appeared since 03/19, the formal b1 release. When clicking
the
'Cancel' button on the html-link.jsp, an exception is thrown for 'array
element type mismatch'
in PropertyUtils.setIndexedProperty(...).


The exception is thrown because the TestBean has no indexed method for
stringArray
while the PropertyUtils is invoking setIndexedProperty when it sees the
stringArray[0]
as the property name. A quick fix I could think right now is to change the
BeanUtils.populate
method around the section '// Conver the parameter value as required for
this setter method'

Origianl section:
if(parameterTypes.length > 1)
parameterType = parameterTypes[1];   // Indexed or mapped setter

Change to:
 if(parameterTypes.length > 1) {
  parameterType = parameterTypes[1]; // Indexed or mapped setter
 } else {
  int nestedDel = name.lastIndexOf(PropertyUtils.NESTED_DELIM);
  int indexedDel = name.lastIndexOf(PropertyUtils.INDEXED_DELIM);
  if(indexedDel > nestedDel) {
   // PropertyUtils will invoke setIndexedProperty later, but
actually the method is not indexed
if(parameterType.isArray()) {
parameterType = parameterType.getComponentType();
 }
   }
  }

The way of the fix is not optimized, it just fixes the problem shown in the
html-link.jsp.
I just started to look at the beta 1 codes and may overlooked other aspects
of the overall architecture.
Let me know if anyone finds the same exceptions or they are addressed
somehow in another way.

Thanks,
Jing


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




  1   2   >