ActionError Header/Foorters - can Global vs Non-Global be differentiated

2001-12-04 Thread Greg Callaghan

Hi,

Noting that one may use an ActionError, and struts ErrorTag to display both 
GLOBAL and validation errors (non-GLOBAL).

Currently the header/footer text I use is focused on the non-Global errors 
(ie validation errors in a form).  Is there a way with struts to throw the 
errors back such that it would be more like the following -:

* Global Error1 (eg for resource not available error)
* Global Error1

 eg correct validation errors in form before proceeding
* Validation Error 1 - date should be in dd/mm/ format
* Validation Error 2


Regards
Greg



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


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




RE: Validator not generating errors

2001-12-04 Thread Alexander Jesse

Hi,

the action is missing the validate=true parameter...

hope this helps
Alexander Jesse

-Original Message-
From: Dave J Dandeneau [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 3:42 PM
To: Struts Users Mailing List
Subject: Validator not generating errors


For some reason the validator framework is no longer generating errors.
I am running three tomcat web applications. Each has it's own
validations. When they load up I can see the validations in the output,
but when I hit the page it says "no errors detected" and moves on?

Does anyone have any ideas on what I could be doing wrong? Excerpts from
my setup are below. Thanks in advance for any help...



 
 
 
   mask
   ^\w+$
 
 
 
 
 
 
   mask
   ^[a-zA-Z]*$
 
 
 
 
 
   mask
   ${phone}
 
 
 
 
 











Thanks,
dave

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




Connections & Transactions

2001-12-04 Thread aneesha . singh

Hi all,

I have a question. If I have a DAO that is implemented as a simple java
class. I make a connection object at my session bean and pass it to the DAO
object. And the DAO object does all its operations on that connection
object. Then will the DAO come into the same transaction scope as the
session bean

This is really urgent. Would appreciate any help,

Thanks
Aneesha


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




RE: JDBCRealms

2001-12-04 Thread Frank Lawlor

> When using JDBCRealm with Tomcat, does anyone know if the 
> user's roles are
> loaded from the database for each request, or are they loaded 
> once and held
> in a session object?

I'm pretty sure the database is always queried.
If you have debug on you can see the calls.
This is important if you want to dynamically
change the roles.

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.

 


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




Re: Struts vs. WebLogic 6.x

2001-12-04 Thread Alex Lin

Hi,

We have send one person to Vic's Dallas training.  She had the same
issue as i was in Bravepoint training.  Both trainigs use Struts 1.1
and deploy to Tomcat.  Everything on TomCat work fine.

However, after i deploy the project into WebLogic, project broke.
Initially, i guess the problem is probably on the limitation that WebLogic
can't identity jsp under WEB-INF.  Now, i'm not sure.  My collegue
received the same problem as mine during another Struts training.

Could you provide me a small example that use Struts 1.1 on WebLogic
6.x.

Thanks,
Alex
--
... I use Tomcat4. I complied the files in JBuilder - OK, but
got errors on the second page when I deployed to WLS. I don't
know why and ... (message from Dallas)
http://www1.tramsasp.com/?section=dev&page=jb5Struts11.html&PHPSESSID=a015bb99a7d679ccc70afa6305b5a8cb

Regis Brochu wrote:

> What kind of problems ? We are using Struts with Weblogic 6.1sp1 and
> everything
> seem to work fine !
>
> Redg
>
> -Original Message-
> From: Alex Lin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 03, 2001 3:02 PM
> To: Struts Users Mailing List
> Subject: Struts vs. WebLogic 6.x
>
> Hello,
>
> After testing the struts nighty build (beyond v1.0), i have found problems
> of Struts on WebLogic 6.x.
>
> 1. The nightly build, including the common*.jar, seems mess up
>the weblogic.  I have deployed several bravepoint solutions onto
>weblogic 6.0 sp1, sp2, 6.1 still with MANY strange results.
>
>The solutions work fine on Tomcat 4.0
>
> 2. I had replaced several previous working struts projects with
>the latest build.  Problem happened again.
>
> Both are confirmed after working together with another developer.
>
> Do you have similar problem work Struts (nightly build) with WebLogic ?
> Could i have a small example from you.
>
> Thanks,
> Alex Lin



Struts Example App Mail Reader's Subscription Form

2001-12-04 Thread iT meDic

Hello Fellow Developers,

I have been stuck on this problem for a week and half now, i thought i could 
solve it without troubling you folks, however i need your help to clarify a 
few ideas and to get it working properly.

I have a multi-page form and within the form there is an mailing address 
form(with typical , street_name, city, country,etc fields). I would like to 
utilize the same functionality as the struts example Mail Reader 
Application's subscription Form (i.e. Add, Delete, Edit). However in my 
application there is no user logged into the session. But i am using session 
to span through 7 screens.

My question is how can i incorporate the subscription(example) form into my 
form without using the user_key. Is it possible to write the information the 
user enters into a session(rather than the xml file), and then allow the 
user to edit/delete that particular information?

I have tried to take out all references to the user constants but i get 
compilation erros. I am a newbie and will be grateful if you could provide 
me with a good place to start or modify the following code and point out 
what i would need to do to achieve the above.

EditSubscriptionAction.java

package org.apache.struts.webapp.example;


import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.Locale;
import java.util.Vector;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.beanutils.PropertyUtils;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;
import org.apache.struts.util.MessageResources;


/**
* Implementation of Action that populates an instance of
* SubscriptionForm from the currently specified subscription.
*
* @author Craig R. McClanahan
* @version $Revision: 1.3 $ $Date: 2001/07/16 00:44:51 $
*/

public final class EditSubscriptionAction extends Action {


// - Public 
Methods


/**
 * Process the specified HTTP request, and create the corresponding HTTP
 * response (or forward to another web component that will create it).
 * Return an ActionForward instance describing where and 
how
 * control should be forwarded, or null if the response has
 * already been completed.
 *
 * @param mapping The ActionMapping used to select this instance
 * @param actionForm The optional ActionForm bean for this request (if 
any)
 * @param request The HTTP request we are processing
 * @param response The HTTP response we are creating
 *
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet exception occurs
 */
public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
throws IOException, ServletException {

// Extract attributes we will need
Locale locale = getLocale(request);
MessageResources messages = getResources();
HttpSession session = request.getSession();
String action = request.getParameter("action");
if (action == null)
action = "Create";
String host = request.getParameter("host");
if (servlet.getDebug() >= 1)
servlet.log("EditSubscriptionAction:  Processing " + action +
" action");

// Is there a currently logged on user?
User user = (User) session.getAttribute(Constants.USER_KEY);
if (user == null) {
if (servlet.getDebug() >= 1)
servlet.log(" User is not logged on in session "
+ session.getId());
return (servlet.findForward("logon"));
}

// Identify the relevant subscription
Subscription subscription = null;
if (action.equals("Create")) {
subscription = new Subscription();
subscription.setUser(user);
} else {
subscription = user.findSubscription(host);
}
if (subscription == null) {
if (servlet.getDebug() >= 1)
servlet.log(" No subscription for user " +
user.getUsername() + " and host " + host);
return (mapping.findForward("failure"));
}
session.setAttribute(Constants.SUBSCRIPTION_KEY, subscription);

// Populate the subscription form
if (form == null) {
if (servlet.getDebug() >= 1)
servlet.log(" Creating new SubscriptionForm bean under key "
  

Re: Help-Loading 2nd FormBean in same action???Is there an easy way??

2001-12-04 Thread Greg Callaghan

Hi Sandeep/all,

The issue is the ACTION parameter is already set on entry to the action (eg 
edit), but in the error case condition needs to be set by the action back to 
a different parameter (eg search) before forwarding to the previous search 
results page action.  Again because I'm using a common form bean to store 
the object search parameters (eg search_title) as well normal parameters (eg 
title), as a basis to trickle the search parameters through the chain so 
that after a object is modified the user can be thrown back to the 
"narrowed" list of objects on the search page based on the trickled through 
search parameters.

I guess its more difficult than I thought explaining this than I though, so 
perhaps it better I draw the line here.   Thanks for the input to date 
everyone.

The learning I think for me is that whilst it is good to reuse formbeans 
where one can, this should be only in cases where the validation 
requirements are the same.

I'm going to head back to a 2 form bean approach (object_search_formbean, 
and object_formbean).  In terms of trickling through the 
object_search_formbean parameters throught the edit/add/delete 
screens/actions I'll just drop back from struts to base JSP tags, ie




" >
" >
...etc for each object_search_form parameter



Regards
Greg

Original Message Follows
From: Sandeep Takhar <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Help-Loading 2nd FormBean in same action???Is there an easy 
way??
Date: Tue, 4 Dec 2001 06:19:45 -0800 (PST)

I may still be out of line here

That is what the "parameter" is for.  So you forward
to the correct action -- like "Search" and since the
action is common across search/add/edit/delete you do
a mapping.getParameter() to see which one it is.  The
advantage of having in the in the struts-config.xml is
that you don't have to set/reset.

am i still mising something?

Sandeep
--- Greg Callaghan <[EMAIL PROTECTED]> wrote:
 > Thanks Sandeep,
 >
 > I don't think this actually helps in my situation (I
 > think).
 >
 > To distill down the problem to barebones as best I
 > can -:
 > * I have a common formbean which has two possible
 > validate paths depending
 > on whether the ACTION parameter is SEARCH or
 > EDIT/DELETE/ADD.
 > * In the case the user say requests an ADD then -:
 >   - ACTION parameter is set to "ADD"
 >   - Formbean validation occurs, it references ACTION
 > and does
 > the correct validation (ie validate object
 > parameters, not
 > the object search parameters, search_xxx)
 >   - ADD action is then entered
 > * Now the issue is then if there is a problem an
 > within the ADD action I
 > want to throw back to the previous page (via its
 > associated *.do action to
 > pickup appropriate object setup code) I need a way
 > to indicate to the common
 > formbean to do its SEARCH validation path, not
 > ADD/EDIT/DELETE validation.
 > The problem then being how do you change/reset the
 > ACTION request parameter?
 >
 > So in summary, is there a way to, via code within an
 > action (about to
 > redirect to another action), to indicate to the
 > formbean about to be loaded
 > up which validation path it should follow.  I'm
 > trying to find a way within
 > the struts framework, and hence thought use of the
 > form beans parameters
 > would be correct.
 >
 > Hope this makes sense.
 >
 > Regards
 > Greg
 >
 > PS. One solution would be perhaps to set a request
 > attribute in the action
 > and have the formbean validation code reference this
 > to determine the
 > correct validation path, however this seems to go a
 > little against the grain
 > of the struts concept no?  That is would be nice
 > that the form bean
 > validation is based on its own attributes.
 >
 > Original Message Follows
 > From: Sandeep Takhar <[EMAIL PROTECTED]>
 > Reply-To: "Struts Users Mailing List"
 > <[EMAIL PROTECTED]>
 > To: Struts Users Mailing List
 > <[EMAIL PROTECTED]>
 > Subject: Re: Help-Loading 2nd FormBean in same
 > action???Is there an easy
 > way??
 > Date: Mon, 3 Dec 2001 08:31:18 -0800 (PST)
 >
 > I think that you can use different actions mappings
 > for each.
 >
 > From Ted-Husted's site:
 >
 > 
 >
 > Use multifunction Actions to service related
 > ActionMappings
 > Here's an example:
 >
 > In an Insert / Update workflow, there are usually
 > three ActionMappings, one for "add", to return an
 > empty ActionForm, one for "edit", to return a
 > populated ActionForm, and one for "store" to either
 > insert or update
 > the ActionForm properties into the model. Usually,
 > all
 > three of these are mapped to the same Action.A good
 > way to tell them apart is to use the parameter
 > property with your mapping.
 >
 > 
 >  path="/admin/article/Add"
 > type="org.apache.struts.artimus.http.Client"
 > name="articleForm"
 > scope="request"
 > validate="false"
 > parameter="add">
 >  name="continue"
 > path="/WEB-INF/pages/

Struts Design Help

2001-12-04 Thread Bauer, John


I have a somewhat complicated form to develop, and I would like to see if
there are some decent ways to implement with Struts.  The basic premise is
as follows:

1) Dynamic data on form, number of entries not known ahead of time
2) There are one or more Event objects that specify events that a user can
subscribe to.  An event has an event ID
3) For each Event, there are one or more parameters that need to be
specified by the user (i.e. monetary limits, etc).  A parameter has a
parameter id (global across events)

The basic form layout is as follows:

Event A description
Param 1 for Event A (textfield)
Param 2 for Event A (textfield)

Event B description
Param 1 for Event B (textfield)
Param 2 for Event B (textfield)

I am looking for ideas on how to structure the Form bean and use the html
tags for this situation.  I was looking into using the "indexed" property of
the html:text tag for the parameters, but it does not seem to work out in
this case.

Any suggestions would be helpful.

Thanks.
John



___ 

Juniper Bank 
"Rated #1 in Customer Confidence" 
Gomez Inc., Summer 2001 Internet Credit Card Scorecard 
www.juniper.com 
___ 

This e-mail and any files transmitted with it may contain confidential
and/or proprietary information. It is intended solely for the use of the
individual or entity who is the intended recipient. Unauthorized use of this
information is prohibited. If you have received this in error, please
contact the sender by replying to this message and delete this material from
any system it may be on.

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




Test application.resources file

2001-12-04 Thread Strichartz, Beth

Hi,
Can anyone tell me how to test that I am actually reading\loading the
application.resources file.

or

How to test is action errors exist in my form (or action) after I save them.

Beth.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


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




JDBCRealms

2001-12-04 Thread Andy Noble

Hi,

When using JDBCRealm with Tomcat, does anyone know if the user's roles are
loaded from the database for each request, or are they loaded once and held
in a session object?

Regards
Andy



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




Re: Struts 1.1 book available for order

2001-12-04 Thread Andy Noble

Given the very limited potential readership, I don't think $70 is too expensive... 
I've ordered it and may change my mind if its a load of tripe :o).

I'll give feedback once it arrives.

Andy
  - Original Message - 
  From: Esterkin, Alex 
  To: 'Struts Users Mailing List' 
  Sent: Tuesday, December 04, 2001 9:16 PM
  Subject: RE: Struts 1.1 book available for order


  The book contains just 336 pages.  This is not a lot.   On the other hand the list 
of topics is long:



  About 10-15 pages per topic, including examples. A very complete list of topics 
indeed, but many topic are clearly introductory in nature.   On the surface, this book 
seems geared towards beginner to intermediate level developers.   What is the intended 
readership? 

  Best regards,
  
 Alex Esterkin






RE: Struts VAR

2001-12-04 Thread Flying Cloud

Jcorporate.com is a Struts Value Added Reseller providing support services
for Struts (via Expresso Premium support). Onsite services available on
request.

Jcorporate has collaborative applications built using Struts/Expresso
including eForum (OSS), ePoll (OSS), eSearch (OSS), eContent (content
management), eHelpdesk, and eFAQ applications. The UI of these apps are all
Struts based. All applications are available with full source code.

Sandra

> -Original Message-
> From: Sandeep Takhar [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 03, 2001 4:43 PM
> To: Struts Mailing List
> Subject: Struts VAR
>
>
> Does anyone know of any Struts Value Added Resellers.
> Someone that has added on to the struts framework and
> offers support/documentation/training?
>
> - thanks,
>
> Sandeep
>
> __
> Do You Yahoo!?
> Buy the perfect holiday gifts at Yahoo! Shopping.
> http://shopping.yahoo.com
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


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




RE: Struts 1.1 book available for order

2001-12-04 Thread Esterkin, Alex



The book contains just 336 pages.  This is not 
a lot.   On the other hand the list 
of topics is long:

  
About 10-15 pages per topic, including examples. A very 
complete list of topics indeed, but many topic are clearly introductory in 
nature.   On the surface, this book seems geared towards beginner 
to intermediate level developers.   What is 
the intended readership? Best 
regards,   Alex 
Esterkin=   -Original 
Message-From: Vic Cekvenich [mailto:[EMAIL PROTECTED]]Sent: Friday, 
November 30, 2001 13:54To: Struts Users Mailing ListCc: 
[EMAIL PROTECTED]Subject: Re: Struts 1.1 book available for 
orderThere is a chapter each on Validator and Tiles. In addition, 
there is anappendix on Validator and Tiles (the appendix is just a reprint 
of theweb site's by Cedric and David).The full TOC is on 
baseBeans.net / book.Nothing on Role Based Actions.I do cover 
JDBC DB security realms (JAAS), XSLT, SQL/DB, etc.I guess in a while 
there will be posts from readers who completed thebook. Also 
news.basebeans.com / mvc-programers will have student reviewsof the people 
who took the class and read the book as well.I will announce Amazon. 
They will cary it for $89.Vicps(Long answer why $89 for 
Amazon: A regular publisher takes somethinglike 6 months to publish a book 
and gives you 10% and take all therights mostly. So I kind of chose POD 
publishing (print on demand) whereonly 1,000 copies get printed at a time. 
But marketing is limited, so Ihave to register the book with Amazon after 
they build up stock (vs theweb site that is pubishing it, that can do it 
today) which takes time.My current estimate is that a week after X-mass will 
it be on Amazon,and because Amazon takes %40 cut... prices is higher. They 
also will usea 2nd publisher. That's right, 1 book, 2 publishers. That is 
even alonger story. Once you publish a book you will find all the way's 
theyget you. )Nathan Anderson wrote:> After 
seeing your table of contents I wonder about what is in this book.> Which 
of the extensions that are not part of the official struts> distribution 
does the book cover [i.e. Validator by David Winterfeldt, Tiles> by 
Cedric Dumoulin, Role Based Actions by Nic Hobs, etc.]?>> Also, 
will there be a sample chapter to read on-line before deciding to> 
purchase the book.  I'd hate to spend $70 an find out I can't read 
it.>> I assume you will announce when Amazon will be carrying it 
as well.  [It is> much easier to buy from a company we have already 
established an account> with at my company].>> Nathan 
Anderson>>> -Original Message-> From: Vic 
Cekvenich [mailto:[EMAIL PROTECTED]]> Sent: 
Friday, November 30, 2001 9:26 AM> To: 
[EMAIL PROTECTED]> Subject: Struts 1.1 book available for 
order>>> http://www.atlasbooks.com/marktplc/00670.htm>> 
You can order it today, and it will ship next week.>> It will be 
on Amazon, etc. in a few more weeks, it takes time. This is> the fastest 
way I know to publish it.>> Vic>>> --> 
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: 

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


RE: Indexed tags & iterate tag problems

2001-12-04 Thread Mike Ashamalla

Anyone know the answer to this???  It seems that there are two of us with
exactly the same problem (see "iterate tag problems (sorry !!)" from Eddie
Fung [[EMAIL PROTECTED]]).

Bottom line: When using indexed tags inside an iterate tag, the setters
don't seem to be setting the new values.

If this has already been answered elsewhere, please just point us in the
right direction. :)

Thank You,


Mike Ashamalla, CEBS
VistaXtreme
[EMAIL PROTECTED]

-Original Message-
From: Mike Ashamalla [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 6:42 PM
To: Struts-User
Subject: Indexed tags


Hi All!

I apologize if this question has been asked before.  I'm trying to implement
indexed tags and I can't figure out where the values are being set (ie -
where should me setters be and what should they look like).  The form
displays the prompts and values perfectly, but when I submit it the new
values don't seem to be posting to the formbean.  I've read as many posts
and archives as I could find, but still don't see what I'm doing wrong.  One
archived post stated "... this will be translated by struts into a call
ParametersForm.getParameter(0).setValue(value) ...".  The setValue method in
EmploymentInfoField (see below) is not being called, though.  No errors are
being generated either (when I submit the form).  The HTML source that is
produced looks like this: 

BTW - I'm using Struts nightly build from 11/28/2001 and Tomcat 3.2.2

I've seen many posts that didn't have enough information/code for people to
help, so I'm including as much as possible.  Sorry for the long post.  Thank
you in advance!


***
JSP Code:

   

   
  

  
  

  
  
  



***

***
EmploymentInfoForm:

public class EmploymentInfoForm extends ActionForm {

private Vector employmentInfoFieldList = new Vector();

...

public EmploymentInfoField getEmploymentInfoField(int index) {
return (EmploymentInfoField) employmentInfoFieldList.get(index);
}

public Vector getEmploymentInfoFieldList() {
return employmentInfoFieldList;
}

private void addEmploymentInfoField(String dbFieldName,
int dataType,
String labelKey,
String value) {
EmploymentInfoField eField;

eField = new EmploymentInfoField();
eField.setDbFieldName(dbFieldName);
eField.setDataType(dataType);
eField.setLabelKey(labelKey);
eField.initValue(value);
employmentInfoFieldList.add(eField);
}
}

***

***
EmploymentInfoField:

public class EmploymentInfoField {

private int dataType;
private String dbFieldName = null;
private String labelKey = null;
private String value = null;
private boolean valueChanged = false;

/**
 * Return the dataType
 *
 * @return the dataType
 */
public int getDataType() {
return dataType;
}

/**
 * Set the dataType.
 *
 * @param dataType The new dataType
 */
public void setDataType(int dataType) {
  this.dataType = dataType;
}

/**
 * Return the dbFieldName
 *
 * @return the dbFieldName
 */
public String getDbFieldName() {
return dbFieldName;
}

/**
 * Set the dbFieldName.
 *
 * @param dbFieldName The new dbFieldName
 */
public void setDbFieldName(String dbFieldName) {
  this.dbFieldName = dbFieldName;
}

/**
 * Return the labelKey
 *
 * @return the labelKey
 */
public String getLabelKey() {
return labelKey;
}

/**
 * Set the labelKey.
 *
 * @param labelKey The new labelKey
 */
public void setLabelKey(String labelKey) {
  this.labelKey = labelKey;
}

/**
 * Return the value
 *
 * @return the value
 */
public String getValue() {
return value;
}

/**
 * Initialize the value.
 *
 * @param value The new value
 */
public void initValue(String value) {
  this.value = value;
}

/**
 * Set the value.
 *
 * @param value The new value
 */
public void setValue(String value) {
  if(value.equals(this.value)) {
valueChanged = false;
  } else {
valueChanged = true;
  }
  this.value = value;
}

/**
 * Return whether or not value has changed.
 *
 * @return String

Re: Hi

2001-12-04 Thread John M. Corro

This email is a documented virus.  Do not open the attachment.

This virus is documented at http://www.antivirus.com on the opening page.

- Original Message -
From: "Scott Fitzgerald" <[EMAIL PROTECTED]>
To: "Struts-User" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 11:13 AM
Subject: Hi


> How are you ?
> When I saw this screen saver, I immediately thought about you
> I am in a harry, I promise you will love it!






> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



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




Alert!!!! DO NOT OPEN Previous email entitled "HI"...Virus Attached!!

2001-12-04 Thread Scott Fitzgerald


Scott Fitzgerald
Application Developer
ColabNet

Collaborative Network Technologies, Inc.
55 Bond Street, Suite 202, St. John's NF  A1C 5V3
Tel: (709) 754-7482  Direct Line: (709) 757-0307  Fax: 754-7406  

Website: http://www.colabnet.com
  





RE: Help with Html errors not showing errors

2001-12-04 Thread Strichartz, Beth


Thanks for replying,
I caught that one...
Still trying though...

-Original Message-
From: Jeff Martin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:20 PM
To: Struts Users Mailing List
Subject: RE: Help with Html errors not showing errors


You make an Action error with "error.detail" but your messages file has
"errors.detail"?

Jeff

-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:11 PM
To: Struts Users Mailing List
Subject: RE: Help with Html errors not showing errors


I am getting desperate on what to do with the issue below.
Does anyone have any suggestions on what to try next..

-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 1:32 PM
To: 'Struts Users Mailing List'
Subject: Help with Html errors not showing errors


1.  I have the web.xml with the ApplicationResources in it.
2.  I have the tag struts-html at the top of my jsp page.
3.  I am saving errors in the action and forwarding to input..
in Action I have:
errors.add(ActionErrors.GLOBAL_ERROR, 
new
ActionError("error.detail",e.getCauseMessage()));

I save: if (!errors.empty()) {
saveErrors(request, errors);
saveToken(request);
return (new ActionForward(mapping.getInput()));
}

I have the applicationResources.properties and it includes an
errors.detail={0}

I know there are errors on the Web serer, I can see the printstacktrace
an
the logs.





But, Does not output anything...
Help.


This message contains information which may be confidential and
privileged.
Unless you are the addressee  (or authorized to receive for the
addressee),
you may not use, copy or disclose to anyone the message or any
information
contained in the message.  If you have received the message in error,
please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:

For additional commands, e-mail:



This message contains information which may be confidential and
privileged.
Unless you are the addressee  (or authorized to receive for the
addressee),
you may not use, copy or disclose to anyone the message or any
information
contained in the message.  If you have received the message in error,
please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


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




RE: Help with Html errors not showing errors

2001-12-04 Thread Jeff Martin

You make an Action error with "error.detail" but your messages file has
"errors.detail"?

Jeff

-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:11 PM
To: Struts Users Mailing List
Subject: RE: Help with Html errors not showing errors


I am getting desperate on what to do with the issue below.
Does anyone have any suggestions on what to try next..

-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 1:32 PM
To: 'Struts Users Mailing List'
Subject: Help with Html errors not showing errors


1.  I have the web.xml with the ApplicationResources in it.
2.  I have the tag struts-html at the top of my jsp page.
3.  I am saving errors in the action and forwarding to input..
in Action I have:
errors.add(ActionErrors.GLOBAL_ERROR, 
new
ActionError("error.detail",e.getCauseMessage()));

I save: if (!errors.empty()) {
saveErrors(request, errors);
saveToken(request);
return (new ActionForward(mapping.getInput()));
}

I have the applicationResources.properties and it includes an
errors.detail={0}

I know there are errors on the Web serer, I can see the printstacktrace
an
the logs.





But, Does not output anything...
Help.


This message contains information which may be confidential and
privileged.
Unless you are the addressee  (or authorized to receive for the
addressee),
you may not use, copy or disclose to anyone the message or any
information
contained in the message.  If you have received the message in error,
please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:

For additional commands, e-mail:



This message contains information which may be confidential and
privileged.
Unless you are the addressee  (or authorized to receive for the
addressee),
you may not use, copy or disclose to anyone the message or any
information
contained in the message.  If you have received the message in error,
please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Hi

2001-12-04 Thread Scott Fitzgerald

How are you ?
When I saw this screen saver, I immediately thought about you
I am in a harry, I promise you will love it!
<>

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


RE: Help with Html errors not showing errors

2001-12-04 Thread Strichartz, Beth

I am getting desperate on what to do with the issue below.
Does anyone have any suggestions on what to try next..

-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 1:32 PM
To: 'Struts Users Mailing List'
Subject: Help with Html errors not showing errors


1.  I have the web.xml with the ApplicationResources in it.
2.  I have the tag struts-html at the top of my jsp page.
3.  I am saving errors in the action and forwarding to input..
in Action I have:
errors.add(ActionErrors.GLOBAL_ERROR, 
new
ActionError("error.detail",e.getCauseMessage()));

I save: if (!errors.empty()) {
saveErrors(request, errors);
saveToken(request);
return (new ActionForward(mapping.getInput()));
}

I have the applicationResources.properties and it includes an
errors.detail={0}

I know there are errors on the Web serer, I can see the printstacktrace an
the logs.





But, Does not output anything...
Help.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:

For additional commands, e-mail:



This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


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




RE: Seeking Know-How Advice: How Do I Implement Pop-up Error Windows With Struts

2001-12-04 Thread Prengaman.Karen

I wrote my own "errors" custom tag that sends back the javascript to display
the error in a popup window rather than the html sent back by the struts
error tag.  It still uses the ActionErrors that the struts error tag uses,
so none of your other code has to change.

-Karen

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 7:18 PM
To: Struts Users Mailing List
Subject: Re: Seeking Know-How Advice: How Do I Implement Pop-up Error
Windows With Struts


Tough to do - the only solution (work around) I can think of is to have your
error page pop up a new window using javascript - but no real way to tell
the
backend "when you throw an exception, open a new window and display an
error". 
You can only tell the backend to "go to this error page when you throw an
exception".

Matt

--- "Esterkin, Alex" <[EMAIL PROTECTED]> wrote:
> I need to make my error pages displayed in a separate window.   The
> application uses frames.   What Struts mechanism or configuration
> element/attribute can I use to implement target="_blank" functionality for
> error pages?
> 
> Thanks.
> 
> 
>Alex Esterkin 
>  
> =
>   
> 
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

> 


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: mapping.getInput() and request scope beans

2001-12-04 Thread Prengaman.Karen

Thanks for your help, everyone.  

Since I initially set (and compute) the needed request attribute in the
action that first loads the jsp, I specified the action mapping for the
input parameter instead of the actual jsp.  Problem solved!

Thanks again,

Karen

-Original Message-
From: Malcolm Wise [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 4:55 AM
To: 'Struts Users Mailing List'
Subject: RE: mapping.getInput() and request scope beans


Karen,

Yes, you can specify an action mapping for the input parameter, so this is
also a solution.

HTH
Malc

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2001 11:50
To: struts users mailing list
Subject: Re: mapping.getInput() and request scope beans


Hello Karen, (sorry, used th wron address)

I have had a similar problem using the html:selection tag which is at first
used with session beans but I wanted to build request scope objects (I do
not like to let hang aroung junks of session beans...). So what I have done
is to do a request.setAttribute("bean",bean) and have a hidden field in the
form to get the bean. I works quite well up to now.

Hope, this helped
Thomas

-Original Message-
>From : Prengaman.Karen <[EMAIL PROTECTED]>
To : "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Date : 04 December 2001 00:49:13
Subject : mapping.getInput() and request scope beans
Hello,
>
>I have a jsp that displays data and has a very simple one-button form with
>one hidden field.  When this form is submitted, ExitAction is called.  In
>ExitAction's perform method, if a certain condition occurs, I want to
return
>to the calling page.  I do this with the following code:
>
>return new ActionForward(mapping.getInput());
>
>My problem is that my jsp references a request-scope bean, and when
>returning to it, the bean is out of scope.  If I put the bean in the
session
>the problem does not occur (i.e., the jsp can access it), but I would
rather
>leave the bean in the request.
>
>Any thoughts on how I can get around this?  Do I have to specify a jsp file
>in the input parameter in struts-config, or can I specify an action?
>
>Thanks,
>
>Karen
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>
>

>:-) As sceptical as one can be! (-:<



--
Get a free, personalised email address at http://another.com
TXT ALRT! Stop wasting money now. Send FREE, personalised txt
from http://another.com



*
The information contained in this message or any of its
attachments may be privileged and confidential and intended 
for the exclusive use of the addressee. If you are not the
addressee any disclosure, reproduction, distribution or other
dissemination or use of this communication is strictly prohibited
*

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Custom Errors

2001-12-04 Thread Sobkowski, Andrej

  errors.add("customerror", new ActionError("error.customFileError", "",
"9");

with

error.customFileError = Can't process file {0}. Error in line {1}

HTH

Andrej

-Original Message-
From: Régis Melo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 8:00 AM
To: [EMAIL PROTECTED]
Subject: Custom Errors


Hello All,

   I've to print a custom error message in my application like this:

"Can't process file . Error in line 9"

  The  and 9 are parametrers of a message. How can I do this in
struts?

  errors.add("customerror", new ActionError("error.customFileError");
  saveErrors(request,errors);

Thanks in Advance,
___
Régis Melo
[EMAIL PROTECTED]
+55(85)9111-8301

SoftSite Tecnologia
http://www.softsite.com.br
+55(85)261-5266
___


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RES: EJB integrations

2001-12-04 Thread Régis Melo

Rob,

I'm very interesting in a way that You implement this code. Can You show me
a example?

T.I.A.
___
Régis Melo
[EMAIL PROTECTED]
+55(85)9111-8301

SoftSite Tecnologia
http://www.softsite.com.br
+55(85)261-5266
___


-Mensagem original-
De: Robert Parker [mailto:[EMAIL PROTECTED]]
Enviada em: domingo, 2 de dezembro de 2001 23:34
Para: Struts Users Mailing List
Assunto: Re: EJB integrations


My approach has been to limit Struts' knowledge of the app's implementation
details ie EJBs. Thus I use struts actions to hide the HTTP based gui
implementation from the app. Struts actions convert HttpRequest etc into
application centric command objects thus the app knows nothing about HTTP.
My struts actions call methods on an interface which uses the facade
pattern. Hence all the app's functions are encapsulated in this facade.
Hence I can create different facade implementations ie one based on EJB, one
based on DAO and these can be dynamically configured at runtime...

Hence Struts knows nothing of the backend (EJB,DAO etc) and the backend
knows nothing about the frontend!

regards

Rob

- Original Message -
From: "Adam Young" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 03, 2001 4:06 AM
Subject: EJB integrations


> My application has a tabbed list of forms.  Based on user permissions, I
> want to show a specific list of tabs.  The tabs are images, one for
> selected, one for non selected.
>
> Each tab relates to a JSP.  It also has two struts actions associated
> with it, one for load, one for submit.  Ideally, the logic used to do
> these two things would reside in EJBs, and communicate with Struts
> through relatively simple value objects.  As things evolve, however ,I
> find more and more logic in the Actions.
>
> Thus I am starting to think of a major refactoring with the following
> objects:
> I'll use a psedo code that should be understandable:
>
> ApplicationFeature {
>  tabUpImage;
>  tabDownImage;
>  permission;
>  formJsp; //I want this to be a JSP fragement so I get all of the
> benfits of the custom tags
>  templateJSP;  /*reposnible for getting and rendering the formJsp, etc.*/
>
> either{
>   strutsLoadAction;//what to call before the feature Page is displayed
>   strutsSubmitAction//what to call when the featurePage submit button is
> pressed
> }or{
>   EJBValueObject ejbLoadAction();//what to called before the feature
> Page is displayed
>   void ejbSubmitAction(EJBValueObject)//what to call when the
> featurePage submit button is pressed
> }
>
> }
>
> I don't want to parallel struts with an EJB framework that does the same
> thing.  I like compile time binding and want to stick with struts being
> the most fluid/loosely typed portion of the code.
>
> How have other people standardized the connection between struts and
> EJBs?  Would It be desireable to make struts EJB aware, so that instead
> of creating a simple java object, it creates a reference to an EJB?
>  What would you do about the getting values out of the HttpRequest and
> response objects, such as attributes.  I suppose you could make some
> sort of optional pre and post processor. but that could really
> complicate the logic.
>
> If this is something that has been beaten to death already or has been
> solved in some portion of the Struts tree, please point me to it
> politely, and I will rebury my head in the sand.
>
>
>
> --
> 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: 




Custom Errors

2001-12-04 Thread Régis Melo

Hello All,

   I've to print a custom error message in my application like this:

"Can't process file . Error in line 9"

  The  and 9 are parametrers of a message. How can I do this in
struts?

  errors.add("customerror", new ActionError("error.customFileError");
  saveErrors(request,errors);

Thanks in Advance,
___
Régis Melo
[EMAIL PROTECTED]
+55(85)9111-8301

SoftSite Tecnologia
http://www.softsite.com.br
+55(85)261-5266
___


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




Help with Html errors not showing errors

2001-12-04 Thread Strichartz, Beth

1.  I have the web.xml with the ApplicationResources in it.
2.  I have the tag struts-html at the top of my jsp page.
3.  I am saving errors in the action and forwarding to input..
in Action I have:
errors.add(ActionErrors.GLOBAL_ERROR, 
new
ActionError("error.detail",e.getCauseMessage()));

I save: if (!errors.empty()) {
saveErrors(request, errors);
saveToken(request);
return (new ActionForward(mapping.getInput()));
}

I have the applicationResources.properties and it includes an
errors.detail={0}

I know there are errors on the Web serer, I can see the printstacktrace an
the logs.





But, Does not output anything...
Help.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


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




RE: Problem with Index

2001-12-04 Thread Strichartz, Beth

Thanks,
Works awesome!

-Original Message-
From: Sobkowski, Andrej [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 12:21 PM
To: 'Struts Users Mailing List'
Subject: RE: Problem with Index


Beth,

I haven't compiled the following but I guess you should use either
Integer.valueOf(String).intValue() OR
Integer.parseInt(String)
that return an int instead of String.valueOf(int) that returns a String.

A second suggestion would be to use the logic JSP tags "greaterThan" or
similar.

Ex:

  

  


HTH

Andrej
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 11:56 AM
To: 'Struts Users Mailing List'
Subject: Problem with Index


In an iterate,
if I do this 

<%=Index%>

the index prints out to the screen for me.


But, how do I do this??

<% if (String.valueOf(Index)) > 0) {%>

<% } %>
To check the value of the index??
Thanks,
Beth.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:

For additional commands, e-mail:



This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


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




RE: OT- dynamic survey?

2001-12-04 Thread Flying Cloud

Have a look at the open source ePoll project at www.jcorporate.com. It is
built with Expresso/Struts.

> -Original Message-
> From: Phillip Rhodes [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 04, 2001 8:05 AM
> To: [EMAIL PROTECTED]
> Subject: OT- dynamic survey?
>
>
> I am looking for a dynamic survey tool.  Declare questions, sections,
> branches, etc.
>
> If I can't find one, I will be writing one with struts.   Let me know if
> you have any additional thoughts, requirements for such a tool, since it
> will be open source.
>
> Thanks,
> Phillip
>
>
> _
> 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: 




Why does my org.apache.struts.action.ActionServlet start twice?

2001-12-04 Thread Alex Colic

Hi,

I have a web app that is using org.apache.struts.action.ActionServlet.

When I start the app in JBuilder 4 Ent along with Tomcat 3 The actionServlet
loads twice.

Any ideas why?

Alex


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




RE: Problem with Index

2001-12-04 Thread Sobkowski, Andrej

Beth,

I haven't compiled the following but I guess you should use either
Integer.valueOf(String).intValue() OR
Integer.parseInt(String)
that return an int instead of String.valueOf(int) that returns a String.

A second suggestion would be to use the logic JSP tags "greaterThan" or
similar.

Ex:

  

  


HTH

Andrej
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 11:56 AM
To: 'Struts Users Mailing List'
Subject: Problem with Index


In an iterate,
if I do this 

<%=Index%>

the index prints out to the screen for me.


But, how do I do this??

<% if (String.valueOf(Index)) > 0) {%>

<% } %>
To check the value of the index??
Thanks,
Beth.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:

For additional commands, e-mail:




Re: mapping.getInput() and request scope beans

2001-12-04 Thread Tim Eiring

I had the same problem.
When my condition to send back to the calling page is met I:

//Instantiate a new form bean
Form form =  new Form();

//here I set some of the form properties
//form.setIdField("1234");

//set the mapping attribute to the name of my form in struts-config.xml
mapping.setAttribute("exampleForm");

//then put your newly instantiated form in the request
request.setAttribute(mapping.getAttribute(), form );

When control is returned to the calling page, the new form will be in the request.


Hope this helps, 

Tim


Timothy Eiring
Consultant
Greenbrier and Russel, Inc.
250 N. Sunny Slope Road
Suite 375
Brookfield, WI 53005

262.780.3400
fax: 262.780.3410
cell: 414.732.9986
www.gr.com

>>> [EMAIL PROTECTED] 12/03/01 06:49PM >>>
Hello,

I have a jsp that displays data and has a very simple one-button form with
one hidden field.  When this form is submitted, ExitAction is called.  In
ExitAction's perform method, if a certain condition occurs, I want to return
to the calling page.  I do this with the following code:

return new ActionForward(mapping.getInput());

My problem is that my jsp references a request-scope bean, and when
returning to it, the bean is out of scope.  If I put the bean in the session
the problem does not occur (i.e., the jsp can access it), but I would rather
leave the bean in the request.

Any thoughts on how I can get around this?  Do I have to specify a jsp file
in the input parameter in struts-config, or can I specify an action?

Thanks,

Karen

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



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




how doI access the Error (or Errors) object in a jsp file?

2001-12-04 Thread Mohammed

Hi,

In my register.jsp file I want to acces the Error object so I can decide
depending on error property if I include a form or not.

is there a way I can access the error Object ( or Errors) in a jsp file?
under which key does the ActionServlet save the Errors?

Thanks for any hint

Mohammed


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




RE: Pb when using data-source

2001-12-04 Thread Tom Lister

Is it within
 

:-)
Regards
[EMAIL PROTECTED]  
Advanced Banking Solutions Limited
+44 (0)20 7448 9146
º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
¸¸,ø¤º°'°º¤ø,¸¸,
This email and any attachments are confidential. They may contain privileged

information or useless trivia and are intended for the named addressee (s)
only. 
They must not be distributed without our consent. If you are not the
intended recipient, 
please notify us immediately and do not disclose, distribute, or retain this
email or any
part of it. Unless expressly stated, opinions in this email are those of the

individual sender, and not of Advanced Banking Solutions Limited. We believe

but do not warrant that this e-mail and any attachments are virus free. You
must
therefore take full responsibility for virus checking. Advanced Banking
Solutions
Limited and its subsidiaries reserve the right to monitor all email
communications
through their networks. 
º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
¸¸,ø¤º°'°º¤ø,¸¸,


-Original Message-
From:   VIAUD Cédric [SMTP:[EMAIL PROTECTED]]
Sent:   04 December 2001 16:12
To: '[EMAIL PROTECTED]'
Subject:Pb when using data-source

When I declare a data-source in "struts-config.xml", i get a parsing
problem.

javax.servlet.ServletException: Parsing error processing resource
path
/WEB-INF/struts-config.xm

Here is my data-source.


  
  
  
  
  
  
  
  


Can someone tell me what is wrong with this ?

Thanks,

Cédric

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




"Split Thread" with 2 Browsers

2001-12-04 Thread John Regan

This is not a pure struts question but i am hoping the framework might help
with this issue.

Desired functionality:
User opens browser, clicks through several pages as a certain "user type"
then opens a second browser because they want to be a different "user type".
The user should be able to proceed in either browser without session
information being overwritten in the other browser's session.  

Has anyone implemented any similar functionality?

Note: using tomcat 4.x as http server and JSP container.



Problem with Index

2001-12-04 Thread Strichartz, Beth

In an iterate,
if I do this 

<%=Index%>

the index prints out to the screen for me.


But, how do I do this??

<% if (String.valueOf(Index)) > 0) {%>

<% } %>
To check the value of the index??
Thanks,
Beth.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


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




Re: Templates

2001-12-04 Thread Cedric Dumoulin


  You can't specify an action as template attribute. This is because action do a
forward, and jsp forbid forward once you have already written something in
response.
  Try to use Tiles instead (with appropriate tiles servlet). It should work.

Cedric

Pete Serafin wrote:

> I am trying to use templates to handle presentation layout.  The issue
> Im having is that I would like some of my content to go through the
> servlet controller.  For example,  one of my pages looks like this:
>
> Example.jsp
> <%@ taglib uri="/WEB-INF/taglibs/struts-template.tld" prefix="template"
> %>
> <%@ taglib uri="/WEB-INF/taglibs/struts-bean.tld" prefix="bean" %>
>
> 
>  
>  
>  
>  
> 
>
> My problem is that I get an error in the "content" (which maps to
> hardware.do)  frame which says:
>
> "javax.servlet.jsp.JspException: Servlet Exception"
>
> Any ideas???
>
> Pete Serafin
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




RE: Need help in Running employeelist example in VAJ3.5.3 and WTE

2001-12-04 Thread Frank Lawlor

> when i try to acess the application in browser
> 
> http://localhost:808/employeelist/index.jsp
> 
> it says  following error.
> 
> An error has occured while processing
> request:http://localhost:8080/employeelist/index.jsp
> Message: Server caught unhandled exception from servlet [jsp]: Missing
> message for key index.heading

Take a look in the log files and see if there
are any errors or odd messages during initialization
of the app.


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




Templates

2001-12-04 Thread Pete Serafin

I am trying to use templates to handle presentation layout.  The issue
Im having is that I would like some of my content to go through the
servlet controller.  For example,  one of my pages looks like this:

Example.jsp
<%@ taglib uri="/WEB-INF/taglibs/struts-template.tld" prefix="template"
%>
<%@ taglib uri="/WEB-INF/taglibs/struts-bean.tld" prefix="bean" %>


 
 
 
 


My problem is that I get an error in the "content" (which maps to
hardware.do)  frame which says:

"javax.servlet.jsp.JspException: Servlet Exception"

Any ideas???


Pete Serafin


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




RE: Struts vs. WebLogic 6.x

2001-12-04 Thread Regis Brochu

What kind of problems ? We are using Struts with Weblogic 6.1sp1 and
everything
seem to work fine !

Redg


-Original Message-
From: Alex Lin [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 3:02 PM
To: Struts Users Mailing List
Subject: Struts vs. WebLogic 6.x


Hello,

After testing the struts nighty build (beyond v1.0), i have found problems
of Struts on WebLogic 6.x.

1. The nightly build, including the common*.jar, seems mess up
   the weblogic.  I have deployed several bravepoint solutions onto
   weblogic 6.0 sp1, sp2, 6.1 still with MANY strange results.

   The solutions work fine on Tomcat 4.0

2. I had replaced several previous working struts projects with
   the latest build.  Problem happened again.

Both are confirmed after working together with another developer.

Do you have similar problem work Struts (nightly build) with WebLogic ?
Could i have a small example from you.


Thanks,
Alex Lin


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




RE: Using JBuilder5 with Struts v1.1 (nightly build)

2001-12-04 Thread Chen, Yong

I think the problem with Weblogic is the JAXP. I had a similar issue when I
try to use xtags from strub tablib library. Weblogic somehow doesn't like
JAXP. I got some workaround to including different libraries when packaging
the war file for weblogic.

Yong Chen
713.230.3355


-Original Message-
From: Alex Lin [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 8:34 PM
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Using JBuilder5 with Struts v1.1 (nightly build)


Hi,

The following reference is great.  After following the procedure below, and
deploy
the application into Tomcat, it works great.
http://www1.tramsasp.com/?section=dev&page=jb5Struts11.html&PHPSESSID=a015bb
99a7d679ccc70afa6305b5a8cb

However, if i deploy the same WAR (or directory) into WebLogic 6.x, it
doesn't work.
War file in web container is supposed to be universal, at least between
Tomcat
and WebLogic.  I couldn't figure out why.  Do you have the similar
experience on using
Struts 1.1 with WebLogic 6 ?

Thanks,
Alex


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Pb when using data-source

2001-12-04 Thread VIAUD Cédric

When I declare a data-source in "struts-config.xml", i get a parsing
problem.

javax.servlet.ServletException: Parsing error processing resource path
/WEB-INF/struts-config.xm

Here is my data-source.


  
  
  
  
  
  
  
  


Can someone tell me what is wrong with this ?

Thanks,

Cédric



RE: Re-using JavaBeans as ActionForm Beans

2001-12-04 Thread wbchmura


Hey Stephen,

If I used containment, would Struts still be able to populate the set / 
get variables still, or would I need to wrap all of those?

Thanks!

Bill



-Original Message-
From: sowens [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:58 AM
To: struts-user
Subject: RE: Re-using JavaBeans as ActionForm Beans


Bill, 

The easiest way to reuse these is through containment. Just put an
instance of your bean as an instance variable of the actionFormBean and
expose get/set methods from the actionForm to give access to the
instance var. 

So, all you'd need would be two methods on your actionForm:
MyBean getModelRequest();
void setModelRequest( MyBean bean );

which get/set the underlying instance var: 
MyBean _GoodName = new MyBean();

you should make sure you don't return null from the get method. Then you
can use dot notation in your jsp files to reference the properties of
the contained bean, like so:



You likely won't need to use the setModelRequest method unless one of
your action classes wants to prepopulate the form with an existing
instance.

Hope this helps,

Stephen Owens
Corner Software

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:53 AM
To: [EMAIL PROTECTED]
Subject: Re-using JavaBeans as ActionForm Beans



I have some beans that represent parts of my application (duh).  For 
example I have a bean that represents all of the information for a given

request.  It contains name, request, time, etc, etc...

I want to re-use this bean (or object) as part of an actionform bean.

I get a little weak with some of the OO stuff in Java and this is where 
I run into problems.

I would like create an ActionForm Bean that uses the original bean and 
adds on the verify method.  This would let me keep the original bean for

other uses and even use it in other ActionForms.  I remember reading how

to do it somewhere but I cannot find it again.

I cannot extend the original because the ActionForm bean needs to extend

the ActionForm class.  

If someone can point me in the right direction I can do the rest of the 
research and tinkering myself...

Thanks much



Bill Chmura
Ensign-Bickford Industries, Inc.
Information Technologies Department



--
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: taglibs and jsp:include

2001-12-04 Thread Cedric Dumoulin


  Hi,

  Have you check Tiles library ? Maybe it already provides what you need ...

Cedric

Martin Samm wrote:

> this is not directly Struts but seemed the best qualified forum (it is for a
> struts based app however).
> I'm using a custom tag to decide which jsp to include (based on some request
> variables) - the tag then uses a JSP writer to create the  -
> trouble is the ' tag is just written out and not 'interpretted',
> i.e. the page isn't included. How do i get the container to interpret the
> include?
> --
> Martin Samm
> [EMAIL PROTECTED]
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Re: Re-using JavaBeans as ActionForm Beans (Clarification)

2001-12-04 Thread Ted Husted

This really only works if all your properties are Strings or booleans.
Binary types can't be transmitted by HTTP, and so can't be represented
to the user for correction. The ActionForm is a *buffer* to be used by
the HTML tags. Once the data is validated, it can be converted and
transferred to your application's JavaBeans. 

We tried making the ActionForm an interface in the first place, but, in
practice, there were simply too many side effects. 

http://www.mail-archive.com/struts-dev%40jakarta.apache.org/msg03590.html

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

If your JavaBean only uses String and boolean properties, and doesn't
make immediate state changes to your model, you can nest it and use the
dotted syntax. Otherwise, it's a wild goose chase.

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


[EMAIL PROTECTED] wrote:
> 
> Yes, I can definately do that - no problem there.  The problem is that I
> want to keep the original bean intact so that I can extend (or whatever
> the proper term will be) it to be used on several forms.
> 
> For example - lets say I have the original bean that has name and id.
> 
> I want to make one action form that validates the name and id
> differently than the a seperate actionform.  This way there could be two
> different validations, but only one bean in the back to modify
> (hopefully) if I wanted to add some new properties...
> 
> Hope that makes more sense than my first post!
> 
> Thanks
> 
> Bill
> 
> -Original Message-
> From: gcoles [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 04, 2001 9:54 AM
> To: struts-user
> Subject: RE: Re-using JavaBeans as ActionForm Beans
> 
> You can make your existing bean extend ActionForm. This will give you
> access
> to its methods, which you only need to override if you want to change
> the
> default behaviour, like for validate. I don't see why you can't do this,
> but
> I can see that you might not want to if you want to extend some other
> class
> instead.
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 04, 2001 9:53 AM
> To: [EMAIL PROTECTED]
> Subject: Re-using JavaBeans as ActionForm Beans
> 
> I have some beans that represent parts of my application (duh).  For
> example I have a bean that represents all of the information for a given
> request.  It contains name, request, time, etc, etc... to
> 
> I want to re-use this bean (or object) as part of an actionform bean.
> 
> I get a little weak with some of the OO stuff in Java and this is where
> I run into problems.
> 
> I would like create an ActionForm Bean that uses the original bean and
> adds on the verify method.  This would let me keep the original bean for
> other uses and even use it in other ActionForms.  I remember reading how
> to do it somewhere but I cannot find it again.
> 
> I cannot extend the original because the ActionForm bean needs to extend
> the ActionForm class.
> 
> If someone can point me in the right direction I can do the rest of the
> research and tinkering myself...
> 
> Thanks much
> 
> Bill Chmura
> Ensign-Bickford Industries, Inc.
> Information Technologies Department
> 
> --
> 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: 

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




Passing several parameters in a html link

2001-12-04 Thread Frédéric Houbie - ABSIS-GROUP

Hi,


I need to build html:link with 2 parameters, one coming from an iterate tag
and one from the request to pass to the following page.

How can I do that ?

Frederic



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




Re: taglibs and jsp:include

2001-12-04 Thread Martin Samm

thats great, thanks very much

On Monday 03 Dec 2001 6:29 pm, you wrote:
> > "Martin" == Martin Samm <[EMAIL PROTECTED]> writes:
>
> Martin> this is not directly Struts but seemed the best qualified forum
> (it is for a Martin> struts based app however).
> Martin> I'm using a custom tag to decide which jsp to include (based on
> some request Martin> variables) - the tag then uses a JSP writer to create
> the  - Martin> trouble is the ' tag is just
> written out and not 'interpretted', Martin> i.e. the page isn't included.
> How do i get the container to interpret the Martin> include?
>
> Generating " include mechanism, using a variation of "RequestDispatcher.include()".

-- 
Martin Samm
[EMAIL PROTECTED]

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




ApplicationResources.properties

2001-12-04 Thread Debasish Ghosh

Hi -

How can I check if the correct ApplicationResources.properties has been
loaded or not ?
I tried using the following :-


  
ERROR:  Application resources not loaded -- check servlet container
logs for error messages.
  


By doing this, I do not get the above error even if I remove
ApplicationResources.properties from the hierarchy. The exception is thrown
when it tries to do the first getMessage().

Thanks.

- Debasish


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




Re: mapping.getInput() and request scope beans

2001-12-04 Thread twrichter

Hello Karen,

I have had a similar problem using the html:selection tag which is at first used with 
session beans but I wanted to build request scope objects (I do not like to let hang 
aroung junks of session beans...). So what I have done is to do a 
request.setAttribute("bean",bean) and have a hidden field in the form to get the bean. 
I works quite well up to now.

Hope, this helped
Thomas

-Original Message-
>From : Prengaman.Karen <[EMAIL PROTECTED]>
To : “'[EMAIL PROTECTED]'“ <[EMAIL PROTECTED]>
Date : 04 December 2001 00:49:13
Subject : mapping.getInput() and request scope beans
Hello,
>
>I have a jsp that displays data and has a very simple one-button form with
>one hidden field.  When this form is submitted, ExitAction is called.  In
>ExitAction's perform method, if a certain condition occurs, I want to return
>to the calling page.  I do this with the following code:
>
>return new ActionForward(mapping.getInput());
>
>My problem is that my jsp references a request-scope bean, and when
>returning to it, the bean is out of scope.  If I put the bean in the session
>the problem does not occur (i.e., the jsp can access it), but I would rather
>leave the bean in the request.
>
>Any thoughts on how I can get around this?  Do I have to specify a jsp file
>in the input parameter in struts-config, or can I specify an action?
>
>Thanks,
>
>Karen
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>

>:-) As sceptical as one can be! (-:<



--
Personalise your email address at http://another.com
THINK: your slogan or email address on a gorgeous mousemat
CLICK HERE http://another-shop.com


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


Passing several parameters in a html link

2001-12-04 Thread Frédéric Houbie - ABSIS-GROUP


Hi,


I need to build html:link with 2 parameters, one coming from an iterate tag
and one from the request to pass it to the following page.

How can I do that ?

Frederic



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




Re: Quickly change page to prevent user to click severaltimeson a link

2001-12-04 Thread BONNET Francois-Xavier

Sorry fo missing attached file.

Here is the file (should be...)

And the code :




function wait() {
document.open("text/html","new")
document.writeln("Loading...")
document.close()
}

http://jakarta.apache.org/struts/"; onclick="javascript:wait()">Struts web 
site



- Original Message -
From: "BONNET Francois-Xavier" <[EMAIL PROTECTED]>
Date: Tuesday, December 4, 2001 3:48 pm
Subject: Re: Quickly change page to prevent user to click several timeson a link

> You could use some very simple javascript to generate a waiting page untill server 
> responds.
> 
> See attached html file.
> 
> - Original Message -
> From: Frédéric Houbie - ABSIS-GROUP <[EMAIL PROTECTED]>
> Date: Tuesday, December 4, 2001 3:09 pm
> Subject: Quickly change page to prevent user to click several times on a link
> 
> > Hi,
> > 
> > I have an application that generate PDF report (using FO). The problem is
> > that when a user click on a link to generate the report, it takes a long
> > time, but the actual page stays until the action bean redirect the user to
> > the generated report. But the user can click several times on the link when
> > he is waiting (grr). How could I transfer him to a 'waiting page'
> > then transfer him to the generated report
> > 
> > Thanks
> > 
> > Frédéric
> > 
> > 
> > 
> > --
> > 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: URL rewriting and cookies

2001-12-04 Thread Ted Husted

The img tag is mainly there in case the images in a secure location, and
the user needs to be logged in to get them. In which case, URL rewriting
would be required to retrieve them (or the user would be asked to log in
to retrieve each image ;-(

You are not required to use the img tag if the images are in a public
location. If the images are on another server, you may want to pass the
URL in a bean, or as part of your own tag. If not, you can also use the
conventional http://www.husted.com/struts/


Aapo Laakkonen wrote:
> 
> > The Struts tag is doing this because this is the
> > result of URL rewriting. The syntax is "strange",
> > as you put it, because the session id is encoded
> > as a path parameter, and not part of the query
> > string. This is all explained in the Servlet spec.
> 
> Is it possible to fix this behavior somehow? What
> do you mean about strange syntax? And I'm still not
> sure that where the problem exists. Are you saying
> that IBM WebSphere 3.5.4 on AIX is somehow broken
> or doesn't implement Servlet specification as it
> should? I'm quite sure that there is some other
> people who are using struts on WebSphere. Do you
> have this kind of problems when URL-rewriting is
> turned on?
> 
> Kind regards
> Aapo Laakkonen
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




Re: Quickly change page to prevent user to click several timeson a link

2001-12-04 Thread BONNET Francois-Xavier

You could use some very simple javascript to generate a waiting page untill server 
responds.

See attached html file.

- Original Message -
From: Frédéric Houbie - ABSIS-GROUP <[EMAIL PROTECTED]>
Date: Tuesday, December 4, 2001 3:09 pm
Subject: Quickly change page to prevent user to click several times on a link

> Hi,
> 
> I have an application that generate PDF report (using FO). The problem is
> that when a user click on a link to generate the report, it takes a long
> time, but the actual page stays until the action bean redirect the user to
> the generated report. But the user can click several times on the link when
> he is waiting (grr). How could I transfer him to a 'waiting page'
> then transfer him to the generated report
> 
> Thanks
> 
> Frédéric
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
>



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


Re: Error tag problem

2001-12-04 Thread Pete Serafin

Sean,

you are correct, my ApplicationResources file is in my /classes directory,
therefor, I just have the file name listed.  Is there anything else you did to
get the error handling working?


Pete

Sean Owen wrote:

> I believe your web.xml needs to be more like this:
>
>   
>application
>com.myapp.web.ApplicationResources
>  
>
> The ApplicationResources.properties should end up in the same directory as
> the compiled .class files for com.myapp.web. I suggest you copy it there in
> your build process. Anyhow this setup works for me.
>
> Sean
>
> - Original Message -
> From: "Pete Serafin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 04, 2001 2:46 PM
> Subject: Error tag problem
>
> > All,
> >
> > I am having a similar problem to Binh
> > (
> > http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18646.html
> >
> > ).
> > I was wondering if anyone has a solution as to why I cannot get the
> >  tag to work. I did notice that Struts docs say:
> >
> > "In order to use this tag successfully, you must have defined an
> > application scope MessageResources bean under the default attribute
> > name, with at least the following message keys: errors.header,
> > errors.footer "
> >
> > Where is the MessageResources bean instantiated and what is the "default
> >
> > name" mentioned?
> >
> > The following is how my app is set up according to my web.xml,
> > ApplicationResources.properties, strtus-config.xml,  and my ActionForm
> > and jsp:
> > 1) ApplicationResources.properties:
> >
> > errors.header=
> > errors.footer=
> >
> > 2) web.xml
> > ...
> >  
> >   application
> >   ApplicationResources
> > 
> >...
> >
> > 3)struts-config.xml
> >
> >  > input="/login.jsp"
> > name="loginForm"
> > scope="request"
> > validate="true">
> >   
> >   
> > 
> >
> > 4) LoginForm.java
> >  
> >  public ActionErrors validate(ActionMapping
> > mapping,HttpServletRequest request) {
> >
> > ActionErrors errors = new ActionErrors();
> > if ((userID == null) || (userID.length() < 1))
> >  errors.add("login",  new
> > ActionError("error.userID.required"));
> >  return errors;
> > }
> >...
> >
> > 5)  login.jsp
> > ...
> ><%@ taglib uri="/WEB-INF/taglibs/struts-html.tld" prefix="html" %>
> > ...
> >
> >...
> >
> >
> > Im not getting the errors tag to print anything to the page, but the
> > validation is returning it to the form properly.
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
>
> _
>
> 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: Re-using JavaBeans as ActionForm Beans

2001-12-04 Thread wbchmura


Hi Andrej,

I agree that mixing the business and presentation layers is a bad thing. 
 I dont think I am trying to do that here.

I am just trying to do facilitiate code re-use and make it easier to 
maintain in the future.

I don't think there is any good way to do it, I have been looking at 
interfaces, but dont think thats gonna hit it either...

Sigh

-Original Message-
From: Andrej.Sobkowski [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 10:02 AM
To: struts-user
Subject: RE: Re-using JavaBeans as ActionForm Beans


Hello,

mixing your ActionForms with your business objects is not optimal. You 
will
lose the ability to use more "business-related  types" such as
java.util.Date (ActionForms mainly allow String only) - and also somehow
break the layered architecture (separation vs business processing).

Check out this past discussion thread:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18315.html

HTH

Andrej


-Original Message-
From: George M. Coles [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:54 AM
To: 'Struts Users Mailing List'
Subject: RE: Re-using JavaBeans as ActionForm Beans


You can make your existing bean extend ActionForm. This will give you 
access
to its methods, which you only need to override if you want to change 
the
default behaviour, like for validate. I don't see why you can't do this, 
but
I can see that you might not want to if you want to extend some other 
class
instead.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:53 AM
To: [EMAIL PROTECTED]
Subject: Re-using JavaBeans as ActionForm Beans



I have some beans that represent parts of my application (duh).  For
example I have a bean that represents all of the information for a given
request.  It contains name, request, time, etc, etc... to

I want to re-use this bean (or object) as part of an actionform bean.

I get a little weak with some of the OO stuff in Java and this is where
I run into problems.

I would like create an ActionForm Bean that uses the original bean and
adds on the verify method.  This would let me keep the original bean for
other uses and even use it in other ActionForms.  I remember reading how
to do it somewhere but I cannot find it again.

I cannot extend the original because the ActionForm bean needs to extend
the ActionForm class.

If someone can point me in the right direction I can do the rest of the
research and tinkering myself...

Thanks much



Bill Chmura
Ensign-Bickford Industries, Inc.
Information Technologies Department



--
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: Error tag problem

2001-12-04 Thread Sean Owen

I believe your web.xml needs to be more like this:

  
   application
   com.myapp.web.ApplicationResources
 

The ApplicationResources.properties should end up in the same directory as
the compiled .class files for com.myapp.web. I suggest you copy it there in
your build process. Anyhow this setup works for me.


Sean


- Original Message -
From: "Pete Serafin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 2:46 PM
Subject: Error tag problem


> All,
>
> I am having a similar problem to Binh
> (
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18646.html
>
> ).
> I was wondering if anyone has a solution as to why I cannot get the
>  tag to work. I did notice that Struts docs say:
>
> "In order to use this tag successfully, you must have defined an
> application scope MessageResources bean under the default attribute
> name, with at least the following message keys: errors.header,
> errors.footer "
>
> Where is the MessageResources bean instantiated and what is the "default
>
> name" mentioned?
>
> The following is how my app is set up according to my web.xml,
> ApplicationResources.properties, strtus-config.xml,  and my ActionForm
> and jsp:
> 1) ApplicationResources.properties:
>
> errors.header=
> errors.footer=
>
> 2) web.xml
> ...
>  
>   application
>   ApplicationResources
> 
>...
>
> 3)struts-config.xml
>
>  input="/login.jsp"
> name="loginForm"
> scope="request"
> validate="true">
>   
>   
> 
>
> 4) LoginForm.java
>  
>  public ActionErrors validate(ActionMapping
> mapping,HttpServletRequest request) {
>
> ActionErrors errors = new ActionErrors();
> if ((userID == null) || (userID.length() < 1))
>  errors.add("login",  new
> ActionError("error.userID.required"));
>  return errors;
> }
>...
>
> 5)  login.jsp
> ...
><%@ taglib uri="/WEB-INF/taglibs/struts-html.tld" prefix="html" %>
> ...
>
>...
>
>
> Im not getting the errors tag to print anything to the page, but the
> validation is returning it to the form properly.
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



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


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




First visit to a form

2001-12-04 Thread Dave J Dandeneau

When using the validator framework is it best to visit the action on the
first visit or to send the user to a jsp which submits to an action
which then goes back the the jsp if there are errors? The other option
would be to sent them directly to the jsp on the first attempt.

Thanks,
dave



RE: Quickly change page to prevent user to click several times on a link

2001-12-04 Thread Frédéric Houbie - ABSIS-GROUP

But I trigger a Action Servlet in fact, can I forward to a JSP page that
refresh after 0" and execute my action Servlet ?

Frederic

-Original Message-
From: Daniel WAMARA [mailto:[EMAIL PROTECTED]]
Sent: mardi 4 décembre 2001 16:17
To: [EMAIL PROTECTED]
Subject: RE: Quickly change page to prevent user to click several times
on a link


I think that normally, according to the JSP specification, you can not
fowrdard them to an html page but only to a JSP so send them to a JSP and
put the refresh tag in the head, I did it last week and it works.

Daniel WAMARA


>From: "Jeff Martin" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE: Quickly change page to prevent user to click several times on
>a link
>Date: Tue, 4 Dec 2001 10:11:32 -0500
>
>Send them to an html page with a meta-refresh tag to automatically
>transfer him to the pdf-generating page.
>
>-Original Message-
>From: Frédéric Houbie - ABSIS-GROUP [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, December 04, 2001 10:09 AM
>To: Struts-User
>Subject: Quickly change page to prevent user to click several times on a
>link
>
>
>Hi,
>
>I have an application that generate PDF report (using FO). The problem
>is
>that when a user click on a link to generate the report, it takes a long
>time, but the actual page stays until the action bean redirect the user
>to
>the generated report. But the user can click several times on the link
>when
>he is waiting (grr). How could I transfer him to a 'waiting
>page'
>then transfer him to the generated report
>
>Thanks
>
>Frédéric
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>


_
Téléchargez MSN Explorer gratuitement à l'adresse
http://explorer.msn.fr/intl.asp


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Quickly change page to prevent user to click several times on a link

2001-12-04 Thread Jeff Martin

Exactly. Forward them to a JSP page that looks like:



http://pdf_generating_servlet_or_jsp"; />


Some nice please wait message here.



Note the odd quoting of CONTENT and URL is intended. The browser will
display this temporary page until it can load the next page -- the pdf.

Jeff

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




Re: Could not locate TLD META-INF/taglib.tld

2001-12-04 Thread Andy Noble

Hi Daniel,

I had this problem also, but only when using Forte v3 . I found my solution,
but it obviously won't work if you're not using forte.
I kept my TLDs in /WEB-INF/lib/tlds. The Forte application doesn't seem to
load all the subdirectories in to memory when the project is first opened.
So I had to manually open the TLD directory in Forte before I could
successfully compile/launch it.

I know it's unlikely to be this in your case, but I thought I'd let you
know.

Regards
Andy

- Original Message -
From: Daniel WAMARA <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 03, 2001 3:29 PM
Subject: Could not locate TLD META-INF/taglib.tld


> Hi everybody,
>
> I got this error every time I want to launch a Jsp with some struts tags
in
> that, I really don't know why.
>
> I've try to take a look on the mailing list but the two answers I've found
> (http://www.mail-archive.com/struts-user@jakarta.apache.org/msg07550.html
> and
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg02380.html)
> doesn't seem to be my solution for that problem.
>
> I got some others Struts applications and they work well, except the one
> that gives back this error, someone can help ?
>
> Daniel WAMARA
>
> _
> Téléchargez MSN Explorer gratuitement à l'adresse
> http://explorer.msn.fr/intl.asp
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Quickly change page to prevent user to click several times on a link

2001-12-04 Thread Sobkowski, Andrej

Use tokens (chech out the *Token*(..) methods in the Action class) to ensure
that the user submits the form only once... 

Andrej

-Original Message-
From: Frédéric Houbie - ABSIS-GROUP [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 10:09 AM
To: Struts-User
Subject: Quickly change page to prevent user to click several times on a
link


Hi,

I have an application that generate PDF report (using FO). The problem is
that when a user click on a link to generate the report, it takes a long
time, but the actual page stays until the action bean redirect the user to
the generated report. But the user can click several times on the link when
he is waiting (grr). How could I transfer him to a 'waiting page'
then transfer him to the generated report

Thanks

Frédéric



--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: Quickly change page to prevent user to click several times on a link

2001-12-04 Thread Daniel WAMARA

I think that normally, according to the JSP specification, you can not 
fowrdard them to an html page but only to a JSP so send them to a JSP and 
put the refresh tag in the head, I did it last week and it works.

Daniel WAMARA


>From: "Jeff Martin" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE: Quickly change page to prevent user to click several times on 
>a link
>Date: Tue, 4 Dec 2001 10:11:32 -0500
>
>Send them to an html page with a meta-refresh tag to automatically
>transfer him to the pdf-generating page.
>
>-Original Message-
>From: Frédéric Houbie - ABSIS-GROUP [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, December 04, 2001 10:09 AM
>To: Struts-User
>Subject: Quickly change page to prevent user to click several times on a
>link
>
>
>Hi,
>
>I have an application that generate PDF report (using FO). The problem
>is
>that when a user click on a link to generate the report, it takes a long
>time, but the actual page stays until the action bean redirect the user
>to
>the generated report. But the user can click several times on the link
>when
>he is waiting (grr). How could I transfer him to a 'waiting
>page'
>then transfer him to the generated report
>
>Thanks
>
>Frédéric
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>


_
Téléchargez MSN Explorer gratuitement à l'adresse 
http://explorer.msn.fr/intl.asp


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




RE: Quickly change page to prevent user to click several times on a link

2001-12-04 Thread Jeff Martin

Send them to an html page with a meta-refresh tag to automatically
transfer him to the pdf-generating page.

-Original Message-
From: Frédéric Houbie - ABSIS-GROUP [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 10:09 AM
To: Struts-User
Subject: Quickly change page to prevent user to click several times on a
link


Hi,

I have an application that generate PDF report (using FO). The problem
is
that when a user click on a link to generate the report, it takes a long
time, but the actual page stays until the action bean redirect the user
to
the generated report. But the user can click several times on the link
when
he is waiting (grr). How could I transfer him to a 'waiting
page'
then transfer him to the generated report

Thanks

Frédéric



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Quickly change page to prevent user to click several times on a link

2001-12-04 Thread Frédéric Houbie - ABSIS-GROUP

Hi,

I have an application that generate PDF report (using FO). The problem is
that when a user click on a link to generate the report, it takes a long
time, but the actual page stays until the action bean redirect the user to
the generated report. But the user can click several times on the link when
he is waiting (grr). How could I transfer him to a 'waiting page'
then transfer him to the generated report

Thanks

Frédéric



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




RE: Re-using JavaBeans as ActionForm Beans

2001-12-04 Thread Sobkowski, Andrej

Hello,

mixing your ActionForms with your business objects is not optimal. You will
lose the ability to use more "business-related  types" such as
java.util.Date (ActionForms mainly allow String only) - and also somehow
break the layered architecture (separation vs business processing).

Check out this past discussion thread:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18315.html

HTH

Andrej


-Original Message-
From: George M. Coles [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:54 AM
To: 'Struts Users Mailing List'
Subject: RE: Re-using JavaBeans as ActionForm Beans


You can make your existing bean extend ActionForm. This will give you access
to its methods, which you only need to override if you want to change the
default behaviour, like for validate. I don't see why you can't do this, but
I can see that you might not want to if you want to extend some other class
instead.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:53 AM
To: [EMAIL PROTECTED]
Subject: Re-using JavaBeans as ActionForm Beans



I have some beans that represent parts of my application (duh).  For
example I have a bean that represents all of the information for a given
request.  It contains name, request, time, etc, etc... to

I want to re-use this bean (or object) as part of an actionform bean.

I get a little weak with some of the OO stuff in Java and this is where
I run into problems.

I would like create an ActionForm Bean that uses the original bean and
adds on the verify method.  This would let me keep the original bean for
other uses and even use it in other ActionForms.  I remember reading how
to do it somewhere but I cannot find it again.

I cannot extend the original because the ActionForm bean needs to extend
the ActionForm class.

If someone can point me in the right direction I can do the rest of the
research and tinkering myself...

Thanks much



Bill Chmura
Ensign-Bickford Industries, Inc.
Information Technologies Department



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




Can't delete upload temporary file

2001-12-04 Thread Daniel WAMARA

I've ended up by making a upload module in Struts (thanks to those who 
helped) but now I got a problem with the temporary file struts-created : it 
seems that I can't delete it with the destroy() method.

I've try to create a Security manager to check if I had permission to delete 
the file but the result was that I had none.

try
{
scman.checkDelete(file.getFilePath());
}
catch (SecurityException sexc)
{
...
}

So I created a new Filepermission for being able to set a new permission of 
deletion over the file

try
{
scman.checkDelete(file.getFilePath());
}
catch (SecurityException sexc)
{
...
FilePermission filepermission = new FilePermission(file.getFilePath(), 
"delete");
try
{
...

but I still have that permission and making all the uploads I'm doing just 
for thest could lead to a huge quantity of files, so how could I get ride of 
that ?

Daniel WAMARA

_
Téléchargez MSN Explorer gratuitement à l'adresse 
http://explorer.msn.fr/intl.asp


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




RE: Re-using JavaBeans as ActionForm Beans (Clarification)

2001-12-04 Thread wbchmura


Yes, I can definately do that - no problem there.  The problem is that I 
want to keep the original bean intact so that I can extend (or whatever 
the proper term will be) it to be used on several forms.

For example - lets say I have the original bean that has name and id.

I want to make one action form that validates the name and id 
differently than the a seperate actionform.  This way there could be two 
different validations, but only one bean in the back to modify 
(hopefully) if I wanted to add some new properties...

Hope that makes more sense than my first post!

Thanks

Bill



-Original Message-
From: gcoles [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:54 AM
To: struts-user
Subject: RE: Re-using JavaBeans as ActionForm Beans


You can make your existing bean extend ActionForm. This will give you 
access
to its methods, which you only need to override if you want to change 
the
default behaviour, like for validate. I don't see why you can't do this, 
but
I can see that you might not want to if you want to extend some other 
class
instead.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:53 AM
To: [EMAIL PROTECTED]
Subject: Re-using JavaBeans as ActionForm Beans



I have some beans that represent parts of my application (duh).  For
example I have a bean that represents all of the information for a given
request.  It contains name, request, time, etc, etc... to

I want to re-use this bean (or object) as part of an actionform bean.

I get a little weak with some of the OO stuff in Java and this is where
I run into problems.

I would like create an ActionForm Bean that uses the original bean and
adds on the verify method.  This would let me keep the original bean for
other uses and even use it in other ActionForms.  I remember reading how
to do it somewhere but I cannot find it again.

I cannot extend the original because the ActionForm bean needs to extend
the ActionForm class.

If someone can point me in the right direction I can do the rest of the
research and tinkering myself...

Thanks much



Bill Chmura
Ensign-Bickford Industries, Inc.
Information Technologies Department



--
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-using JavaBeans as ActionForm Beans

2001-12-04 Thread Stephen Owens

Bill, 

The easiest way to reuse these is through containment. Just put an
instance of your bean as an instance variable of the actionFormBean and
expose get/set methods from the actionForm to give access to the
instance var. 

So, all you'd need would be two methods on your actionForm:
MyBean getModelRequest();
void setModelRequest( MyBean bean );

which get/set the underlying instance var: 
MyBean _GoodName = new MyBean();

you should make sure you don't return null from the get method. Then you
can use dot notation in your jsp files to reference the properties of
the contained bean, like so:



You likely won't need to use the setModelRequest method unless one of
your action classes wants to prepopulate the form with an existing
instance.

Hope this helps,

Stephen Owens
Corner Software

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:53 AM
To: [EMAIL PROTECTED]
Subject: Re-using JavaBeans as ActionForm Beans



I have some beans that represent parts of my application (duh).  For 
example I have a bean that represents all of the information for a given

request.  It contains name, request, time, etc, etc...

I want to re-use this bean (or object) as part of an actionform bean.

I get a little weak with some of the OO stuff in Java and this is where 
I run into problems.

I would like create an ActionForm Bean that uses the original bean and 
adds on the verify method.  This would let me keep the original bean for

other uses and even use it in other ActionForms.  I remember reading how

to do it somewhere but I cannot find it again.

I cannot extend the original because the ActionForm bean needs to extend

the ActionForm class.  

If someone can point me in the right direction I can do the rest of the 
research and tinkering myself...

Thanks much



Bill Chmura
Ensign-Bickford Industries, Inc.
Information Technologies Department



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Re-using JavaBeans as ActionForm Beans

2001-12-04 Thread George M. Coles

You can make your existing bean extend ActionForm. This will give you access
to its methods, which you only need to override if you want to change the
default behaviour, like for validate. I don't see why you can't do this, but
I can see that you might not want to if you want to extend some other class
instead.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:53 AM
To: [EMAIL PROTECTED]
Subject: Re-using JavaBeans as ActionForm Beans



I have some beans that represent parts of my application (duh).  For
example I have a bean that represents all of the information for a given
request.  It contains name, request, time, etc, etc... to

I want to re-use this bean (or object) as part of an actionform bean.

I get a little weak with some of the OO stuff in Java and this is where
I run into problems.

I would like create an ActionForm Bean that uses the original bean and
adds on the verify method.  This would let me keep the original bean for
other uses and even use it in other ActionForms.  I remember reading how
to do it somewhere but I cannot find it again.

I cannot extend the original because the ActionForm bean needs to extend
the ActionForm class.

If someone can point me in the right direction I can do the rest of the
research and tinkering myself...

Thanks much



Bill Chmura
Ensign-Bickford Industries, Inc.
Information Technologies Department



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Smart login page

2001-12-04 Thread Matt Raible

The easiest way to do this is to use form-based authentication.  With this
container-managed mechanism, you can declare your protected resources and the
roles that can access them in your web.xml file.  Very slick once you get it
working.

A tutorial can be found at
http://www.onjava.com/pub/a/onjava/2001/08/06/webform.html

Matt

--- Rajeev Singh <[EMAIL PROTECTED]> wrote:
> Stefano,
> You can always store the LastRequestedURL somewhere either in session or
> some other application scope object or also in query string. After login
> is done the user can be redirected/forwarded to this LastRequestedURL.
>   For this there is a catch that you have to choose whether u create the
> session only after login or after once the first request goes to
> controller.
>   Query string is a best possible idea as you don't have to create
> session before login is done. This choice depends upon your
> architecture.
>   e.g. when a request for B is submitted from A, user is redirected to
> login page in following,
>response.sendRedirect("./login.jsp?lastRequestedURL=B");
> 
> and when login is done create a request dispatcher object on request
> parameter lastRequestedURL , then forward the request to this page.
> 
> Thanx,
> Rajeev
> 
> -Original Message-
> From: Stefano Mancarella [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, December 04, 2001 2:56 PM
> To: 'Struts Users Mailing List'
> Subject: Re: Smart login page
> 
> - Original Message -
> From: "Darryl Nortje" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 04, 2001 10:21
> Subject: RE: Smart login page
> 
> 
> > You have two pages A, and B. Flow goes from A to B. Inbetween going
> from A
> > to B you have a check to see if user is still logged on, if he is not
> > logged
> > on your controller servlet show the user the logon page, after success
> at
> > logon, the controller servlet knows that it must now show page B. Does
> this
> > make sense? Your logon page can be called from multiple parts within
> your
> > app.
> 
> You got it. That's exactly the scenario I want to realize.
> BTW there was a typo in my message. Actually the question was:
> "HOW can I realize this?"
> Perhaps a solution could be passing the url of the requested page to the
> logon page as a request attribute, so that the logon action would know
> who
> to forward to.
> Anyway I'd like to know if there's a better/standard way to do this or
> if
> there's an example to refer to.
> 
> > -Original Message-
> > From: Stefano Mancarella [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 04, 2001 10:12 AM
> > To: Struts Users Mailing List
> > Subject: Smart login page
> >
> >
> > I'm developing a web application with Struts and I'd like to realize
> the
> > following behavior.
> > When I load a page which requires the user to be logged in, I want to
> > invoke
> > a login page and, after a successful logon, forward back to the page I
> had
> > requested.
> > I can I realize this?
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




Re-using JavaBeans as ActionForm Beans

2001-12-04 Thread wbchmura


I have some beans that represent parts of my application (duh).  For 
example I have a bean that represents all of the information for a given 
request.  It contains name, request, time, etc, etc...

I want to re-use this bean (or object) as part of an actionform bean.

I get a little weak with some of the OO stuff in Java and this is where 
I run into problems.

I would like create an ActionForm Bean that uses the original bean and 
adds on the verify method.  This would let me keep the original bean for 
other uses and even use it in other ActionForms.  I remember reading how 
to do it somewhere but I cannot find it again.

I cannot extend the original because the ActionForm bean needs to extend 
the ActionForm class.  

If someone can point me in the right direction I can do the rest of the 
research and tinkering myself...

Thanks much



Bill Chmura
Ensign-Bickford Industries, Inc.
Information Technologies Department



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




Validator not generating errors

2001-12-04 Thread Dave J Dandeneau

For some reason the validator framework is no longer generating errors.
I am running three tomcat web applications. Each has it's own
validations. When they load up I can see the validations in the output,
but when I hit the page it says "no errors detected" and moves on?

Does anyone have any ideas on what I could be doing wrong? Excerpts from
my setup are below. Thanks in advance for any help...



 
 
 
   mask
   ^\w+$
 
 
 
 
 
 
   mask
   ^[a-zA-Z]*$
 
 
 
 
 
   mask
   ${phone}
 
 
 
 
 











Thanks,
dave



Error tag problem

2001-12-04 Thread Pete Serafin

All,

I am having a similar problem to Binh
(
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18646.html

).
I was wondering if anyone has a solution as to why I cannot get the
 tag to work. I did notice that Struts docs say:

"In order to use this tag successfully, you must have defined an
application scope MessageResources bean under the default attribute
name, with at least the following message keys: errors.header,
errors.footer "

Where is the MessageResources bean instantiated and what is the "default

name" mentioned?

The following is how my app is set up according to my web.xml,
ApplicationResources.properties, strtus-config.xml,  and my ActionForm
and jsp:
1) ApplicationResources.properties:

errors.header=
errors.footer=

2) web.xml
...
 
  application
  ApplicationResources

   ...

3)struts-config.xml


  
  


4) LoginForm.java
 
 public ActionErrors validate(ActionMapping
mapping,HttpServletRequest request) {

ActionErrors errors = new ActionErrors();
if ((userID == null) || (userID.length() < 1))
 errors.add("login",  new
ActionError("error.userID.required"));
 return errors;
}
   ...

5)  login.jsp
...
   <%@ taglib uri="/WEB-INF/taglibs/struts-html.tld" prefix="html" %>
...
   
   ...


Im not getting the errors tag to print anything to the page, but the
validation is returning it to the form properly.




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




RE: SAX / Struts problem SAXNotRecognizedException

2001-12-04 Thread Esterkin, Alex

Try putting JAXP 1.0.1 JARs before xerces.jar in your application classpath.
This is the most popular of the known workarounds. Another workaround is to
use an older version of Xerces which comes with the Xalan distribution.
Reportedly, this problem does not occur in WebSphere 4.0


   Alex Esterkin 
=



-Original Message-
From: jpablo [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 14:40
To: Struts Users Mailing List
Subject: Re: SAX / Struts problem SAXNotRecognizedException



I still triyng to make it work, But I still getting the same
exception, Under what condicion this exception is thrown? Any help
will be really appreciated. Thanks in advance.


j> When WebSphere tries to start the Action servlet it throws the
j> following exception:

j> [01.12.03 16:04:20:128 GMT-02:00] fec2bfc4 WebGroup  X Root Cause
j>  org.xml.sax.SAXNotRecognizedException:
http://xml.org/sax/features/raw-names   
j> at
org.apache.xerces.framework.XMLParser.setFeature(XMLParser.java:1380)

j> at
org.apache.xerces.parsers.SAXParser.setFeature(SAXParser.java:578)


j> What can be the problem?? I'm using the last version of xerces...
j> What jars I need in my classpath???



--
Juan Pablo Villaverde
Tec. en Infraestructura de Redes
Soluciones Punto Com S.A. 
http://www.spcom.com.ar



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Indexes

2001-12-04 Thread White, George W.

Hi everyone,

My program allows a user to check several of many checkboxes.
Struts Multibox seem like a good choice.
Is it necessary to formally declare 'indexes' when using iterate, multibox
and arrays.
If so, please let me know where and how they should be declared. 

Thanks,
George


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




Re: Help-Loading 2nd FormBean in same action???Is there an easy way??

2001-12-04 Thread Sandeep Takhar

I may still be out of line here

That is what the "parameter" is for.  So you forward
to the correct action -- like "Search" and since the
action is common across search/add/edit/delete you do
a mapping.getParameter() to see which one it is.  The
advantage of having in the in the struts-config.xml is
that you don't have to set/reset.

am i still mising something?

Sandeep
--- Greg Callaghan <[EMAIL PROTECTED]> wrote:
> Thanks Sandeep,
> 
> I don't think this actually helps in my situation (I
> think).
> 
> To distill down the problem to barebones as best I
> can -:
> * I have a common formbean which has two possible
> validate paths depending 
> on whether the ACTION parameter is SEARCH or
> EDIT/DELETE/ADD.
> * In the case the user say requests an ADD then -:
>   - ACTION parameter is set to "ADD"
>   - Formbean validation occurs, it references ACTION
> and does
> the correct validation (ie validate object
> parameters, not
> the object search parameters, search_xxx)
>   - ADD action is then entered
> * Now the issue is then if there is a problem an
> within the ADD action I 
> want to throw back to the previous page (via its
> associated *.do action to 
> pickup appropriate object setup code) I need a way
> to indicate to the common 
> formbean to do its SEARCH validation path, not
> ADD/EDIT/DELETE validation.  
> The problem then being how do you change/reset the
> ACTION request parameter?
> 
> So in summary, is there a way to, via code within an
> action (about to 
> redirect to another action), to indicate to the
> formbean about to be loaded 
> up which validation path it should follow.  I'm
> trying to find a way within 
> the struts framework, and hence thought use of the
> form beans parameters 
> would be correct.
> 
> Hope this makes sense.
> 
> Regards
> Greg
> 
> PS. One solution would be perhaps to set a request
> attribute in the action 
> and have the formbean validation code reference this
> to determine the 
> correct validation path, however this seems to go a
> little against the grain 
> of the struts concept no?  That is would be nice
> that the form bean 
> validation is based on its own attributes.
> 
> Original Message Follows
> From: Sandeep Takhar <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> To: Struts Users Mailing List
> <[EMAIL PROTECTED]>
> Subject: Re: Help-Loading 2nd FormBean in same
> action???Is there an easy 
> way??
> Date: Mon, 3 Dec 2001 08:31:18 -0800 (PST)
> 
> I think that you can use different actions mappings
> for each.
> 
> From Ted-Husted's site:
> 
> 
> 
> Use multifunction Actions to service related
> ActionMappings
> Here's an example:
> 
> In an Insert / Update workflow, there are usually
> three ActionMappings, one for "add", to return an
> empty ActionForm, one for "edit", to return a
> populated ActionForm, and one for "store" to either
> insert or update
> the ActionForm properties into the model. Usually,
> all
> three of these are mapped to the same Action.A good
> way to tell them apart is to use the parameter
> property with your mapping.
> 
> 
>  path="/admin/article/Add"
> type="org.apache.struts.artimus.http.Client"
> name="articleForm"
> scope="request"
> validate="false"
> parameter="add">
>  name="continue"
> path="/WEB-INF/pages/Entry.jsp"/>
> 
> 
> 
>  path="/admin/article/Edit"
> type="org.apache.struts.artimus.http.Client"
> name="articleForm"
> scope="request"
> validate="false"
> parameter="select">
>  name="continue"
> path="/WEB-INF/pages/Entry.jsp"/>
> 
> 
> 
>  path="/admin/article/Save"
> type="org.apache.struts.artimus.http.Client"
> name="articleForm"
> scope="request"
> validate="true"
> input="/WEB-INF/pages/Entry.jsp"
> parameter="save">
>  name="continue"
> path="/WEB-INF/pages/Article.jsp"/>
> 
> 
> The Action can the call mapping.getParameter() and
> switch to the appropriate "sub-Action". When "add"
> is
> called, the Action checks the parameter, and returns
> a
> blank form. When the parameter is "edit", the Action
> uses other properties on the form to retrieve a
> record
> and populate the form.
> 
> When the parameter is "save", the Action examines
> properties on the form to determine whether it needs
> to add or update the records. Usually, a record
> needs
> a primary key, which is null on an add and not null
> on
> update, and this is an easy way to tell which kind
> of
> save is needed.
> 
> 
> 
> 
> 
> Sandeep
> --- Greg Callaghan <[EMAIL PROTECTED]>
> wrote:
>  > Hi Andy,
>  >
>  > Here goes with the background.  Feel free anyone
> to
>  > shoot me down if there's
>  > a better approach :-)
>  >
>  > The high level overview is as follows, then I'll
>  > follow with detail -:
>  > [1] Formulating a good non-session-scope based
> way
>  > to handle concept within
>  > an application of
>  > SearchObject/DisplayObjects/EditObjects where
> search
>  >
>  > criteria is remembered throughout this chain.
>  > [2] Issue I have current with single form bean
>

Re: Passing several parameters in a html link

2001-12-04 Thread Martin Fekete

this should work ...

<%
 java.util.Map map = new java.util.HashMap();
 map.put("param1", request.getParameter("param1"));
 pageContext.setAttribute("map", map, PageContext.PAGE_SCOPE);
%>
  
<%
 map.put("param2", row.getParam());
%>
link
 

feky

- Original Message -
From: "Frédéric Houbie - ABSIS-GROUP" <[EMAIL PROTECTED]>
To: "Struts-User" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 2:47 PM
Subject: Passing several parameters in a html link


>
> Hi,
>
>
> I need to build html:link with 2 parameters, one coming from an iterate
tag
> and one from the request to pass it to the following page.
>
> How can I do that ?
>
> Frederic
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>



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




Passing several parameters in a html link

2001-12-04 Thread Frédéric Houbie - ABSIS-GROUP


Hi,


I need to build html:link with 2 parameters, one coming from an iterate tag
and one from the request to pass it to the following page.

How can I do that ?

Frederic



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




RE: Can a form submit to a vector?

2001-12-04 Thread Alex Colic

Yes,

I want a form when submitted to add a new object to the vector.


IE: I have a class with a getCharging method that returns a vector. The
vector holds charging objects. In the top half of the page I iterate through
the vector and show a table of existing objects. In the bottom half of the
page I want to create a form that when submitted adds another object to the
vector.

Thanks for any help.


Alex

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 1:01 PM
To: Struts Users Mailing List
Subject: Re: Can a form submit to a vector?




Do you mean dynamically?  ie another row added to the vector above it
without a
submit?

Dave





"Alex Colic" <[EMAIL PROTECTED]> on 12/03/2001
12:40:57 PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   "Struts" <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Can a form submit to a vector?



Hi,

I have a vector that holds charging objects. The object has properties such
as name and amount.
On a page, at the top I iterate through the charging objects and create a
summary table. The table shows all the charging objects in the charging
vector and outputs their name and amount.

At the bottom of the page I want to create a form that the user can use to
enter the name and amount details for another charging object, hit submit
and have a new charging object added to the vector. Can this be done?

Thanks a lot.

Alex


--
To unsubscribe, e-mail:

For additional commands, e-mail:










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




OT- dynamic survey?

2001-12-04 Thread Phillip Rhodes

I am looking for a dynamic survey tool.  Declare questions, sections, 
branches, etc.

If I can't find one, I will be writing one with struts.   Let me know if 
you have any additional thoughts, requirements for such a tool, since it 
will be open source.

Thanks,
Phillip


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


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




Re: Need help in Running employeelist example in VAJ3.5.3 andWTE

2001-12-04 Thread BONNET Francois-Xavier

Maybe you should have a look on mailing list archive for such questions.

There are things to do if you want Struts to work in VAJ :
1) patch Struts
2) deploy Stuts and your webapp in WTE

Check this old mail :
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18363.html

Hope this helps.

Francois-Xavier Bonnet


- Original Message -
From: [EMAIL PROTECTED]
Date: Monday, December 3, 2001 10:04 pm
Subject: Need help in Running employeelist example in VAJ3.5.3 and WTE 

> We are planning to develop an intranet web application and we want to use
> struts for it.
> 
> For that i am testing Struts in VAJ3.5.3 in WTE and WebSphere 3.5.4  .i want
> to run emploee list example. in VAJ and WTE first.
> 
> I think i did set every thing properly.I am using Xerces1.4.4 and Struts1.0
> src .
> 
> when i try to acess the application in browser
> 
> http://localhost:808/employeelist/index.jsp
> 
> it says  following error.
> 
> An error has occured while processing
> request:http://localhost:8080/employeelist/index.jsp
> Message: Server caught unhandled exception from servlet [jsp]: Missing
> message for key index.heading
> Target Servlet: jsp
> StackTrace: 
> Root Error-1: Missing message for key index.heading
> javax.servlet.jsp.JspException: Missing message for key index.heading
> java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String)
> javax.servlet.jsp.JspException(java.lang.String) int
> org.apache.struts.taglib.bean.MessageTag.doStartTag() 
> 
> can you suggest me how to get around with this.
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


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




RE: mapping.getInput() and request scope beans

2001-12-04 Thread Malcolm Wise

Karen,

Yes, you can specify an action mapping for the input parameter, so this is
also a solution.

HTH
Malc

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2001 11:50
To: struts users mailing list
Subject: Re: mapping.getInput() and request scope beans


Hello Karen, (sorry, used th wron address)

I have had a similar problem using the html:selection tag which is at first
used with session beans but I wanted to build request scope objects (I do
not like to let hang aroung junks of session beans...). So what I have done
is to do a request.setAttribute(“bean“,bean) and have a hidden field in the
form to get the bean. I works quite well up to now.

Hope, this helped
Thomas

-Original Message-
>From : Prengaman.Karen <[EMAIL PROTECTED]>
To : “'[EMAIL PROTECTED]'“ <[EMAIL PROTECTED]>
Date : 04 December 2001 00:49:13
Subject : mapping.getInput() and request scope beans
Hello,
>
>I have a jsp that displays data and has a very simple one-button form with
>one hidden field.  When this form is submitted, ExitAction is called.  In
>ExitAction's perform method, if a certain condition occurs, I want to
return
>to the calling page.  I do this with the following code:
>
>return new ActionForward(mapping.getInput());
>
>My problem is that my jsp references a request-scope bean, and when
>returning to it, the bean is out of scope.  If I put the bean in the
session
>the problem does not occur (i.e., the jsp can access it), but I would
rather
>leave the bean in the request.
>
>Any thoughts on how I can get around this?  Do I have to specify a jsp file
>in the input parameter in struts-config, or can I specify an action?
>
>Thanks,
>
>Karen
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>
>

>:-) As sceptical as one can be! (-:<



--
Get a free, personalised email address at http://another.com
TXT ALRT! Stop wasting money now. Send FREE, personalised txt
from http://another.com



*
The information contained in this message or any of its
attachments may be privileged and confidential and intended 
for the exclusive use of the addressee. If you are not the
addressee any disclosure, reproduction, distribution or other
dissemination or use of this communication is strictly prohibited
*

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




struts action multiplexing

2001-12-04 Thread Peter Pilgrim


I want to multiplex struts actions.  I have a typical central Struts Action
that responds to multiple HTML Submit Button and provided my
own mapping to the behaviour or business logic within the same action class.

How ever I want to forward to another struts action with its own action form.
Unfortunately I find that ActionServlet seems to populating the target action form
with the wrong parameters. I discovered this is because the bean populate
work with `request.getParameter(...)'. This is quite correct.  So my target 
multiplexing
is sometimes messed up because it is impossible to override the servlet
request parameter.

How can I get around this problem?

Can a request dispatcher accept servlet CGI parameters?

mapping.findForward( "handleThis?parameter=one¶meter=two" );

I dont think so at first, becausethe Servlet Spec says you pass
request attributes ie. `request.setAttribute(...)'.

The other way would be the locate the action yourself without using request dispatcher
mechanism and then call the action directly. Can this be done?

--
Peter Pilgrim ++44 (0)207-545-9923
  //_\\
"Mathematics is essentially the study of islands of  ===
disparate subjects in a sea of ignorance."   || ! ||
Andrew Wiles __/\/\__||_!_||__



--

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: mapping.getInput() and request scope beans

2001-12-04 Thread tw . richter

Hello Karen, (sorry, used th wron address)

I have had a similar problem using the html:selection tag which is at first used with 
session beans but I wanted to build request scope objects (I do not like to let hang 
aroung junks of session beans...). So what I have done is to do a 
request.setAttribute(“bean“,bean) and have a hidden field in the form to get the bean. 
I works quite well up to now. 

Hope, this helped 
Thomas 

-Original Message-
>From : Prengaman.Karen <[EMAIL PROTECTED]>
To : “'[EMAIL PROTECTED]'“ <[EMAIL PROTECTED]>
Date : 04 December 2001 00:49:13
Subject : mapping.getInput() and request scope beans
Hello,
>
>I have a jsp that displays data and has a very simple one-button form with
>one hidden field.  When this form is submitted, ExitAction is called.  In
>ExitAction's perform method, if a certain condition occurs, I want to return
>to the calling page.  I do this with the following code:
>
>return new ActionForward(mapping.getInput());
>
>My problem is that my jsp references a request-scope bean, and when
>returning to it, the bean is out of scope.  If I put the bean in the session
>the problem does not occur (i.e., the jsp can access it), but I would rather
>leave the bean in the request.
>
>Any thoughts on how I can get around this?  Do I have to specify a jsp file
>in the input parameter in struts-config, or can I specify an action?
>
>Thanks,
>
>Karen
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>

>:-) As sceptical as one can be! (-:<



--
Get a free, personalised email address at http://another.com
TXT ALRT! Stop wasting money now. Send FREE, personalised txt
from http://another.com


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


ApplicationResources.properties

2001-12-04 Thread Debasish Ghosh

Hi -

How can I check if the correct
ApplicationResources.properties has been loaded or not
?
I tried using the following :-


  
ERROR:  Application resources not loaded -- check
servlet container
logs for error messages.
  


By doing this, I do not get the above error even if I
remove ApplicationResources.properties from the
hierarchy. The exception is thrown when it tries to do
the first getMessage().

Thanks.

- Debasish

__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




iterate tag problems (sorry !!)

2001-12-04 Thread Eddie Fung

I've looked through the archives regarding the iterate tag and have
followed all the suggestions on use of the  tag but still have a
problem getting the form data to be updated. Yes I do have a 
getParameter(int index)
method but I still can't get the data updated in the form.

I have:






 /

 /




Where myForm = my ActionForm class

   myObjectArray is an ArrayList of myObjectBean objects

I have the following defined in the myForm ActionForm:

private ArrayList myObjectArray;

public ArrayList getMyObjectArray()
{
 return myObjectArray ;
}

public void setMyObjectArray (ArrayList anArray)
{
 this.myObjectArray = anArray;
}

public myObjectBean getMyObject (int index)
{
 return (myObjectBean) getMyObjectArray.get(index);
}

The myObject class has public getters and setters for all fields.

I can render the page but if I change the beanSelected, postDay, postMth or 
postYear
fields the changes are not reflected in the Form.

BTW Dave Hay how does Struts match up the getMyObject method with the 
myObjectArray ??

TIA

Eddie





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




Setting up form from the query string

2001-12-04 Thread Scriven, Marcos

Hi

Is it possible in struts to setup a form like so:

myForm.jsp?action=3

Where in the form you have a property called action? The only way I have
been able to do it is this:


"/>

Which seems to be a bit redundant, what with repeating the property name.
I've also tried the method given in the examples app, whereby I have an
action just to set up the form. This seems rather an overkill for a form I
simply want to populate with a copule of values. Even then I still have to
pass the values in the URL like so: setupMyForm?action=3, which then
forwards to the new form bean, which then reads the values out of the
populated bean.

There must be an easier way!

Thanks

Marcos

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




RE: Smart login page

2001-12-04 Thread Rajeev Singh

Stefano,
You can always store the LastRequestedURL somewhere either in session or
some other application scope object or also in query string. After login
is done the user can be redirected/forwarded to this LastRequestedURL.
  For this there is a catch that you have to choose whether u create the
session only after login or after once the first request goes to
controller.
  Query string is a best possible idea as you don't have to create
session before login is done. This choice depends upon your
architecture.
  e.g. when a request for B is submitted from A, user is redirected to
login page in following,
   response.sendRedirect("./login.jsp?lastRequestedURL=B");

and when login is done create a request dispatcher object on request
parameter lastRequestedURL , then forward the request to this page.

Thanx,
Rajeev

-Original Message-
From: Stefano Mancarella [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 04, 2001 2:56 PM
To: 'Struts Users Mailing List'
Subject: Re: Smart login page

- Original Message -
From: "Darryl Nortje" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 10:21
Subject: RE: Smart login page


> You have two pages A, and B. Flow goes from A to B. Inbetween going
from A
> to B you have a check to see if user is still logged on, if he is not
> logged
> on your controller servlet show the user the logon page, after success
at
> logon, the controller servlet knows that it must now show page B. Does
this
> make sense? Your logon page can be called from multiple parts within
your
> app.

You got it. That's exactly the scenario I want to realize.
BTW there was a typo in my message. Actually the question was:
"HOW can I realize this?"
Perhaps a solution could be passing the url of the requested page to the
logon page as a request attribute, so that the logon action would know
who
to forward to.
Anyway I'd like to know if there's a better/standard way to do this or
if
there's an example to refer to.

> -Original Message-
> From: Stefano Mancarella [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 04, 2001 10:12 AM
> To: Struts Users Mailing List
> Subject: Smart login page
>
>
> I'm developing a web application with Struts and I'd like to realize
the
> following behavior.
> When I load a page which requires the user to be logged in, I want to
> invoke
> a login page and, after a successful logon, forward back to the page I
had
> requested.
> I can I realize this?



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: How do I set the value of a "value" tag in jsp file with abean value.

2001-12-04 Thread Alvin Kutttikkat Antony

Hello,
Why don't u try this way? but I have tryed this in property field and it is working! 





alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980


>>> [EMAIL PROTECTED] 12/04/01 01:49am >>>
Hi

I want to put a radio button in a form and have the value of the "value" 
field to come from a bean, only I don't know how to do this.  The 
incorrect way to writting this is

"
/>

Which will give problems, how can I set the value of the "value" field 
to a value in a bean?

Cheers

Tony






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



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




RE: Struts VAR

2001-12-04 Thread Tom Lister

Hi
I've seen Expresso from www.jcorporate.com   but
not tried using it.
:-)
Regards
[EMAIL PROTECTED]  
Advanced Banking Solutions Limited
+44 (0)20 7448 9146
º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
¸¸,ø¤º°'°º¤ø,¸¸,
This email and any attachments are confidential. They may contain privileged

information or useless trivia and are intended for the named addressee (s)
only. 
They must not be distributed without our consent. If you are not the
intended recipient, 
please notify us immediately and do not disclose, distribute, or retain this
email or any
part of it. Unless expressly stated, opinions in this email are those of the

individual sender, and not of Advanced Banking Solutions Limited. We believe

but do not warrant that this e-mail and any attachments are virus free. You
must
therefore take full responsibility for virus checking. Advanced Banking
Solutions
Limited and its subsidiaries reserve the right to monitor all email
communications
through their networks. 
º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
¸¸,ø¤º°'°º¤ø,¸¸,


-Original Message-
From:   Sandeep Takhar [SMTP:[EMAIL PROTECTED]]
Sent:   03 December 2001 21:43
To: Struts Mailing List
Subject:Struts VAR

Does anyone know of any Struts Value Added Resellers. 
Someone that has added on to the struts framework and
offers support/documentation/training?

- thanks,

Sandeep

__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Missing message for key index.title - general comments

2001-12-04 Thread Keith Bacon

Frank,
I agree very much! Error messages that have a unique
cause & point you towards the solution are much better
than things like
'can't find x in scope null'.
It takes time to add this stuff to code. An
alternative is for us users to set up a faq list or a
common errors & suggested solutions database. I'm not
volunteering, I'm only an occasional struts user -
hoping to use it more though.
Keith. 

--- Frank Lawlor <[EMAIL PROTECTED]> wrote:
> I noticed lots of people having struts problems with
> this
> symptom.
> 
> From what I have seen of the struts startup, many
> startup
> problems will cause this to be the first symptom for
> the
> example app.  This kind of "one error for all
> situations"
> makes diagnosis difficult.
> 
> Looking in the log may clarify the problem, but I
> noticed
> that some of the problems do not produce obvious log
> entries (errors are swallowed).
> 
> I have some suggestions that struts (and web apps
> generally) can use to help make it easier to debug
> installation and other similar startup problems.
> 
> 1) Don't just swallow errors without a clear error
> log
> entry.  E.g.,
> getServletContext().getResourceAsStream(config)
> just swallows security exceptions.  Not good.  It
> does return 
> a null, but this is not enough to identify the
> problem.
> 
> 2) keep some type of structure in which some
> meaningful
> message can be sent to the application interface. 
> For example,
> initialization and other code can put some
> indication of the
> problem in an "Errors" structure.  When the user
> makes a 
> query the application (or struts infrastructure) can
> check to 
> see if "Errors" is non-empty and display a special
> error 
> page which will provide better help in diagnosing
> the problem.
> 
> 3) install and config problems can be more easily
> diagnosed
> by explicitly checking for necessary pre-conditions
> (e.g.,
> file access, network access, etc.) and generating
> specific
> errors.  This could be run separately or optionally
> as part
> of init.
> 
> Frank Lawlor
> Athens Group, Inc.
> (512) 345-0600 x151
> Athens Group, an employee-owned consulting firm
> integrating technology
> strategy and software solutions.
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




Re: Smart login page

2001-12-04 Thread Stefano Mancarella

- Original Message -
From: "Darryl Nortje" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 10:21
Subject: RE: Smart login page


> You have two pages A, and B. Flow goes from A to B. Inbetween going from A
> to B you have a check to see if user is still logged on, if he is not
> logged
> on your controller servlet show the user the logon page, after success at
> logon, the controller servlet knows that it must now show page B. Does
this
> make sense? Your logon page can be called from multiple parts within your
> app.

You got it. That's exactly the scenario I want to realize.
BTW there was a typo in my message. Actually the question was:
"HOW can I realize this?"
Perhaps a solution could be passing the url of the requested page to the
logon page as a request attribute, so that the logon action would know who
to forward to.
Anyway I'd like to know if there's a better/standard way to do this or if
there's an example to refer to.

> -Original Message-
> From: Stefano Mancarella [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 04, 2001 10:12 AM
> To: Struts Users Mailing List
> Subject: Smart login page
>
>
> I'm developing a web application with Struts and I'd like to realize the
> following behavior.
> When I load a page which requires the user to be logged in, I want to
> invoke
> a login page and, after a successful logon, forward back to the page I had
> requested.
> I can I realize this?



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




What is wrong with property names ending in Date?

2001-12-04 Thread Schauder, Jens

Hi,
I try to present a date on a webpage using the bean:write tag inside an
iterate tag
like this:


  


it didn't work until I changed the property name in the jsp and the java
code to orderDat
I had the same problems with other properties ending in Date 

can anybody explain how this comes ... I'd submit it as a bug, but I can't
get through to the bug
database ... 


Below comes the error message I get:

2001-12-04 09:22:25 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
javax.servlet.ServletException: No getter method for property orderDate of
bean order
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:457)
at
org.apache.jsp.DisplayCustomerDetails$jsp._jspService(DisplayCustomerDetails
$jsp.java:270)
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.ja
va: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.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:679)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
de.opal.cougar.frontend.CougarActionServlet.process(CougarActionServlet.java
:105)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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:5
66)
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:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)
- Root Cause -
javax.servlet.jsp.JspException: No getter method for property orderDate of
bean order
at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
at
org.apache.jsp.DisplayCustomerDetails$jsp._jspService(DisplayCustomerDetails
$jsp.java:256)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.se

RE: Smart login page

2001-12-04 Thread Darryl Nortje

I'm very new to Struts and the MVC design so if I get this wrong please
everyone let me know. Or rather let Stefano know how to do it. I'll get the
reply.

Stefano, the answetr to your question is 'Yes'. very vague but this is how I
see it working. 

You have two pages A, and B. Flow goes from A to B. Inbetween going from A
to B you have a check to see if user is still logged on, if he is not logged
on your controller servlet show the user the logon page, after success at
logon, the controller servlet knows that it must now show page B. Does this
make sense? Your logon page can be called from multiple parts within your
app.

-Original Message-
From: Stefano Mancarella [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 10:12 AM
To: Struts Users Mailing List
Subject: Smart login page


I'm developing a web application with Struts and I'd like to realize the
following behavior.
When I load a page which requires the user to be logged in, I want to invoke
a login page and, after a successful logon, forward back to the page I had
requested.
I can I realize this?


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Smart login page

2001-12-04 Thread Stefano Mancarella

I'm developing a web application with Struts and I'd like to realize the
following behavior.
When I load a page which requires the user to be logged in, I want to invoke
a login page and, after a successful logon, forward back to the page I had
requested.
I can I realize this?


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