Re: SSL

2002-05-13 Thread @Basebeans.com

Subject: Re: SSL
From: "Wolfgang Gehner" <[EMAIL PROTECTED]>
 ===
just testposting...

Andy Noble wrote in message ...
>Always worth checking out Ted Husted's site :
>
>http://husted.com/struts/FAQ/controller-ssl.htm
>
>Andy
>
>- Original Message -
>From: Rakesh <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, November 13, 2001 4:25 AM
>Subject: SSL
>
>
>
>Is there any documentation anywhere on how to use SSL with struts ?
>and does Struts support 128 bit encryption.
>
>--Rakesh
>
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>



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




Re: Logic:Iterate:sort, what do you think?

2002-05-13 Thread Richard Yee

Michael,
Since it's already done through the TreeMap and TreeSet collection classes, 
I don't think it's necessary to implement it again in the logic:iterate 
tag. If you want to access members of a collection in a sorted order, then 
use the TreeMap or TreeSet as the collection and invoke the sort() method 
on it before using the iterate tag.

Regards,

Richard

At 10:08 PM 5/13/2002 -0700, you wrote:
>I'm looking for sorting support for the Struts Logic Iterate tag. Struts
>Layout by Improve claims to support something like this for their Collection
>library.  However, I found their latest release (docs and examples) in
>disarray.  Also, in the archives I see a message (RE: sorting in
>logic:iterate) from Tim Sawyer where he claims to have implemented sorting
>classes to solve this problem -- but, I don't see any code.
>
>Ideally, I would like to see something like what Sawyer claims or markup
>something like the following:
>
>sortorder="ascending">
>Next element is 
>Next element is 
>Next element is 
>
>
>Here, "myhashtable" would be sorted in ascending order based on comparable
>"value1", "value2", "value3" of each "element".
>
>If there's nothing within Struts that solves this problem then I would like
>to work on extending the "iterate" tag to handle this.  Please let me know
>what you think.
>
>Thanks,
>
>--Michael T. Marrotte
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




RE: Bean Definition

2002-05-13 Thread Chakradhar Tallam

the name of the form bean is projectForm with small "p" compared to the bean
class ProjectForm with big "P". make sure u use projectForm with small "p"
in ur form action definition.

ct.

-Original Message-
From: Sudhir [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 14 May 2002 4:17 PM
To: [EMAIL PROTECTED]
Subject: Bean Definition


Hi,

I have defined my bean definition as 



when i try to call the page, it is giving the following error.

javax.servlet.ServletException: Cannot retrieve definition for form bean
ProjectForm

Can anybody tell me how to define the bean

Thanks and Best Regards,

--
To unsubscribe, e-mail:

For additional commands, e-mail:




Bean Definition

2002-05-13 Thread Sudhir

Hi,

I have defined my bean definition as 



when i try to call the page, it is giving the following error.

javax.servlet.ServletException: Cannot retrieve definition for form bean ProjectForm

Can anybody tell me how to define the bean

Thanks and Best Regards,

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




Re: Logic:Iterate:sort, what do you think?

2002-05-13 Thread @Basebeans.com

Subject: Re: Logic:Iterate:sort, what do you think?
From: Vic C <[EMAIL PROTECTED]>
 ===
For input only: http://edhill.its.uiowa.edu/display/

Michael Marrotte wrote:
> I'm looking for sorting support for the Struts Logic Iterate tag. Struts
> Layout by Improve claims to support something like this for their Collection
> library.  However, I found their latest release (docs and examples) in
> disarray.  Also, in the archives I see a message (RE: sorting in
> logic:iterate) from Tim Sawyer where he claims to have implemented sorting
> classes to solve this problem -- but, I don't see any code.
> 
> Ideally, I would like to see something like what Sawyer claims or markup
> something like the following:
> 
>  sortorder="ascending">
> Next element is 
> Next element is 
> Next element is 
> 
> 
> Here, "myhashtable" would be sorted in ascending order based on comparable
> "value1", "value2", "value3" of each "element".
> 
> If there's nothing within Struts that solves this problem then I would like
> to work on extending the "iterate" tag to handle this.  Please let me know
> what you think.
> 
> Thanks,
> 
> --Michael T. Marrotte
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


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




Logic:Iterate:sort, what do you think?

2002-05-13 Thread Michael Marrotte

I'm looking for sorting support for the Struts Logic Iterate tag. Struts
Layout by Improve claims to support something like this for their Collection
library.  However, I found their latest release (docs and examples) in
disarray.  Also, in the archives I see a message (RE: sorting in
logic:iterate) from Tim Sawyer where he claims to have implemented sorting
classes to solve this problem -- but, I don't see any code.

Ideally, I would like to see something like what Sawyer claims or markup
something like the following:


Next element is 
Next element is 
Next element is 


Here, "myhashtable" would be sorted in ascending order based on comparable
"value1", "value2", "value3" of each "element".

If there's nothing within Struts that solves this problem then I would like
to work on extending the "iterate" tag to handle this.  Please let me know
what you think.

Thanks,

--Michael T. Marrotte


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




is this the best way to display query resultsets on a page?

2002-05-13 Thread Boon Chew

Hi, all,

I am creating a typical Master-Detail page which shows a resultset from a
query.

I am very new to Struts, would like to get your opinion on this to see if
this is the best way to do things...so say I do a query in a data bean and
get a resultset back, then I populate each record in the resultset into an
object.  To display those results on a page, I am thinking saving the object
array in request scope in the action servlet, something like:

Vector userList = new Vector();

...populate userList vector with info from the resultset...

request.setAttribute("userList", userList);
return (mapping.findForward("showUsers"));

and then in the view JSP showUsers.jsp I use iterate tag to display the
result, like so:












Is this the best way to do this sort of stuff in Struts?  Thanks for your
advice.

- boon


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




Re: Leaving "Subapp Motel"? (actions check in, but they don't checkout)

2002-05-13 Thread Craig R. McClanahan



On Fri, 10 May 2002, Byrne, Steven wrote:

> Date: Fri, 10 May 2002 21:29:17 -0400
> From: "Byrne, Steven" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Leaving "Subapp Motel"? (actions check in, but they don't check out)
>
> Ok -- I'll bite -- I've finally discovered what sub-applications are all
> about [hint -- the documentation needs improving in this area].  It's
> pretty easy to see how to transition into a subapplication from the
> default subapplication, but I'm not sure what syntax to use in a forward
> to reference a non-context and non-application-relative URI.
>
> Of course, I could always use an absolute URL, but that would mean that
> I would have to either hard code that into my struts-config.xml file
> (bad), or programmatically determine it (bad).
>

There isn't really anything new in 1.1 that helps with references to
things external to the current webapp.  You're still stuck with absolute
URLs for that.

What is supported for you is that references starting with a slash are
assumed to be relative to the current subapp, instead of the context path,
in all scenarios.  This is what makes it possible to use the same
struts-config.xml file for either the "root" subapp or a different one.

> I think there must be something I'm missing in my understanding of this
> useful technology for supporting modular, decoupled web application
> development.  Can someone explain how I get out of the roach (subapp)
> motel?
>

One thing that is definitely not clear in the docs (yet) is how to get
from one subapp to another in the same web application.  There are a
couple of different techniques supported, for use in various
circumstances:

* In a  declaration, you can add the new contextRelative="true"
  attribute, to indicate that a path starting with "/" should be
  interpreted as context-relative, instead of subapp-relative.  You
  will be switched to the new subapp when the controller does its
  forwarding.

* In an Action, you can call RequestUtils.selectApplication() yourself,
  and specify the subapp prefix of the sub-application you want to
  switch to.  From that moment on, all intra-subapp references will be
  resolved against the new subapp instead of the old one.

* A new standard action (org.apache.struts.actions.SwitchAction) lets
  you forward control to a particular subapp-relative URI within a
  particular subapp selected by the subap prefix.  This is useful in
  menu pages.

> Steve
>
>

Craig



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




RE: Multiple sites using one struts application.

2002-05-13 Thread James Mitchell

That's a design choice that is up to you.

Besides, I don't claim to be an expert with filters (actually, I don't claim
to be an expert at anything ;P

JM

> -Original Message-
> From: Mike Karl [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 7:08 PM
> To: Struts Users Mailing List
> Subject: RE: Multiple sites using one struts application.
>
>
> If I did something like this, would it then be appropriate to use a
> filter to set properties based on the url?
>
> thanks
> mike
>
>
> On Mon, 2002-05-13 at 15:03, James Mitchell wrote:
> >
> > One suggestion..
> >
> > Register a domain name, then setup to use virtual host.
> >
> > http://club1.mydomain.com/
> > http://club2.mydomain.com/
> > http://club3.mydomain.com/
> > http://club4.mydomain.com/
> > http://club5.mydomain.com/
> > http://club6.mydomain.com/
> >
> > Use same code base, but put all image references in a property file and
> > extend the img tag to write from the bundle, based on some kind of
> > ResourceManager (similar to how the i18n checks the headers for
> language)
> >
> > I hope this gives you some ideas, if not then just press DELETE.;)
> >
> > JM
> >
> >
> >
> >
> > > -Original Message-
> > > From: Mike Karl [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, May 13, 2002 4:52 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Multiple sites using one struts application.
> > >
> > >
> > > Hello,
> > > I'm building a site for a group of clubs.  All the sites will have the
> > > same set of pages and actions.
> > >
> > > For instance:
> > >
> > > http://clubsites/club1/index.jsp
> > > http://clubsites/club2/index.jsp
> > > http://clubsites/club3/index.jsp
> > > http://anothersite/club4/index.jsp
> > >
> > > All of these sites would basically be the same in terms of layout and
> > > functionality except that the would have different images.  They may
> > > also connect to seperate database. How can I set up a site
> like this so
> > > that I can use the same pages for all of the clubs but pass different
> > > configurations so that I can render the pages with their own images.
> > >
> > > thanks
> > > mike
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:

> For additional commands, e-mail:

--
Mike Karl

Montana Connect
851 Bridger Dr.
Bozeman, MT 59715
(406) 556-1800

[EMAIL PROTECTED]

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Michael Delamere

Mark,

Thanks very much for your time.
I will try that now.

Regards,

Michael


- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 1:22 AM
Subject: RE: Getting a list from a session bean and displaying the data in a
jsp


> Michael,
>
> 1.  Your input form should not contain iterator - it is for input. You
need
> to define your  tags inside an  method="post"> and declare this bean and action in struts-config.xml like
>
>
>   type="com.morelogs.guestbook.GBEntryForm" />
>
> 
>  type="com.morelogs.guestbook.action.SaveGBEntryAction"
>   name="GBEntryForm"
>   input="/welcome.jsp"
>   scope="session"
>   validate="true" >
>
> 
>
> 2.  When you submit welcome.jsp, it fires SaveGBAction and automatically
> sets the propertiies of GBentryForm (mainly in case the user needs to
return
> because of an error).  You can now access all the bean properties:
>
> GBEntryForm entryForm = (GBEntryForm) form;
>
> which you can use to save the data to the database.  After which, make
your
> call to your session EJB and set the gbEntry property in the form bean:
>
> entryForm.setGbEntry( entryList);
>
> When done, struts will forward the request to displayGBEntries.jsp, where
> you then iterate throught the list:
>
> id="gbEntry"
>scope="session"
>  property="gbEntry"
>type="com.morelogs.guestbook.interfaces.gbEntry">
>
>   
>   
>   
> 
>
> Mark
>
> -Original Message-
> From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 5:43 PM
>
> Here´s the call to my session bean:
>
> == CALL TO SESSION BEAN ==
>  // Get a naming context
>  InitialContext jndiContext = new InitialContext();
>
>  // Get a reference to a EntryBean
>  Object ref  = jndiContext.lookup("ejb/guestbook/gbEntries");
>
>  // Get a reference from this to the Bean's Home interface
>  gbEntriesHome home = (gbEntriesHome)
> PortableRemoteObject.narrow (ref, gbEntriesHome.class);
>
> ArrayList entryList = new ArrayList();
>
> gbEntries entriesObj = home.create();
> Object[] entries = entriesObj.getEntriesList();
> for (int i = 0; i < entries.length; i++)
> {
>  gbEntry entry = (gbEntry) entries[i];
>   entryList.add(entry);
>
>   // I get the results printed in my output screen so this works.
>   System.out.println (entry.getEntry_subject() + "\t" +
> entry.getEntry_text() + "\t" +
>  entry.getEntry_date() + "\t" + entry.getEntry_views());
> }
>
> request.setAttribute("entryList", entryList);
> 
>
> Here´s the change in my JSP file:
> ===  JSP FILE 
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/nested-tags.tld" prefix="nested" %>
>
> id="gbEntry"
>scope="request"
>type="com.morelogs.guestbook.interfaces.gbEntry">
>   
> 
> 
> 
>   
> 
> ===
> Could you please have a look over this to see if I have missed something.
> I would really appreciate further help on this.
>
> Regards,
>
> Michael
>
>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, May 13, 2002 10:12 PM
> Subject: Re: Getting a list from a session bean and displaying the data in
a
> jsp
>
>
> >
> > In a non-nested context, you would do the following for a collection of
> > objects associated with the request object
> >
> >  >id="entry"
> >scope="request"
> >type="com.xxx.xxx.xxx.Entry">
> >   
> > 
> > 
> > 
> >   
> > 
> >
> >
> >
> >
> >
> > "Michael Delamere" <[EMAIL PROTECTED]> on 05/13/2002 01:00:42 PM
> >
> > Please respond to "Struts Users Mailing List"
> >   <[EMAIL PROTECTED]>
> >
> > To:   "'Struts Users Mailing List' \(E-mail\)"
> >   <[EMAIL PROTECTED]>
> > cc:
> > Subject:  Getting a list from a session bean and displaying the data in
a
> >   jsp
> >
> >
> > Hi,
> >
> > I´ve got a session bean which returns an Object[] array of entity beans.
> > In
> > my action file I get the array via a jndiContext.lookup.  That´s all no
> > problem and I can retreive my data out of the entity beans.
> >
> > However, I´m slightly stuck getting them over to my jsp file.  I´ve
tried
> >
> > request.setAttribute("entryList", entryList);
> >
> > and then outputing the data with:
> >
> > 
> >   
> > 
> > 
> > 
> >   
> > 
> >
> > Could someone give me an insight of how this is done

RE: LogoutAction

2002-05-13 Thread Villegas, Courtney

Thank you Taati and Raafy for your help.

I found the error.  It was, as so many are, a user error :-)

Thanks Again!
Courtney

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 4:15 PM
To: Struts Users Mailing List
Subject: RE: LogoutAction


Do one thing buddy!
Just do a servlet.log("somestring") after every if(servlet.debug...) and
tell me where it is going?

Regards,
Taati
> -Original Message-
> From: Villegas, Courtney [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 7:11 PM
> To:   'Struts Users Mailing List'
> Subject:  RE: LogoutAction
> 
> ALl of my jsp pages check to see whether a user is logged on.  After
> calling
> the logout action, I am still able to navigate to my other jsp pages.
> This
> does not happen every time.  I am really tearing my hair out trying to
> debug, because the results are not consistent.
> 
> Courtney
> 
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 4:09 PM
> To: Struts Users Mailing List
> Subject: RE: LogoutAction
> 
> 
> Can you please be more clear? What do you mean by "does not actually log
> the
> user out"?whats happening there?
> 
> 
> Regards,
> Taati
> > -Original Message-
> > From:   Villegas, Courtney [SMTP:[EMAIL PROTECTED]]
> > Sent:   Monday, May 13, 2002 6:53 PM
> > To: '[EMAIL PROTECTED]'
> > Subject:LogoutAction
> > 
> > I am having troubles with the logout action that I have written.  It
> > directs
> > me to the correct page, but does not actually log the user out and close
> > the
> > session.  I have attached my action and the info from my struts-config
> > file.
> > I am calling session.invalidate() incorrectly?
> > 
> > Thanks
> > Courtney
> > 
> > 
> >  >type="org.trimet.security.actions.LogoffAction"
> >scope="request">
> >   
> > 
> > 
> > package org.trimet.security.actions;
> > 
> > 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.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;
> > import org.apache.commons.beanutils.PropertyUtils;
> > 
> > import org.trimet.security.states.Constants;
> > import org.trimet.security.states.User;
> > 
> > /**
> >  * Implementation of Action that logs user out of
> current
> > session 
> >  *
> >  * @author Courtney S. Villegas
> >  * @version $Revision: 1.0 $ $Date: 2002/05/13 03:03:00 $
> >  */
> > 
> > public final class LogoffAction 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("Load");
> > if (action == null)
> > action = "Load";
> > if (servlet.getDebug() >= 1)
> > servlet.log("LogoffAction:  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 "
>

FW: javascript and struts1.0.2

2002-05-13 Thread Joseph Barefoot

Taati,

This is a re-send in case it got buried somewhere in the
beta-alpha-who-cares discussion earlier. ;)

-Original Message-
From: Joseph Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:01 PM
To: Struts Users Mailing List
Subject: RE: javascript and struts1.0.2


Well, if it works, I wouldn't worry about it too much--I'm not much of a
worrier by design, you see. ;)

The only difference between what I was suggesting and the way you're doing
it (I think) is where the actual Javascript resides.  I believe you are
putting it into the resource bundle for each error message you want to
output, and then creating an ActionError with the message ( already
containing the Javascript).

My suggestion was to put only the error message in the resource bundle, and
leave the Javascript in the JSP.  If your validation encounters errors,
create your ActionErrors object as you've been doing, but put the
ActionErrors object into the request with a key name (e.g. actionErrorsKey)
so you check for its existence.

Then in your JSP, you can do something like this:


onload(
window.alert();
)



This way you could potentially re-use the error messages later since they no
longer contain any JavaScript.  If your implementation is satisfactory,
however, by all means stick with it.


peace,

Joe Barefoot


> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 2:30 PM
> To: Struts Users Mailing List
> Subject: RE: javascript and struts1.0.2
>
>
> Joseph,
>   I am talking to Juan also and I think he is also suggesting the same
> way.The first problem I faced was I was using struts 1.0.2 and I
> didnt know
> how to do javascript handling part.So I used  that way to incorporate
> javascript alerts into my page and they sure seem to work fine.DO you have
> anyspecific example of which will give me the functionality you
> were talking
> abt .
> Thanks in advance.
>
> Regards,
> Taati
> > -Original Message-
> > From:   Joseph Barefoot [SMTP:[EMAIL PROTECTED]]
> > Sent:   Monday, May 13, 2002 4:52 PM
> > To: Struts Users Mailing List
> > Subject:RE: javascript and struts1.0.2
> >
> > If it works, I'd say it's 'correct' enough. :)
> >
> > I'm not sure how you're doing this, but why not just write a
> custom tag or
> > do a  to check for an ActionErrors object to see if there
> > are
> > errors.  If the tag evaluates to true, output your Javascript onload()
> > function, using  tags to get the actual error message
> > text(s)
> > and insert them into the window.alert().  This way you only store the
> > error
> > message itself in the resource file, while the Javascript stays in your
> > JSP
> > page.  I've used Struts tags to modify the output of Javascript
> similarly,
> > and it works fine.
> >
> > Is this how you're currently doing it, and if not, is there a
> problem with
> > doing it this way?
> >
> >
> > peace,
> > Joe Barefoot
> >
> >
> > > -Original Message-
> > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, May 13, 2002 12:13 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: javascript and struts1.0.2
> > >
> > >
> > > Struts guys,
> > >   A help and review required urgently.I am using struts1.0.2 and I
> > > have to show the errors(validations ,ActionErrors) in the form of
> > > javascript
> > > alerts. I found  that struts 1.0.2 does not support javascript. I
> > handled
> > > this by writing the alerts in the applicationresources.properties and
> > that
> > > way I was within the framework and did not have to do much of
> extensive
> > > coding. Is this approach correct or is there some other better way?
> > > TIA
> > > Regards,
> > > Taati
> > >
> > >
> > > --
> > > 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:



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




RE: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Galbreath, Mark

Michael,

1.  Your input form should not contain iterator - it is for input. You need
to define your  tags inside an  and declare this bean and action in struts-config.xml like


  type="com.morelogs.guestbook.GBEntryForm" />


  
   


2.  When you submit welcome.jsp, it fires SaveGBAction and automatically
sets the propertiies of GBentryForm (mainly in case the user needs to return
because of an error).  You can now access all the bean properties:

GBEntryForm entryForm = (GBEntryForm) form;

which you can use to save the data to the database.  After which, make your
call to your session EJB and set the gbEntry property in the form bean:

entryForm.setGbEntry( entryList);

When done, struts will forward the request to displayGBEntries.jsp, where
you then iterate throught the list:



  
  
  


Mark

-Original Message-
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 5:43 PM

Here´s the call to my session bean:

== CALL TO SESSION BEAN ==
 // Get a naming context
 InitialContext jndiContext = new InitialContext();

 // Get a reference to a EntryBean
 Object ref  = jndiContext.lookup("ejb/guestbook/gbEntries");

 // Get a reference from this to the Bean's Home interface
 gbEntriesHome home = (gbEntriesHome)
PortableRemoteObject.narrow (ref, gbEntriesHome.class);

ArrayList entryList = new ArrayList();

gbEntries entriesObj = home.create();
Object[] entries = entriesObj.getEntriesList();
for (int i = 0; i < entries.length; i++)
{
 gbEntry entry = (gbEntry) entries[i];
  entryList.add(entry);

  // I get the results printed in my output screen so this works.
  System.out.println (entry.getEntry_subject() + "\t" +
entry.getEntry_text() + "\t" +
 entry.getEntry_date() + "\t" + entry.getEntry_views());
}

request.setAttribute("entryList", entryList);


Here´s the change in my JSP file:
===  JSP FILE 
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/nested-tags.tld" prefix="nested" %>


  



  

===
Could you please have a look over this to see if I have missed something.
I would really appreciate further help on this.

Regards,

Michael



- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 10:12 PM
Subject: Re: Getting a list from a session bean and displaying the data in a
jsp


>
> In a non-nested context, you would do the following for a collection of
> objects associated with the request object
>
> id="entry"
>scope="request"
>type="com.xxx.xxx.xxx.Entry">
>   
> 
> 
> 
>   
> 
>
>
>
>
>
> "Michael Delamere" <[EMAIL PROTECTED]> on 05/13/2002 01:00:42 PM
>
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
> To:   "'Struts Users Mailing List' \(E-mail\)"
>   <[EMAIL PROTECTED]>
> cc:
> Subject:  Getting a list from a session bean and displaying the data in a
>   jsp
>
>
> Hi,
>
> I´ve got a session bean which returns an Object[] array of entity beans.
> In
> my action file I get the array via a jndiContext.lookup.  That´s all no
> problem and I can retreive my data out of the entity beans.
>
> However, I´m slightly stuck getting them over to my jsp file.  I´ve tried
>
> request.setAttribute("entryList", entryList);
>
> and then outputing the data with:
>
> 
>   
> 
> 
> 
>   
> 
>
> Could someone give me an insight of how this is done.
> I would be most grateful.
>
> Thanks,
>
> Michael
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
> **
> Please Note:
> The information in this E-mail message, and any files transmitted
> with it, is confidential and may be legally privileged.  It is
> intended only for the use of the individual(s) named above.  If you
> are the intended recipient, be aware that your use of any confidential
> or personal information may be restricted by state and federal
> privacy laws.  If you, the reader of this message, are not the
> intended recipient, you are hereby notified that you should not
> further disseminate, distribute, or forward this E-mail message.
> If you have received this E-mail in error, please notify the sender
> and delete the material from any computer.  Thank you.
> **
>
>
>
> --
> To unsubscribe, e-mail:


RE: LogoutAction

2002-05-13 Thread Mannem, Taati

Do one thing buddy!
Just do a servlet.log("somestring") after every if(servlet.debug...) and
tell me where it is going?

Regards,
Taati
> -Original Message-
> From: Villegas, Courtney [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 7:11 PM
> To:   'Struts Users Mailing List'
> Subject:  RE: LogoutAction
> 
> ALl of my jsp pages check to see whether a user is logged on.  After
> calling
> the logout action, I am still able to navigate to my other jsp pages.
> This
> does not happen every time.  I am really tearing my hair out trying to
> debug, because the results are not consistent.
> 
> Courtney
> 
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 4:09 PM
> To: Struts Users Mailing List
> Subject: RE: LogoutAction
> 
> 
> Can you please be more clear? What do you mean by "does not actually log
> the
> user out"?whats happening there?
> 
> 
> Regards,
> Taati
> > -Original Message-
> > From:   Villegas, Courtney [SMTP:[EMAIL PROTECTED]]
> > Sent:   Monday, May 13, 2002 6:53 PM
> > To: '[EMAIL PROTECTED]'
> > Subject:LogoutAction
> > 
> > I am having troubles with the logout action that I have written.  It
> > directs
> > me to the correct page, but does not actually log the user out and close
> > the
> > session.  I have attached my action and the info from my struts-config
> > file.
> > I am calling session.invalidate() incorrectly?
> > 
> > Thanks
> > Courtney
> > 
> > 
> >  >type="org.trimet.security.actions.LogoffAction"
> >scope="request">
> >   
> > 
> > 
> > package org.trimet.security.actions;
> > 
> > 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.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;
> > import org.apache.commons.beanutils.PropertyUtils;
> > 
> > import org.trimet.security.states.Constants;
> > import org.trimet.security.states.User;
> > 
> > /**
> >  * Implementation of Action that logs user out of
> current
> > session 
> >  *
> >  * @author Courtney S. Villegas
> >  * @version $Revision: 1.0 $ $Date: 2002/05/13 03:03:00 $
> >  */
> > 
> > public final class LogoffAction 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("Load");
> > if (action == null)
> > action = "Load";
> > if (servlet.getDebug() >= 1)
> > servlet.log("LogoffAction:  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"));
> > }
> > 
> > 
> > // Forward control to the GISAppDev page
> > if (servlet.getDebug() >= 1)
> > servlet.log(" Forwarding to 'GIS App Dev' page");
> > user=null

RE: LogoutAction

2002-05-13 Thread Villegas, Courtney

ALl of my jsp pages check to see whether a user is logged on.  After calling
the logout action, I am still able to navigate to my other jsp pages.  This
does not happen every time.  I am really tearing my hair out trying to
debug, because the results are not consistent.

Courtney

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 4:09 PM
To: Struts Users Mailing List
Subject: RE: LogoutAction


Can you please be more clear? What do you mean by "does not actually log the
user out"?whats happening there?


Regards,
Taati
> -Original Message-
> From: Villegas, Courtney [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 6:53 PM
> To:   '[EMAIL PROTECTED]'
> Subject:  LogoutAction
> 
> I am having troubles with the logout action that I have written.  It
> directs
> me to the correct page, but does not actually log the user out and close
> the
> session.  I have attached my action and the info from my struts-config
> file.
> I am calling session.invalidate() incorrectly?
> 
> Thanks
> Courtney
> 
> 
> type="org.trimet.security.actions.LogoffAction"
>scope="request">
>   
> 
> 
> package org.trimet.security.actions;
> 
> 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.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;
> import org.apache.commons.beanutils.PropertyUtils;
> 
> import org.trimet.security.states.Constants;
> import org.trimet.security.states.User;
> 
> /**
>  * Implementation of Action that logs user out of current
> session 
>  *
>  * @author Courtney S. Villegas
>  * @version $Revision: 1.0 $ $Date: 2002/05/13 03:03:00 $
>  */
> 
> public final class LogoffAction 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("Load");
>   if (action == null)
>   action = "Load";
> if (servlet.getDebug() >= 1)
> servlet.log("LogoffAction:  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"));
>   }
> 
> 
>   // Forward control to the GISAppDev page
> if (servlet.getDebug() >= 1)
> servlet.log(" Forwarding to 'GIS App Dev' page");
> user=null;
> session.invalidate();
>   return (mapping.findForward("success"));
> 
> }
> 
> 
> }
> 
> --
> 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: Want one Action servlet to forward to another Action servlet

2002-05-13 Thread Ted Husted

First, it's important to note that Actions are not servlets. The
ActionServlet dispatches control to an Action, but the Action itself is
not an Action. 

The Struts Action classes return an ActionForward object. This is
usually retreived from the ActionMappings but can also be created on the
fly. 

If the database query returned a single record, you can have the Action
select the "single" ActionForward. Or "multiple" or "empty" as the case
may be. The ActionServlet will then forward control to the indicated
Action. 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


"Struts Newsgroup (@Basebeans.com)" wrote:
> 
> Subject: Want one Action servlet to forward to another Action servlet
> From: [EMAIL PROTECTED] (Joe Fischer)
>  ===
> My idea is to have an Action servlet query a database to
> search on a name.  If multiple names come back, it will forward to a
> selection jsp that allows me to select the desired name and then go to
> a "details" Action servlet.  That works fine.  But, if the first
> servlet finds an exact name match, then it should by-pass the multiple
> selection page and go straight to the "display" details Action
> servlet.  This servlet needs to make addition queries on the database,
> set up some info beans (similar to entity EJBs) and call one of
> several jsps to display the results.  So, how do I effect a forward
> from the first servlet to the second? Setting up the forward string
> the way the jsp does it does not seem to work.
> Thanks.
> ---
> Joe
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




RE: LogoutAction

2002-05-13 Thread Mannem, Taati

Can you please be more clear? What do you mean by "does not actually log the
user out"?whats happening there?


Regards,
Taati
> -Original Message-
> From: Villegas, Courtney [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 6:53 PM
> To:   '[EMAIL PROTECTED]'
> Subject:  LogoutAction
> 
> I am having troubles with the logout action that I have written.  It
> directs
> me to the correct page, but does not actually log the user out and close
> the
> session.  I have attached my action and the info from my struts-config
> file.
> I am calling session.invalidate() incorrectly?
> 
> Thanks
> Courtney
> 
> 
> type="org.trimet.security.actions.LogoffAction"
>scope="request">
>   
> 
> 
> package org.trimet.security.actions;
> 
> 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.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;
> import org.apache.commons.beanutils.PropertyUtils;
> 
> import org.trimet.security.states.Constants;
> import org.trimet.security.states.User;
> 
> /**
>  * Implementation of Action that logs user out of current
> session 
>  *
>  * @author Courtney S. Villegas
>  * @version $Revision: 1.0 $ $Date: 2002/05/13 03:03:00 $
>  */
> 
> public final class LogoffAction 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("Load");
>   if (action == null)
>   action = "Load";
> if (servlet.getDebug() >= 1)
> servlet.log("LogoffAction:  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"));
>   }
> 
> 
>   // Forward control to the GISAppDev page
> if (servlet.getDebug() >= 1)
> servlet.log(" Forwarding to 'GIS App Dev' page");
> user=null;
> session.invalidate();
>   return (mapping.findForward("success"));
> 
> }
> 
> 
> }
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

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




RE: Multiple sites using one struts application.

2002-05-13 Thread Mike Karl

If I did something like this, would it then be appropriate to use a
filter to set properties based on the url?

thanks
mike


On Mon, 2002-05-13 at 15:03, James Mitchell wrote:
> 
> One suggestion..
> 
> Register a domain name, then setup to use virtual host.
> 
> http://club1.mydomain.com/
> http://club2.mydomain.com/
> http://club3.mydomain.com/
> http://club4.mydomain.com/
> http://club5.mydomain.com/
> http://club6.mydomain.com/
> 
> Use same code base, but put all image references in a property file and
> extend the img tag to write from the bundle, based on some kind of
> ResourceManager (similar to how the i18n checks the headers for language)
> 
> I hope this gives you some ideas, if not then just press DELETE.;)
> 
> JM
> 
> 
> 
> 
> > -Original Message-
> > From: Mike Karl [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 4:52 PM
> > To: [EMAIL PROTECTED]
> > Subject: Multiple sites using one struts application.
> >
> >
> > Hello,
> > I'm building a site for a group of clubs.  All the sites will have the
> > same set of pages and actions.
> >
> > For instance:
> >
> > http://clubsites/club1/index.jsp
> > http://clubsites/club2/index.jsp
> > http://clubsites/club3/index.jsp
> > http://anothersite/club4/index.jsp
> >
> > All of these sites would basically be the same in terms of layout and
> > functionality except that the would have different images.  They may
> > also connect to seperate database. How can I set up a site like this so
> > that I can use the same pages for all of the clubs but pass different
> > configurations so that I can render the pages with their own images.
> >
> > thanks
> > mike
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
-- 
Mike Karl

Montana Connect
851 Bridger Dr.
Bozeman, MT 59715
(406) 556-1800

[EMAIL PROTECTED]

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




Re: Multiple sites using one struts application.

2002-05-13 Thread Mike Karl

Would this then build me an application for each site?  So it would copy
the files over for each site.  I don't know that this is viable because
I have 50 or so sites that would be running on one server.  What I would
like is just one set of files running at a time and not 50 so that I
could save on server resources.  Or am I reading this wrong.

thanks
mike


On Mon, 2002-05-13 at 15:31, [EMAIL PROTECTED] wrote:
> 
> 
> 
> 
> I believe this is a build/deploy question as much as a Struts question. But
> here goes:
> 
> 1. Drive virtually everything from your application.properties file. All
> these properties are available to your Action classes. For example, define
> the path to your images directory there, the club name, the jdbc url, etc.)
> 
> 2. Create each site as it's own web app - but keep everything in a SINGLE
> SOURCE CONTROL REPOSITORY version. You will create specific sites ONLY AT
> BUILD TIME. Again - only one version exists in source control. Call this
> The Template.
> 
>  This is critical. No site-specific code or properties get checked in
> with The Template. Everything is driven from the application.properties
> file.
> 
> 3. Define the values in this application.properties file using "tokens",
> not actual values. For example:
> 
>  in The Template application.properties for Struts:
> 
>  club.name=CLUB_NAME
>  path.to.images=IMAGE_PATH
>  site.jdbc.url=JDBC_URL
> 
>  - etc. -
> 
> 4. Then, for each actual site, create a seperate "properties" file
> containing the specific values for that site. For example:
> 
>  in "club1.properties"
> 
>  club.name=Fred's Club
>  path.to.images=/fredimages/images
>  site.jdbc.url="jdbc:oracle:thin:@123.45.67.89:1521:orcl"
> 
>  - etc. -
> 
> 5. At build time, use Ant's "" target to replace the "tokens" in
> the struts application.properties file with the site-specific values from
> the site-specific properties files. That is:
> 
> 
>  file="path/to/struts/application.properties"
>   propertyFile="path/to/specific/club.properties" >
>token="CLUB_NAME"
>   property="club.name"/>
>token="IMAGE_PATH"
>   property="path.to.images"/>
>token="JDBC_URL"
>   property="site.jdbc.url"/>
>   
> 
> 
>  See details on the Ant  tag at: 
>http://jakarta.apache.org/ant/manual/CoreTasks/replace.html
> 
> 6. Create a different ant target to build each site. And maybe a "build-all" to 
>build all the sites.
> 
>  There's a bit of work here getting things organized. But this will allow you to 
>generate sites from The Template as a build/configuration process
>  - not as a development issue.
> 
> Summary:
> 
> 1.   Drive EVERYTHING site specific from the application.properties file
> 2.   Use tokens in the application.properties file instead of actual values
> 3.   Create the actual sites at build/deploy time using Ant and the  target.
> 
> This will work!
> 
> 
> FWIW -
> Kevin
> 
> 
> 
> 
> 
> Mike Karl <[EMAIL PROTECTED]> on 05/13/2002 04:51:36 PM
> 
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
> 
> To:   [EMAIL PROTECTED]
> cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
> Subject:  Multiple sites using one struts application.
> 
> 
> Hello,
> I'm building a site for a group of clubs.  All the sites will have the
> same set of pages and actions.
> 
> For instance:
> 
> http://clubsites/club1/index.jsp
> http://clubsites/club2/index.jsp
> http://clubsites/club3/index.jsp
> http://anothersite/club4/index.jsp
> 
> All of these sites would basically be the same in terms of layout and
> functionality except that the would have different images.  They may
> also connect to seperate database. How can I set up a site like this so
> that I can use the same pages for all of the clubs but pass different
> configurations so that I can render the pages with their own images.
> 
> thanks
> mike
> 
> 
> 
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> 
> ---
> This e-mail message (including attachments, if any) is intended for the use
> of the individual or entity to which it is addressed and may contain
> information that is privileged, proprietary , confidential and exempt from
> disclosure.  If you are not the intended recipient, you are notified that
> any dissemination, distribution or copying of this communication is
> strictly prohibited.  If you have received this communication in error,
> please notify the sender and erase this e-mail message immediately.
> ---
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
-- 

Re: LogoutAction

2002-05-13 Thread Raffy_Lata


Why don't you clean up your code first and make sure that you only have the
session.invalidate() in there? This will tell you if it works or not. If it
does then you can just add back the other bits and pieces of codes that you
have there (one by one) and see which one is causing your problem.






"Villegas, Courtney" <[EMAIL PROTECTED]> on 05/13/2002 03:53:07 PM

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

To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject:  LogoutAction


I am having troubles with the logout action that I have written.  It
directs
me to the correct page, but does not actually log the user out and close
the
session.  I have attached my action and the info from my struts-config
file.
I am calling session.invalidate() incorrectly?

Thanks
Courtney



  


package org.trimet.security.actions;

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.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;
import org.apache.commons.beanutils.PropertyUtils;

import org.trimet.security.states.Constants;
import org.trimet.security.states.User;

/**
 * Implementation of Action that logs user out of current
session
 *
 * @author Courtney S. Villegas
 * @version $Revision: 1.0 $ $Date: 2002/05/13 03:03:00 $
 */

public final class LogoffAction 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("Load");
 if (action == null)
 action = "Load";
if (servlet.getDebug() >= 1)
servlet.log("LogoffAction:  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"));
 }


 // Forward control to the GISAppDev page
if (servlet.getDebug() >= 1)
servlet.log(" Forwarding to 'GIS App Dev' page");
user=null;
session.invalidate();
 return (mapping.findForward("success"));

}


}

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






**
Please Note:
The information in this E-mail message, and any files transmitted
with it, is confidential and may be legally privileged.  It is
intended only for the use of the individual(s) named above.  If you
are the intended recipient, be aware that your use of any confidential
or personal information may be restricted by state and federal
privacy laws.  If you, the reader of this message, are not the
intended recipient, you are hereby notified that you should not
further disseminate, distribute, or forward this E-mail message.
If you have received this E-mail in error, please notify the sender
and delete the material from any computer.  Thank you.
**



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




Re: Using Adalon

2002-05-13 Thread Ted Husted

The real strength of Adalon is that it helps you work with the
client/users to clearly define the specificiation and requirements. 

>From that, it can generate starter code to give you a leg-up  on
implementing the plan. 

I worked with Synthis to develop the Struts templates. Great group to
work with. I found the GUI a nifty way to develop requirements. We
worked hard to build the Advanced template to keep most of the real work
on business tier, and minimize the Struts specific knowledge.

It doesn't replace Struts development, but it can certainly give you a
serious head-start.

Synthis is also donating the Adalon/Struts classes to the Apache
Software Foundation, and I will be working to integrate them into the
Scaffold package under contrib.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services



William W wrote:
> 
> Hi All,
> 
> Do you know Synthis Adalon ?
> Is it good to build Struts code and design ?
> 
> Thanks,
> William.
> 
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




LogoutAction

2002-05-13 Thread Villegas, Courtney

I am having troubles with the logout action that I have written.  It directs
me to the correct page, but does not actually log the user out and close the
session.  I have attached my action and the info from my struts-config file.
I am calling session.invalidate() incorrectly?

Thanks
Courtney



  


package org.trimet.security.actions;

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.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;
import org.apache.commons.beanutils.PropertyUtils;

import org.trimet.security.states.Constants;
import org.trimet.security.states.User;

/**
 * Implementation of Action that logs user out of current
session 
 *
 * @author Courtney S. Villegas
 * @version $Revision: 1.0 $ $Date: 2002/05/13 03:03:00 $
 */

public final class LogoffAction 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("Load");
if (action == null)
action = "Load";
if (servlet.getDebug() >= 1)
servlet.log("LogoffAction:  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"));
}


// Forward control to the GISAppDev page
if (servlet.getDebug() >= 1)
servlet.log(" Forwarding to 'GIS App Dev' page");
user=null;
session.invalidate();
return (mapping.findForward("success"));

}


}

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




RE: Default Button

2002-05-13 Thread IS Struts

Tony,
   I understand creating the tag, but I am not sure how to include the following line 
into a Struts submit button.

  

Thanks,
Rich


>>> [EMAIL PROTECTED] 05/07/02 08:38AM >>>

I have a tag that generates java script.  Below is the relevant code from
the tag

out.println("");
out.println("");
out.println("");
out.println("");
out.println("");
out.println("");
out.println("");

To use the code/tag in the jsp I simply type



Hope this helps.


-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 07, 2002 10:33 AM
To: Struts Users Mailing List
Subject: RE: Default Button


There is no default.

When the user hits enter in any input field (except textarea) the enclosing
form is submitted.

JM




> -Original Message-
> From: IS Struts [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, May 07, 2002 10:26 AM
> To: [EMAIL PROTECTED] 
> Subject: Default Button
>
>
> How do you make a button a default button on a JSP, so when the
> user hits the 'Enter' key the button is submitted?
>
> Any suggestions are appreciated,
> Rich
>
>
> --
> 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: 




Sub-application motel -- pages check in but they don't check out

2002-05-13 Thread Byrne, Steven

In reading the somewhat as-yet scanty documentation about what
subapplications are, and how to use them, I was unable to find any
description of how to express in a forward that I wanted to leave one
subapplication and transition to another one (or possibly "up" to the
default one).  

Of course I could use an absolute URL, but that means that I have to
embed hard knowledge of the URL that I'm deployed at into the
struts-config.xml file.  Or, I could some up with some scriptlet that
computes this value at runtime, and use that value as the target for the
HTML form action attribute -- again, somewhat suboptimal.

What is the correct way to express using struts a transition out of one
subapplication and into another?

Steve

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




Re: I need help building tiles from src - please

2002-05-13 Thread Larry Meadors

Gee, I had the exact same problem at my house this weekend. ;-)
 
The build for struts was trying to build tiles, but it looked like when
using relative paths for my struts build, the tiles build looked in the
wrong directories for supporting jars and puked. 
 
I changed one build.xml file and got one example to compile, then found
the setting to NOT build the webapps. Once I turned that off, I got
struts to compile, albeit without tiles.
 
I suspect that if you used absolute paths that it would work, and hope
that the next released build will work better with relative paths.
 
I may spend some more time this week to try and get it going...
 
Larry

>>> [EMAIL PROTECTED] 05/13/02 09:11AM >>>
Hi,

I've been trying to build tiles and am struggling a bit.

I downloaded and ran a build of 'jakarta-struts-1.1-b1-src' only to
find 
that it doesn't automatically build tiles. When I finish building 
struts, I can see a contrib directory which contains a tiles 
subdirectory with the tiles source in it.

When I read the build.xml notes, it says make sure this file is in the

root of the struts-src directory.

This is going to override the existing struts build.xml - which is 
surely not what we want.

What is the best way to arrange things?




AW: Configuration is frozen -what does it mean?

2002-05-13 Thread "Moritz Björn-Hendrik, HH"

In the ManadssparaAction, you're trying to modify a ForwardConfig-Object.
These configuration objects are meant to be initialized at servlet startup
time, i.e. by reading the configuration data from struts-config.xml. You are
not allowed to modify them afterwards. 

Björn

> -Ursprüngliche Nachricht-
> Von:  [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Montag, 13. Mai 2002 12:59
> An:   [EMAIL PROTECTED]
> Betreff:  Configuration is frozen -what does it mean?
> 
> Hi!
> I often get an error messaget that says that the configuration is frozen.
> (See 
> the error message below). I don't understand why I get this error and 
> restarting the server does not help. I really need some help with this
> problem, 
> thanks.
> 
> // Ulrika
> 
> [INFO] RequestProcessor - -Processing a 'GET' for 
> path '/manadsspara/manadssparaForm'
> [WARN] RequestProcessor - -null
> [2002-05-13 09:51:51:298 GMT+02:00] 7f23374e WebGroup  X Servlet
> Error: 
> Configuration is frozen: java.lang.IllegalStateException: Configuration is
> 
> frozen
> at org.apache.struts.config.ForwardConfig.setRedirect
> (ForwardConfig.java:161)
> at 
> se.amfpension.internet.manadsspara.action.ManadssparaAction.prePerform
> (ManadssparaAction.java:92)
> at 
> se.amfpension.internet.manadsspara.action.ManadssparaFormAction.perform
> (ManadssparaFormAction.java:35)
> at org.apache.struts.action.Action.execute(Action.java:369)
> at org.apache.struts.action.RequestProcessor.processActionPerform
> (RequestProcessor.java:437)
> at org.apache.struts.action.RequestProcessor.process
> (RequestProcessor.java:264)
> at org.apache.struts.action.ActionServlet.process
> (ActionServlet.java:1109)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
> at se.amfpension.internet.servlet.ControlServlet.doGet
> (ControlServlet.java:164)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at com.ibm.servlet.engine.webapp.StrictServletInstance.doService
> (ServletManager.java:827)
> at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
> (StrictLifecycleServlet.java:167)
> at com.ibm.servlet.engine.webapp.IdleServletState.service
> (StrictLifecycleServlet.java:297)
> at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
> (StrictLifecycleServlet.java:110)
> at com.ibm.servlet.engine.webapp.ServletInstance.service
> (ServletManager.java:472)
> at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch
> (ServletManager.java:1012)
> at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch
> (ServletManager.java:913)
> at 
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch
> (WebAppRequestDispatcher.java:523)
> at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
> (WebAppRequestDispatcher.java:282)
> at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward
> (WebAppRequestDispatcher.java:112)
> at com.ibm.servlet.engine.srt.WebAppInvoker.doForward
> (WebAppInvoker.java:91)
> at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook
> (WebAppInvoker.java:184)
> at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation
> (CachedInvocation.java:67)
> at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke
> (CacheableInvocationContext.java:106)
> at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI
> (ServletRequestProcessor.java:125)
> at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service
> (OSEListener.java:315)
> at com.ibm.servlet.engine.http11.HttpConnection.handleRequest
> (HttpConnection.java:60)
> at com.ibm.ws.http.HttpConnection.readAndHandleRequest
> (HttpConnection.java:323)
> at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
> at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

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




how to access the properties file from the action class

2002-05-13 Thread Yugandhar_Reddy



Hi
I need to read the 
error messages from the properties file from my action 
class.
I will be having the 
key of the message in my action class. I need to read the value of that key from 
the properties file in my action class.
 
Thanks in 
advance,
Yug
 
 

***

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


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


Action Errors

2002-05-13 Thread sanjeev_dutt


Hi All,

I have two action classes A and B.
In Action class A, I catching an error in Action Errors:
catch(NoRecordFoundException ne)
{


String excepMsg = ne.getMessage();
cat.debug("From PendDefacctdtlsaction" + excepMsg);
errors.add(ActionErrors.GLOBAL_ERROR, new 
ActionError("error.database.message" + excepMsg));
 saveErrors(request, errors);
 session.setAttribute("errors", errors);
return (mapping.findForward("clipboardSendPL"));


}

And the control is forwarded to another action class B(clipboardSendPL).
In B I am getting the same errors object from session and not instantiating a new 
Action error.

But in the final jsp, the message is not getting printed.
ActionErrors errors = (ActionErrors)session.getAttribute("errors");
saveErrors(request, errors);

Any clues ?

Thanks
Sanjeev

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




Sub-application Example

2002-05-13 Thread BLANQUART Fabrice

Can someone tell me where I can find some application example wich use the
new sub-applications part of the 1.1b1 version ?

Fabrice BLANQUART


*---*
* Cet e-mail et toutes les pièces jointes sont destinés aux *
* seules personnes auxquelles ils sont spécifiquement adressés  *
* et n'engagent que le signataire de ces documents et non la*
* structure dont il dépend. *
* Leur existence et leur contenu ont un caractère confidentiel. *
* Toute utilisation ou diffusion non autorisée est interdite.   *
* Si vous avez reçu cet  e-mail ou si vous détenez sans en être *
* le destinataire, nous vous demandons de bien vouloir nous en  *
* informer immédiatement.   *
* Cette note assure que mimesweeper a vérifié que ce message*
* ne comprenait aucun virus connu à ce jour, néanmoins tout *
* message électronique est susceptible d'altération.*
* Nous déclinons toute responsabilité au titre de ce message*
* s'il a étéaltéré, déformé ou falsifié.*
*---*
 


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




Configuration is frozen -what does it mean?

2002-05-13 Thread struts

Hi!
I often get an error messaget that says that the configuration is frozen. (See 
the error message below). I don't understand why I get this error and 
restarting the server does not help. I really need some help with this problem, 
thanks.

// Ulrika

[INFO] RequestProcessor - -Processing a 'GET' for 
path '/manadsspara/manadssparaForm'
[WARN] RequestProcessor - -null
[2002-05-13 09:51:51:298 GMT+02:00] 7f23374e WebGroup  X Servlet Error: 
Configuration is frozen: java.lang.IllegalStateException: Configuration is 
frozen
at org.apache.struts.config.ForwardConfig.setRedirect
(ForwardConfig.java:161)
at 
se.amfpension.internet.manadsspara.action.ManadssparaAction.prePerform
(ManadssparaAction.java:92)
at 
se.amfpension.internet.manadsspara.action.ManadssparaFormAction.perform
(ManadssparaFormAction.java:35)
at org.apache.struts.action.Action.execute(Action.java:369)
at org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:437)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:264)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
at se.amfpension.internet.servlet.ControlServlet.doGet
(ControlServlet.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService
(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service
(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service
(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch
(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch
(ServletManager.java:913)
at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch
(WebAppRequestDispatcher.java:523)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java:282)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java:112)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward
(WebAppInvoker.java:91)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook
(WebAppInvoker.java:184)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation
(CachedInvocation.java:67)
at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke
(CacheableInvocationContext.java:106)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI
(ServletRequestProcessor.java:125)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service
(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest
(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest
(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

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




Action Errors

2002-05-13 Thread sanjeev_dutt

Hi All,

I have two action classes A and B.
In Action class A, I catching an error in Action Errors:
catch(NoRecordFoundException ne)
{


String excepMsg = ne.getMessage();
cat.debug("From PendDefacctdtlsaction" + excepMsg);
errors.add(ActionErrors.GLOBAL_ERROR, new 
ActionError("error.database.message" + excepMsg));
 saveErrors(request, errors);
 session.setAttribute("errors", errors);
return (mapping.findForward("clipboardSendPL"));


}

And the control is forwarded to another action class B(clipboardSendPL).
In B I am getting the same errors object from session and not instantiating a new 
Action error.

But in the final jsp, the message is not getting printed.
ActionErrors errors = (ActionErrors)session.getAttribute("errors");
saveErrors(request, errors);

Anu clues ?

Thanks
Sanjeev

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




re: Struts Beginner - Looking for *decent* documentation

2002-05-13 Thread Sue Spielman

Mark:
The manuscript for 'The Struts Framework: Practical Guide for Java
Programmers' will be going final in the next couple of weeks. It is being
published by Morgan-Kaufmann and will be available this summer. I think it
will be exactly what you are looking for and comes with a complete
application download for all code used in the book. The book is based on
Struts 1.1 and covers all of the 1.1 features.

Here's part of the catalog blurb on the book:
This book is for a hands-on software engineering audience. It will be
targeted at a software engineer who develops applications in the Java
programming language and is familiar with web technologies. A general
understanding of Java 2 Enterprise Edition will be necessary. The audience
may include entry, mid-level, and senior software engineers. The book will
be a quick start guide to a software engineer who might have heard the buzz
surrounding Struts, but doesn’t really know what it means or how to use it.
This book will also serve as a how-to guide to build a real application
using Struts for those engineers who might be currently working on projects
with the technology.

I hope you find it helpful.

Regards,
Sue

Switchback Software LLC.
http://www.switchbacksoftware.com
Providing software development and consulting services for enterprise
business, web, and wireless applications.
--> Look for the 2002 release of 'The Struts Framework: A Practical Guide
for Java Programmers' being published by Morgan-Kaufmann. Add yourself to
the pre-publication announcement list at the Switchback Software website.

PH: 303.838.6643
FX: 303.838.6649




From: Mark Udstrand
Subject: Struts Beginner - Looking for *decent* documentation
Date: Thu, 09 May 2002 20:33:17 -0700





I have been working at implementing Struts into an existing web framework
for the past
several days and I feel that the only progress that I have made is that the
documentation for Struts is generally poor and very disorganized.  I hope
that I am
incorrect and that someone can point me to a *good* reference with a few
straightforward examples.  Much of my frustration surrounds the
documentation for the
taglibs.  I am interested in documentation that explains the purpose and
usage of each
tag, not some generic definition of the tag.

What I am trying to accomplish is pretty straight forward, however I have
spinning my
wheels for the last several days as I attempt to work my way through 4
different
Struts examples, trying to correlate the contents back to the Struts
documentation.  I
believe that Struts is a good tool, however if my experience is indicative
of a first
time user, the lack of documentation only serves to lessen the usefulness of
this tool.

Thanks.

M.




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




JSP error

2002-05-13 Thread Pete Serafin

Is it possible for the JSP error directive to capture any other type of 
exceptions other than just javax.servlet.jsp.JspException.  Im trying 
to catch any types of exceptions in my JSPs including Jasper and plain 
Exceptions, but Im not sure if this is possible.  Has anyone does this 
without using scriplet coding?



Pete Serafin


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




Leaving "Subapp Motel"? (actions check in, but they don't check out)

2002-05-13 Thread Byrne, Steven

Ok -- I'll bite -- I've finally discovered what sub-applications are all
about [hint -- the documentation needs improving in this area].  It's
pretty easy to see how to transition into a subapplication from the
default subapplication, but I'm not sure what syntax to use in a forward
to reference a non-context and non-application-relative URI.  

Of course, I could always use an absolute URL, but that would mean that
I would have to either hard code that into my struts-config.xml file
(bad), or programmatically determine it (bad).

I think there must be something I'm missing in my understanding of this
useful technology for supporting modular, decoupled web application
development.  Can someone explain how I get out of the roach (subapp)
motel?

Steve




RE: xml-xslt v jsp

2002-05-13 Thread Andrew

The XSLT would be done by the developers who are also doing the java / struts 
side of things. I don't think there would be any other presentation front, 
besides some reporting with Adobe, - ie, no WML etc.
Performance is probably THE major factor, it is critically important.


> -Original Message-
> From: Stout, Kenneth [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 3:10 PM
> To: 'Struts Users Mailing List'
> Subject: RE: xml-xslt v jsp
> 
> There are a couple of issues (OK, I will only bring up a couple).
> 
> 1) The development of the XSLT will be done by whom? Normally you want
> to
> separate the presentation from the development. XSLT is a very strong
> tool
> but can be considered almost a programming language. So you either teach
> web
> designer's XSLT, or you have a programmer convert the HTML into XSLT.
> Tools
> are on the way which should help solve this issue.
> 2) Performance. XSLT is interrupted, and is executed each time. It is my
> understanding that there is an initiative underway to create compiled
> XSLT
> (I believe they are called translets, but I've not kept in touch with
> that
> arena).
> 
> Neither of these answer the "can you" question. They address the "should
> you
> today" question. I am not say don't do it. Just be aware.
> 
> Kenneth.
> 
> -Original Message-
> From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 12:55 PM
> To: [EMAIL PROTECTED]
> Subject: xml-xslt v jsp
> 
> 
> Subject: xml-xslt v jsp
> From: jisv <[EMAIL PROTECTED]>
>  ===
> Just wondering what people's thoughts are on using XML pages that have
> XSLT
> applied to them to display html pages rather than using JSP's. I read an
> 
> article recently that outlined this particular idea, apparently to even
> more separate the business logic from presentation, and supposedly
> increase
> development time. I would have a couple of questions about how
> performance
> would differ, just how much quicker development time would be and simply
> 
> why this hasn't been implemented already, is there a flaw which has
> stopped
> such an implementation being used?
> Thanks for your thoughts.
> 
> --
> 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: 

-- 
Andrew


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




RE: approache to populate combo-box on the fly

2002-05-13 Thread Don Elliott

Hi All,

We use a similar method to do this, but don't hard-code the javascript
arrays in the page.

We have a set of database tables that hold all reference codes, a seperate
table that holds descriptions (to allow multi-language descriptions), and a
third table to hold relationships between reference codes.  All reference
codes are keyed via a ReferenceTypeCode and a ReferenceCode (eg.
COUNTRY,AU) - Relationships are keyed by a Relationship type code as well as
parent and child RefTypeCodes and RefCodes - eg.
COUNTRY_CURRENCY,COUNTRY,AU,CURRENCY,AUD (note - using this approach you can
start with something that is readable, then shorten/encode them for
production usage to minimise space wastage).

We then have a JSP tag that generates the JavaScript arrays passing as
parameters to this tag the RefTypeCodes and appropriate RltshpTypeCodes -
the javascript routines then use this naming standard with the eval()
function to perform the dependant load.

This gets around all hard-coded description / array problems.  The only
issues are with Netscape - you need to ensure that all of your SELECT lists
are default loaded with the number of OPTION items you would like to see on
the screen, as if you start them empty then Netscape will not create a
working dropdown..

Hope this is of some help,
Regards,
Don Elliott
www.i4-talent.com

- Original Message -
Hi all,

We are also using the same approach to populate the dropdowns and
list/selects.
I don't see anything wrong in that approach.
The only difference is we don't use an iframe. Instead we open a new child
window to populate.

Thanks

Ryan Norman

- Original Message -
From: "Emerson Cargnin - MSA" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, May 10, 2002 02:45 PM
Subject: approache to populate combo-box on the fly


> Hi all
>
> We are using the following approache to populate a combo-box depending on
> the value of a changed combo-box :
>
> We have a iframe on the page, and on the onChange event of some combo-box,
> it loads an struts LoadSelectAction (generic for all cases like this) that
> populates other combo depending of some parameters.
>
> Is it a good practice? have anyone used other way to populate a combo
> without sending the entire page to server and flicking  the page?
>
> Emerson
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




RE: xml-xslt v jsp

2002-05-13 Thread Robert J. Sanford, Jr.

munged together from multiple posts...

> 1) The development of the XSLT will be done by whom? 
> Normally you want to separate the presentation from
> the development. XSLT is a very strong tool but can
> be considered almost a programming language. So you
> either teach web designer's XSLT, or you have a
> programmer convert the HTML into XSLT. Tools are on
> the way which should help solve this issue.

i have never used XSLT in a production environment,
just played with it, so all opinions below should be
taken into that context...

isn't teaching a designer XSLT to modify a schema into
HTML easier than teaching them to not break your java
code inside of a jsp? with XSLT you just hand them the
schema that all of the data will be generated against
and they decide how the actual display will look.

i would much rather teach my designers simple
transformations than worry constantly about whether they
ate my tags containing my java code.

> 2) Performance. XSLT is interrupted, and is executed
> each time. It is my understanding that there is an
> initiative underway to create compiled XSLT (I believe
> they are called translets, but I've not kept in touch
> with that arena).
> 
> Neither of these answer the "can you" question. They 
> address the "should you today" question. I am not say
> don't do it. Just be aware.

...

> We've found that XSLT works very well when your primary 
> objective is to deliver static content (flat files, or
> cache-able catalog-like non-changing stuff) to different
> clients requiring different formats.
> 
> When the content is dynamic (read from a database in
> response to a request and bean-ified for presentation),
> then using XSLT to further transform that data degrades
> performance too much.  You're better off using straight
> Java to do the transformations at the point of
> "beanification".

where are ya'll doing the transformations - server or
client side?

my take on xml and xslt vs. jsp vs. cocoon is on the order
of...

1) xml is a text document
2) cocoon is essentially xml with java code which is
3) similar to what a jsp is (html with java code). but...
4) jsp's don't have to be inside of an html file, they can
   be inside of any text file...
5) and since xml is text...
6) you can create a jsp that is xml with java code in it...
7) that references a stylesheet...
8) that is downloaded by the client app...
9) which does the transformation so the server isn't over-
   loaded with the transformations.

am i missing something? is this an overly simplistic view
of life? or an overly complex one?

rjsjr

tgif - it's only 4pm CDT so i haven't hit the good stuff yet
but a nice, cold Big Red will tide me over until a dinner of
cabrito and negra modelo rolls around...


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




RE: xml-xslt v jsp

2002-05-13 Thread Andrew

I don't really know anything about Cocoon. The process really is to replace 
any JSP at all with XML, still using struts though, as the basic framework. I 
guess, pretty much this sort of thing would happen.
Page request -> Action servlet handles request and generates data to be 
displayed -> fowards onto XMLGenerator servlet which applies (somehow) the 
XSLT to the valueobject, then the html output is sent back to the client.
So the process is running through Struts, then diverts to a servlet to 
generate the html via xslt. 
I might go have a little read about Cocoon to see if it's similar.


Robert wrote:

> However, Cocoon does have caching capabilities and Cocoon2 uses SAX
> instead of DOM to deal with just that situation. It also has 'action'
> capabilities, analogous to Struts, but Cocoon as a whole is much more
> complex than Struts.
> 
> - Robert
> 
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 3:08 PM
> To: 'Struts Users Mailing List'
> Subject: RE: xml-xslt v jsp
> 
> I don't know much about Cocoon, but anytime you have to parse and
> transform,
> it's going to take time.  XML -> XSLT -> HTML is done a lot in the ASP
> world
> (I worked on such a project last summer) and the performance hit is very
> noticeable.  XML is best suited for business-to-business communication
> between disparate systems.
> 
> Mark
> 
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 4:07 PM
> To: Struts Users Mailing List
> Subject: RE: xml-xslt v jsp
> 
> 
> I also posted a "what do you think about cocoon" question a week or so
> ago.and still haven't gotten a response.
> 
> I'm still waiting.
> 
> JM
> 
>> -Original Message-
>> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
>> Sent: Friday, May 10, 2002 3:55 PM
>> To: [EMAIL PROTECTED]
>> Subject: xml-xslt v jsp
>>
>>
>> Subject: xml-xslt v jsp
>> From: jisv <[EMAIL PROTECTED]>
>>  ===
>> Just wondering what people's thoughts are on using XML pages that
>> have XSLT
>> applied to them to display html pages rather than using JSP's. I read
> an
>> article recently that outlined this particular idea, apparently to
> even
>> more separate the business logic from presentation, and
>> supposedly increase
>> development time. I would have a couple of questions about how
>> performance
>> would differ, just how much quicker development time would be and
> simply
>> why this hasn't been implemented already, is there a flaw which
>> has stopped
>> such an implementation being used?
>> Thanks for your thoughts.
>>
>> --
>> 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: 

-- 
Andrew


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




Re: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Michael Delamere

Hi,

Note: The message that you have got from me below was before you mentioned
the formBean idea.  I haven´t tested that one yet.

Basically below you will see a config based on an example that I downloaded
from the net.  All that I have done for testing purposes so far is to get my
data from my session bean using the "LoginAction.java".  On successful login
the Welcome.jsp is displayed which is where I put the tags that you
suggested.

bye Michael


= STRUTS CONFIG 


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


























==

- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 12:30 AM
Subject: RE: Getting a list from a session bean and displaying the data in a
jsp


> Let's see your struts-config.
>
> -Original Message-
> From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 5:43 PM
> To: Struts Users Mailing List
> Subject: Re: Getting a list from a session bean and displaying the data
> in a jsp
>
>
> Hi,
>
> thanks for the response.
>
> I´ve done exactly as you said and I get the following error message:
>
> === ERROR 
> javax.servlet.ServletException: Cannot find bean
> org.apache.struts.taglib.html.BEAN in scope null
>  at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:463)
>  at org.apache.jsp.Welcome$jsp._jspService(Welcome$jsp.java:186)
>  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:683)
>  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 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> [...]
> =
>
> Here´s the call to my session bean:
>
> == CALL TO SESSION BEAN ==
>  // Get a naming context
>  InitialContext jndiContext = new InitialContext();
>
>  // Get a reference to a EntryBean
>  Object ref  = jndiContext.lookup("ejb/guestbook/gbEntries");
>
>  // Get a reference from this to the Bean's Home interface
>  gbEntriesHome home = (gbEntriesHome)
> PortableRemoteObject.narrow (ref, gbEntriesHome.class);
>
> ArrayList entryList = new ArrayList();
>
> gbEntries entriesObj = home.create();
> Object[] entries = entriesObj.getEntriesList();
> for (int i = 0; i < entries.length; i++)
> {
>  gbEntry entry = (gbEntry) entries[i];
>   entryList.add(entry);
>
>   // I get the results printed in my output screen so this works.
>   System.out.println (entry.getEntry_subject() + "\t" +
> entry.getEntry_text() + "\t" +
>  entry.getEntry_date() + "\t" + entry.getEntry_views());
> }
>
> request.setAttribute("entryList", entryList);
> 
>
> Here´s the change in my JSP file:
> ===  JSP FILE 
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/nested-tags.tld" prefix="nested" %>
>
> id="gbEntry"
>scope="request"
>type="com.morelogs.guestbook.interfaces.gbEntry">
>   
> 
> 
> 
>   
> 
> ===
> Could you please have a look over this to see if I have missed something.
> I would really appreciate further help on this.
>
> Regards,
>
> Michael
>
>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, May 13, 2002 10:12 PM
> Subject: Re: Getting a lis

Struts 1.1b and Struts1.0.2

2002-05-13 Thread Mannem, Taati

Guys,

I think the subject of this thread shd be what is the subject of
this mail for help of others and not as was before.Hope you all agree with
me on this. Craig thanks a lot for clearing the confusion. One more thing
the thread started with the usage of javascript with struts1.0.2.Any
suggestions there?
Thanks in advance!

Regards,
Taati

> -Original Message-
> From: Craig R. McClanahan [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 6:20 PM
> To:   Struts Users Mailing List
> Subject:  RE: javascript and struts1.0.2
> 
> 
> 
> On Mon, 13 May 2002, Galbreath, Mark wrote:
> 
> > Date: Mon, 13 May 2002 17:56:56 -0400
> > From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> > Subject: RE: javascript and struts1.0.2
> >
> > Craig,
> >
> > 1.0.2 may be the "standard production release," but it was obsolete the
> > moment 1.1b-1 was released.  I wouldn't encourage anyone to build
> > applications with it.
> 
> As should be obvious to everyone, Mark is speaking for himself here.
> Don't listen to this advice ;-).
> 
> If you are adventerous, or your application isn't going to need a stable,
> production quality, Struts implementation right this second, feel free to
> build against 1.1-b1 (assuming you can talk any involved pointy-haired
> bosses to accept code with a "beta" label).
> 
> If you must have a stable, production quality, Struts imlementation right
> this second, you'd be nuts to use the new version -- stick with the tried
> and true version.
> 
> >  As far a the definition of "beta" being the feature
> > list is frozen, that simply is not true in most cases, though you may
> have
> > decided it in this case.  "Beta" software, by definition, is distributed
> to
> > a select group in order to elicit feedback not only on bugs, but on
> features
> > that should be added and/or removed.
> >
> 
> You might want to take a look at how Apache projects actually operate
> (which is pretty typical of most open source oriented projects as well).
> In particular, betas are not restricted-distribution things -- they are
> labelled "beta" to properly set expectations about quality and feature
> completeness.
> 
> Commercial software organziations may well follow different policies ...
> but "them" is not "us".  :-)
> 
> > Of course, that's just my opinion; I could be wrong.
> > (apologies to Dennis Miller)
> 
> If you care what the authors of the code (i.e. Struts committers) think,
> then you are definitely applying your own definitions to our words, not
> using them for what *we* say that they mean.
> 
> Struts 1.0.2 is the one and only current production release of Struts.
> 
> Struts 1.1-b1 is a beta release of what will be the next version.  It's
> there to encourage testing and shake out bugs, so that we can make it the
> next production release when it is ready.
> 
> Note that, even after 1.1 goes final, 1.0.2 will not be "obsolete" --
> there are thousands of applications in the world running on it.  Not
> everyone can upgrade at the drop of a hat, no matter how many cool
> features are in the new version.  And, if there happen to be enough
> serious bugs that need a fix, it's not impossible to conceive of a 1.0.3
> or 1.0.4 release to protect the investments of anyone who cannot (for
> whatever reason) move immediately to 1.1.
> 
> > Mark
> >
> 
> Craig
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

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




Struts 1.1 Beta 1 w/ Weblogic 6.1 SP2

2002-05-13 Thread Ren Bitonio

Hi All:

I've read a few postings regarding the problem below, but there were no good
answers regarding a workaround for WebLogic 6.1 SP2 (running on Solaris 8).
We're running a nightly build from Nov 2001, and we have no problems with
our stuts web apps, and we're now ready to upgrade to latest milestone
build, version 1.1 beta 1.  

Has anyone know how to resolve or work around this ClassNotFound exception?
Has any of the latest nightly builds after 1.1 beta 1 solved this problem as
well?

Thanks,
Ren

  
<[WebAppServletContext(8218668,eAgent,/eAgent)] Servlet failed with
Exception
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:665)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:643)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:588)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36
8)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

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




RE: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Galbreath, Mark

Let's see your struts-config.

-Original Message-
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 5:43 PM
To: Struts Users Mailing List
Subject: Re: Getting a list from a session bean and displaying the data
in a jsp


Hi,

thanks for the response.

I´ve done exactly as you said and I get the following error message:

=== ERROR 
javax.servlet.ServletException: Cannot find bean
org.apache.struts.taglib.html.BEAN in scope null
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:463)
 at org.apache.jsp.Welcome$jsp._jspService(Welcome$jsp.java:186)
 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:683)
 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 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[...]
=

Here´s the call to my session bean:

== CALL TO SESSION BEAN ==
 // Get a naming context
 InitialContext jndiContext = new InitialContext();

 // Get a reference to a EntryBean
 Object ref  = jndiContext.lookup("ejb/guestbook/gbEntries");

 // Get a reference from this to the Bean's Home interface
 gbEntriesHome home = (gbEntriesHome)
PortableRemoteObject.narrow (ref, gbEntriesHome.class);

ArrayList entryList = new ArrayList();

gbEntries entriesObj = home.create();
Object[] entries = entriesObj.getEntriesList();
for (int i = 0; i < entries.length; i++)
{
 gbEntry entry = (gbEntry) entries[i];
  entryList.add(entry);

  // I get the results printed in my output screen so this works.
  System.out.println (entry.getEntry_subject() + "\t" +
entry.getEntry_text() + "\t" +
 entry.getEntry_date() + "\t" + entry.getEntry_views());
}

request.setAttribute("entryList", entryList);


Here´s the change in my JSP file:
===  JSP FILE 
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/nested-tags.tld" prefix="nested" %>


  



  

===
Could you please have a look over this to see if I have missed something.
I would really appreciate further help on this.

Regards,

Michael



- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 10:12 PM
Subject: Re: Getting a list from a session bean and displaying the data in a
jsp


>
> In a non-nested context, you would do the following for a collection of
> objects associated with the request object
>
> id="entry"
>scope="request"
>type="com.xxx.xxx.xxx.Entry">
>   
> 
> 
> 
>   
> 
>
>
>
>
>
> "Michael Delamere" <[EMAIL PROTECTED]> on 05/13/2002 01:00:42 PM
>
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
> To:   "'Struts Users Mailing List' \(E-mail\)"
>   <[EMAIL PROTECTED]>
> cc:
> Subject:  Getting a list from a session bean and displaying the data in a
>   jsp
>
>
> Hi,
>
> I´ve got a session bean which returns an Object[] array of entity beans.
> In
> my action file I get the array via a jndiContext.lookup.  That´s all no
> problem and I can retreive my data out of the entity beans.
>
> However, I´m slightly stuck getting them over to my jsp file.  I´ve tried
>
> request.setAttribute("entryList", entryList);
>
> and then outputing the data with:
>
> 
>   
> 
> 
> 
>   
> 
>
> Could someone give me an insight of how this is done.
> I would be most grateful.
>
> Thanks,
>
> Michael
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>

Re: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Michael Delamere

Thanks,

I´m starting to get it now :-).

I think it´s a good approach although the fact that it´s called a formBean
is a bit confusing.

regards Michael


- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 12:20 AM
Subject: RE: Getting a list from a session bean and displaying the data in a
jsp


> Exactly.
>
> -Original Message-
> From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 6:20 PM
> To: Struts Users Mailing List
> Subject: Re: Getting a list from a session bean and displaying the data
> in a jsp
>
>
> Sorry to go on about this but I´m fairly new to struts and therefore I
don´t
> understand all of the connections immediately.
>
> Basically what you suggested means that I would map a listEntries.jsp to a
> listEntriesForm.java which would contain a function called getEntries(); ?
>
> My formBean would get filled by my *action.java using a setter method,
i.e.
> formBean.setEntries();.  Prior to this the *action.java would have got the
> data out of the session bean.
>
> Is this what you are suggesting or am I thinking entirely wrong?
>
> regards Michael
>
>
> - Original Message -
> From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 14, 2002 12:05 AM
> Subject: RE: Getting a list from a session bean and displaying the data in
a
> jsp
>
>
> > Not for every EJB, but I have a separate form bean for each JSP in which
> > data is collected or displayed.  I believe that is the practice
> recommended
> > by Craig.
> >
> > -Original Message-
> > From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 5:52 PM
> > To: Struts Users Mailing List
> > Subject: Re: Getting a list from a session bean and displaying the data
> > in a jsp
> >
> >
> > Just one question to add to the previous one:
> >
> > Does this mean that I have to create a form bean for every ejb in order
to
> > make it accessible to the jsp?
> >
> > regards Michael
> >
> >
> > - Original Message -
> > From: "Michael Delamere" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Monday, May 13, 2002 11:46 PM
> > Subject: Re: Getting a list from a session bean and displaying the data
in
> a
> > jsp
> >
> >
> > > Thanks,
> > >
> > > I will try it.
> > >
> > > regards Michael
> > >
> > >
> > > - Original Message -
> > > From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > > Sent: Monday, May 13, 2002 11:02 PM
> > > Subject: RE: Getting a list from a session bean and displaying the
data
> in
> > a
> > > jsp
> > >
> > >
> > > > Declare a form bean with session scope associated with your action
> class
> > > and
> > > > forwarded to the JSP in struts-config.  Use your action class to set
> the
> > > > bean's properties and then access the lists with  and
> > individual
> > > > properties with .
> > > >
> > > > Mark
> > > >
> > > > -Original Message-
> > > > From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, May 13, 2002 4:01 PM
> > > > To: 'Struts Users Mailing List' (E-mail)
> > > > Subject: Getting a list from a session bean and displaying the data
in
> a
> > > > jsp
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I´ve got a session bean which returns an Object[] array of entity
> beans.
> > > In
> > > > my action file I get the array via a jndiContext.lookup.  That´s all
> no
> > > > problem and I can retreive my data out of the entity beans.
> > > >
> > > > However, I´m slightly stuck getting them over to my jsp file.  I´ve
> > tried
> > > >
> > > > request.setAttribute("entryList", entryList);
> > > >
> > > > and then outputing the data with:
> > > >
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > >   
> > > > 
> > > >
> > > > Could someone give me an insight of how this is done.
> > > > I would be most grateful.
> > > >
> > > > Thanks,
> > > >
> > > > Michael
> > > >
> > > >
> > > > --
> > > > 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:
> > 
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>

Re: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Raffy_Lata


Try to specify the name attribute in the  tag like so











"Michael Delamere" <[EMAIL PROTECTED]> on 05/13/2002 02:43:16 PM

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

To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:
Subject:  Re: Getting a list from a session bean and displaying the data in
  a jsp


Hi,

thanks for the response.

I´ve done exactly as you said and I get the following error message:

=== ERROR 
javax.servlet.ServletException: Cannot find bean
org.apache.struts.taglib.html.BEAN in scope null
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp

l.java:463)
 at org.apache.jsp.Welcome$jsp._jspService(Welcome$jsp.java:186)
 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:683)
 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 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[...]
=

Here´s the call to my session bean:

== CALL TO SESSION BEAN ==
 // Get a naming context
 InitialContext jndiContext = new InitialContext();

 // Get a reference to a EntryBean
 Object ref  = jndiContext.lookup("ejb/guestbook/gbEntries");

 // Get a reference from this to the Bean's Home interface
 gbEntriesHome home = (gbEntriesHome)
PortableRemoteObject.narrow (ref, gbEntriesHome.class);

ArrayList entryList = new ArrayList();

gbEntries entriesObj = home.create();
Object[] entries = entriesObj.getEntriesList();
for (int i = 0; i < entries.length; i++)
{
 gbEntry entry = (gbEntry) entries[i];
  entryList.add(entry);

  // I get the results printed in my output screen so this works.
  System.out.println (entry.getEntry_subject() + "\t" +
entry.getEntry_text() + "\t" +
 entry.getEntry_date() + "\t" + entry.getEntry_views());
}

request.setAttribute("entryList", entryList);


Here´s the change in my JSP file:
===  JSP FILE 
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/nested-tags.tld" prefix="nested" %>


  



  

===
Could you please have a look over this to see if I have missed something.
I would really appreciate further help on this.

Regards,

Michael



- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 10:12 PM
Subject: Re: Getting a list from a session bean and displaying the data in
a
jsp


>
> In a non-nested context, you would do the following for a collection of
> objects associated with the request object
>
> id="entry"
>scope="request"
>type="com.xxx.xxx.xxx.Entry">
>   
> 
> 
> 
>   
> 
>
>
>
>
>
> "Michael Delamere" <[EMAIL PROTECTED]> on 05/13/2002 01:00:42 PM
>
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
> To:   "'Struts Users Mailing List' \(E-mail\)"
>   <[EMAIL PROTECTED]>
> cc:
> Subject:  Getting a list from a session bean and displaying the data in a
>   jsp
>
>
> Hi,
>
> I´ve got a session bean which returns an Object[] array of entity beans.
> In
> my action file I get the array via a jndiContext.lookup.  That´s all no
> problem and I can retreive my data out of the entity beans.
>
> However, I´m slightly stuck getting them over to my jsp file.  I´ve tried
>
> request.setAttribute("entryList", entryList);
>
> and then outputing the data with:
>
> 
>   
> 
> 
> 
>   
> 
>
> Could someone give me an insight of how this is done.
> I would be most grateful.
>
> Thanks,
>
> Michael
>
>
> --
> To unsubscri

RE: javascript and struts1.0.2

2002-05-13 Thread Galbreath, Mark

Yeah, I thought you were going to hammer me on this.  :-)

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 6:20 PM
To: Struts Users Mailing List
Subject: RE: javascript and struts1.0.2




On Mon, 13 May 2002, Galbreath, Mark wrote:

> Date: Mon, 13 May 2002 17:56:56 -0400
> From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: javascript and struts1.0.2
>
> Craig,
>
> 1.0.2 may be the "standard production release," but it was obsolete the
> moment 1.1b-1 was released.  I wouldn't encourage anyone to build
> applications with it.

As should be obvious to everyone, Mark is speaking for himself here.
Don't listen to this advice ;-).

If you are adventerous, or your application isn't going to need a stable,
production quality, Struts implementation right this second, feel free to
build against 1.1-b1 (assuming you can talk any involved pointy-haired
bosses to accept code with a "beta" label).

If you must have a stable, production quality, Struts imlementation right
this second, you'd be nuts to use the new version -- stick with the tried
and true version.

>  As far a the definition of "beta" being the feature
> list is frozen, that simply is not true in most cases, though you may have
> decided it in this case.  "Beta" software, by definition, is distributed
to
> a select group in order to elicit feedback not only on bugs, but on
features
> that should be added and/or removed.
>

You might want to take a look at how Apache projects actually operate
(which is pretty typical of most open source oriented projects as well).
In particular, betas are not restricted-distribution things -- they are
labelled "beta" to properly set expectations about quality and feature
completeness.

Commercial software organziations may well follow different policies ...
but "them" is not "us".  :-)

> Of course, that's just my opinion; I could be wrong.
> (apologies to Dennis Miller)

If you care what the authors of the code (i.e. Struts committers) think,
then you are definitely applying your own definitions to our words, not
using them for what *we* say that they mean.

Struts 1.0.2 is the one and only current production release of Struts.

Struts 1.1-b1 is a beta release of what will be the next version.  It's
there to encourage testing and shake out bugs, so that we can make it the
next production release when it is ready.

Note that, even after 1.1 goes final, 1.0.2 will not be "obsolete" --
there are thousands of applications in the world running on it.  Not
everyone can upgrade at the drop of a hat, no matter how many cool
features are in the new version.  And, if there happen to be enough
serious bugs that need a fix, it's not impossible to conceive of a 1.0.3
or 1.0.4 release to protect the investments of anyone who cannot (for
whatever reason) move immediately to 1.1.

> Mark
>

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Galbreath, Mark

Exactly.

-Original Message-
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 6:20 PM
To: Struts Users Mailing List
Subject: Re: Getting a list from a session bean and displaying the data
in a jsp


Sorry to go on about this but I´m fairly new to struts and therefore I don´t
understand all of the connections immediately.

Basically what you suggested means that I would map a listEntries.jsp to a
listEntriesForm.java which would contain a function called getEntries(); ?

My formBean would get filled by my *action.java using a setter method, i.e.
formBean.setEntries();.  Prior to this the *action.java would have got the
data out of the session bean.

Is this what you are suggesting or am I thinking entirely wrong?

regards Michael


- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 12:05 AM
Subject: RE: Getting a list from a session bean and displaying the data in a
jsp


> Not for every EJB, but I have a separate form bean for each JSP in which
> data is collected or displayed.  I believe that is the practice
recommended
> by Craig.
>
> -Original Message-
> From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 5:52 PM
> To: Struts Users Mailing List
> Subject: Re: Getting a list from a session bean and displaying the data
> in a jsp
>
>
> Just one question to add to the previous one:
>
> Does this mean that I have to create a form bean for every ejb in order to
> make it accessible to the jsp?
>
> regards Michael
>
>
> - Original Message -
> From: "Michael Delamere" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, May 13, 2002 11:46 PM
> Subject: Re: Getting a list from a session bean and displaying the data in
a
> jsp
>
>
> > Thanks,
> >
> > I will try it.
> >
> > regards Michael
> >
> >
> > - Original Message -
> > From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Monday, May 13, 2002 11:02 PM
> > Subject: RE: Getting a list from a session bean and displaying the data
in
> a
> > jsp
> >
> >
> > > Declare a form bean with session scope associated with your action
class
> > and
> > > forwarded to the JSP in struts-config.  Use your action class to set
the
> > > bean's properties and then access the lists with  and
> individual
> > > properties with .
> > >
> > > Mark
> > >
> > > -Original Message-
> > > From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, May 13, 2002 4:01 PM
> > > To: 'Struts Users Mailing List' (E-mail)
> > > Subject: Getting a list from a session bean and displaying the data in
a
> > > jsp
> > >
> > >
> > > Hi,
> > >
> > > I´ve got a session bean which returns an Object[] array of entity
beans.
> > In
> > > my action file I get the array via a jndiContext.lookup.  That´s all
no
> > > problem and I can retreive my data out of the entity beans.
> > >
> > > However, I´m slightly stuck getting them over to my jsp file.  I´ve
> tried
> > >
> > > request.setAttribute("entryList", entryList);
> > >
> > > and then outputing the data with:
> > >
> > > 
> > >   
> > > 
> > > 
> > > 
> > >   
> > > 
> > >
> > > Could someone give me an insight of how this is done.
> > > I would be most grateful.
> > >
> > > Thanks,
> > >
> > > Michael
> > >
> > >
> > > --
> > > 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:
> 
>
>
> --
> 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: javascript and struts1.0.2

2002-05-13 Thread Craig R. McClanahan



On Mon, 13 May 2002, Galbreath, Mark wrote:

> Date: Mon, 13 May 2002 17:56:56 -0400
> From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: javascript and struts1.0.2
>
> Craig,
>
> 1.0.2 may be the "standard production release," but it was obsolete the
> moment 1.1b-1 was released.  I wouldn't encourage anyone to build
> applications with it.

As should be obvious to everyone, Mark is speaking for himself here.
Don't listen to this advice ;-).

If you are adventerous, or your application isn't going to need a stable,
production quality, Struts implementation right this second, feel free to
build against 1.1-b1 (assuming you can talk any involved pointy-haired
bosses to accept code with a "beta" label).

If you must have a stable, production quality, Struts imlementation right
this second, you'd be nuts to use the new version -- stick with the tried
and true version.

>  As far a the definition of "beta" being the feature
> list is frozen, that simply is not true in most cases, though you may have
> decided it in this case.  "Beta" software, by definition, is distributed to
> a select group in order to elicit feedback not only on bugs, but on features
> that should be added and/or removed.
>

You might want to take a look at how Apache projects actually operate
(which is pretty typical of most open source oriented projects as well).
In particular, betas are not restricted-distribution things -- they are
labelled "beta" to properly set expectations about quality and feature
completeness.

Commercial software organziations may well follow different policies ...
but "them" is not "us".  :-)

> Of course, that's just my opinion; I could be wrong.
> (apologies to Dennis Miller)

If you care what the authors of the code (i.e. Struts committers) think,
then you are definitely applying your own definitions to our words, not
using them for what *we* say that they mean.

Struts 1.0.2 is the one and only current production release of Struts.

Struts 1.1-b1 is a beta release of what will be the next version.  It's
there to encourage testing and shake out bugs, so that we can make it the
next production release when it is ready.

Note that, even after 1.1 goes final, 1.0.2 will not be "obsolete" --
there are thousands of applications in the world running on it.  Not
everyone can upgrade at the drop of a hat, no matter how many cool
features are in the new version.  And, if there happen to be enough
serious bugs that need a fix, it's not impossible to conceive of a 1.0.3
or 1.0.4 release to protect the investments of anyone who cannot (for
whatever reason) move immediately to 1.1.

> Mark
>

Craig


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




Re: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Michael Delamere

Sorry to go on about this but I´m fairly new to struts and therefore I don´t
understand all of the connections immediately.

Basically what you suggested means that I would map a listEntries.jsp to a
listEntriesForm.java which would contain a function called getEntries(); ?

My formBean would get filled by my *action.java using a setter method, i.e.
formBean.setEntries();.  Prior to this the *action.java would have got the
data out of the session bean.

Is this what you are suggesting or am I thinking entirely wrong?

regards Michael


- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 12:05 AM
Subject: RE: Getting a list from a session bean and displaying the data in a
jsp


> Not for every EJB, but I have a separate form bean for each JSP in which
> data is collected or displayed.  I believe that is the practice
recommended
> by Craig.
>
> -Original Message-
> From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 5:52 PM
> To: Struts Users Mailing List
> Subject: Re: Getting a list from a session bean and displaying the data
> in a jsp
>
>
> Just one question to add to the previous one:
>
> Does this mean that I have to create a form bean for every ejb in order to
> make it accessible to the jsp?
>
> regards Michael
>
>
> - Original Message -
> From: "Michael Delamere" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, May 13, 2002 11:46 PM
> Subject: Re: Getting a list from a session bean and displaying the data in
a
> jsp
>
>
> > Thanks,
> >
> > I will try it.
> >
> > regards Michael
> >
> >
> > - Original Message -
> > From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Monday, May 13, 2002 11:02 PM
> > Subject: RE: Getting a list from a session bean and displaying the data
in
> a
> > jsp
> >
> >
> > > Declare a form bean with session scope associated with your action
class
> > and
> > > forwarded to the JSP in struts-config.  Use your action class to set
the
> > > bean's properties and then access the lists with  and
> individual
> > > properties with .
> > >
> > > Mark
> > >
> > > -Original Message-
> > > From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, May 13, 2002 4:01 PM
> > > To: 'Struts Users Mailing List' (E-mail)
> > > Subject: Getting a list from a session bean and displaying the data in
a
> > > jsp
> > >
> > >
> > > Hi,
> > >
> > > I´ve got a session bean which returns an Object[] array of entity
beans.
> > In
> > > my action file I get the array via a jndiContext.lookup.  That´s all
no
> > > problem and I can retreive my data out of the entity beans.
> > >
> > > However, I´m slightly stuck getting them over to my jsp file.  I´ve
> tried
> > >
> > > request.setAttribute("entryList", entryList);
> > >
> > > and then outputing the data with:
> > >
> > > 
> > >   
> > > 
> > > 
> > > 
> > >   
> > > 
> > >
> > > Could someone give me an insight of how this is done.
> > > I would be most grateful.
> > >
> > > Thanks,
> > >
> > > Michael
> > >
> > >
> > > --
> > > 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:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Problem with struts 1.1 and iWS 6.0

2002-05-13 Thread Juan Alvarado \(Struts List\)

Has anyone experienced running struts 1.1B in iPlanet Web Server 6.0. I keep
on getting the following error when going to index.jsp on the example
application that ships with struts:

[13/May/2002:18:02:10] failure (  924): Internal error: Unexpected error
condition thrown (unknown exception,no description), stack:
java.lang.ExceptionInInitializerError:
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.util.MessageResources.(MessageResources.java:105)
at
org.apache.struts.util.PropertyMessageResources.(PropertyMessageResour
ces.java:123)
at
org.apache.struts.util.PropertyMessageResourcesFactory.createResources(Prope
rtyMessageResourcesFactory.java:90)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:558)
at org.apache.struts.taglib.html.HtmlTag.(HtmlTag.java:94)
at _jsps._index_jsp._jspService(_index_jsp.java:71)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:247)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.j
ava:237)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:520)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServl
etRunner.java:897)
at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1
065)
at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunne
r.java:959)

Everything that should be in WEB-INF/lib is there; including
commons-logging.jar

Any suggestions would be appreciated.

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


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




RE: javascript and struts1.0.2

2002-05-13 Thread Galbreath, Mark

LOL!

-Original Message-
From: Joseph Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 5:45 PM
To: Struts Users Mailing List
Subject: RE: javascript and struts1.0.2


I usually interpret 'beta' to mean the developers want to hear your
complaints, and 'alpha' to mean that you should just keep your gripes to
yourself until/unless the beta is released.   :)


> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 2:39 PM
> To: 'Struts Users Mailing List'
> Subject: RE: javascript and struts1.0.2
>
>
> It's a matter of symantecs.  An "alpha" release is differentiated from a
> "beta" release only by the scope of distribution and, sometimes, the level
> of support.  This is very basic stuff.
>
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:51 PM
>
> Juan,
>
> I do not think so.Struts 1.0.2 is in alpha version and struts 1.1b is in
> beta version.Atleats thats what the docs tell me
>
> Regards,
> Taati
> > -Original Message-
> > From:   Juan Alvarado \(Struts List\)
> [SMTP:[EMAIL PROTECTED]]
> > Sent:   Monday, May 13, 2002 3:43 PM
> > To: Struts Users Mailing List
> > Subject:RE: javascript and struts1.0.2
> >
> > Mark forgive me, but did you say struts 1.02 is also in
> beta Does that
> > mean that struts 1.1 is in alpha version then???
> >
> > **
> > Juan Alvarado
> > Internet Developer -- Manduca Management
> > (786)552-0504
> > [EMAIL PROTECTED]
> > AOL Instant Messenger: [EMAIL PROTECTED]
> >
> > -Original Message-
> > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 3:39 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: javascript and struts1.0.2
> >
> >
> > 1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to
> > upgrade
> > from 1.0.2 it's better to do it now than wait.  Further, we have found
> > 1.1b
> > to be remarkably stable.
> >
> > Mark
> >
> > -Original Message-
> > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 3:21 PM
> >
> > Thanks a lot
> > But common validator is a part of struts1.1b right?It is
> stillin the beta
> > version.How can I use that when it is nto stable yet?
> >
> > Regards,
> > Taati
> >
> > --
> > 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:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Galbreath, Mark

Not for every EJB, but I have a separate form bean for each JSP in which
data is collected or displayed.  I believe that is the practice recommended
by Craig.

-Original Message-
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 5:52 PM
To: Struts Users Mailing List
Subject: Re: Getting a list from a session bean and displaying the data
in a jsp


Just one question to add to the previous one:

Does this mean that I have to create a form bean for every ejb in order to
make it accessible to the jsp?

regards Michael


- Original Message -
From: "Michael Delamere" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 11:46 PM
Subject: Re: Getting a list from a session bean and displaying the data in a
jsp


> Thanks,
>
> I will try it.
>
> regards Michael
>
>
> - Original Message -
> From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Monday, May 13, 2002 11:02 PM
> Subject: RE: Getting a list from a session bean and displaying the data in
a
> jsp
>
>
> > Declare a form bean with session scope associated with your action class
> and
> > forwarded to the JSP in struts-config.  Use your action class to set the
> > bean's properties and then access the lists with  and
individual
> > properties with .
> >
> > Mark
> >
> > -Original Message-
> > From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 4:01 PM
> > To: 'Struts Users Mailing List' (E-mail)
> > Subject: Getting a list from a session bean and displaying the data in a
> > jsp
> >
> >
> > Hi,
> >
> > I´ve got a session bean which returns an Object[] array of entity beans.
> In
> > my action file I get the array via a jndiContext.lookup.  That´s all no
> > problem and I can retreive my data out of the entity beans.
> >
> > However, I´m slightly stuck getting them over to my jsp file.  I´ve
tried
> >
> > request.setAttribute("entryList", entryList);
> >
> > and then outputing the data with:
> >
> > 
> >   
> > 
> > 
> > 
> >   
> > 
> >
> > Could someone give me an insight of how this is done.
> > I would be most grateful.
> >
> > Thanks,
> >
> > Michael
> >
> >
> > --
> > 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:



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




RE: javascript and struts1.0.2

2002-05-13 Thread Joseph Barefoot

Well, if it works, I wouldn't worry about it too much--I'm not much of a
worrier by design, you see. ;)

The only difference between what I was suggesting and the way you're doing
it (I think) is where the actual Javascript resides.  I believe you are
putting it into the resource bundle for each error message you want to
output, and then creating an ActionError with the message ( already
containing the Javascript).

My suggestion was to put only the error message in the resource bundle, and
leave the Javascript in the JSP.  If your validation encounters errors,
create your ActionErrors object as you've been doing, but put the
ActionErrors object into the request with a key name (e.g. actionErrorsKey)
so you check for its existence.

Then in your JSP, you can do something like this:


onload(
window.alert();
)



This way you could potentially re-use the error messages later since they no
longer contain any JavaScript.  If your implementation is satisfactory,
however, by all means stick with it.


peace,

Joe Barefoot


> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 2:30 PM
> To: Struts Users Mailing List
> Subject: RE: javascript and struts1.0.2
>
>
> Joseph,
>   I am talking to Juan also and I think he is also suggesting the same
> way.The first problem I faced was I was using struts 1.0.2 and I
> didnt know
> how to do javascript handling part.So I used  that way to incorporate
> javascript alerts into my page and they sure seem to work fine.DO you have
> anyspecific example of which will give me the functionality you
> were talking
> abt .
> Thanks in advance.
>
> Regards,
> Taati
> > -Original Message-
> > From:   Joseph Barefoot [SMTP:[EMAIL PROTECTED]]
> > Sent:   Monday, May 13, 2002 4:52 PM
> > To: Struts Users Mailing List
> > Subject:RE: javascript and struts1.0.2
> >
> > If it works, I'd say it's 'correct' enough. :)
> >
> > I'm not sure how you're doing this, but why not just write a
> custom tag or
> > do a  to check for an ActionErrors object to see if there
> > are
> > errors.  If the tag evaluates to true, output your Javascript onload()
> > function, using  tags to get the actual error message
> > text(s)
> > and insert them into the window.alert().  This way you only store the
> > error
> > message itself in the resource file, while the Javascript stays in your
> > JSP
> > page.  I've used Struts tags to modify the output of Javascript
> similarly,
> > and it works fine.
> >
> > Is this how you're currently doing it, and if not, is there a
> problem with
> > doing it this way?
> >
> >
> > peace,
> > Joe Barefoot
> >
> >
> > > -Original Message-
> > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, May 13, 2002 12:13 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: javascript and struts1.0.2
> > >
> > >
> > > Struts guys,
> > >   A help and review required urgently.I am using struts1.0.2 and I
> > > have to show the errors(validations ,ActionErrors) in the form of
> > > javascript
> > > alerts. I found  that struts 1.0.2 does not support javascript. I
> > handled
> > > this by writing the alerts in the applicationresources.properties and
> > that
> > > way I was within the framework and did not have to do much of
> extensive
> > > coding. Is this approach correct or is there some other better way?
> > > TIA
> > > Regards,
> > > Taati
> > >
> > >
> > > --
> > > 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: javascript and struts1.0.2

2002-05-13 Thread Galbreath, Mark

Craig,

1.0.2 may be the "standard production release," but it was obsolete the
moment 1.1b-1 was released.  I wouldn't encourage anyone to build
applications with it.  As far a the definition of "beta" being the feature
list is frozen, that simply is not true in most cases, though you may have
decided it in this case.  "Beta" software, by definition, is distributed to
a select group in order to elicit feedback not only on bugs, but on features
that should be added and/or removed.

Of course, that's just my opinion; I could be wrong.
(apologies to Dennis Miller)
Mark

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 5:47 PM
To: Struts Users Mailing List
Subject: RE: javascript and struts1.0.2




On Mon, 13 May 2002, Galbreath, Mark wrote:

> Date: Mon, 13 May 2002 17:09:38 -0400
> From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: javascript and struts1.0.2
>
> 1.0.2 was the beta precursor of 1.1b.  Both are beta, just different
> versions.  An alpha version is a precursor to a beta version and is
usually
> defined by the scope of the release (who gets to use it).
>

Struts/1.0.2 is indeed a "final" release -- it has bug fixes over what was
shipped in 1.0 and 1.0.1.  It's perfectly reasonable to create a beta
release of an "x.y.z" version number, but that was not done in this case.
This is the standard production release of Struts at the moment.

Struts/1.1-b1 is indeed a "beta" release -- no more features will be added
(which is one of the things that can still happen with "alpha" releases)
above what is already documented.  The code base for 1.1 branched off from
the code base for 1.0.x last January, and it is *substantially* different
internally (especially in the controller portion, less so in the tag
libraries), so the set of bugs it suffers is likely to be different from
1.0.x as well.

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Michael Delamere

Just one question to add to the previous one:

Does this mean that I have to create a form bean for every ejb in order to
make it accessible to the jsp?

regards Michael


- Original Message -
From: "Michael Delamere" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 11:46 PM
Subject: Re: Getting a list from a session bean and displaying the data in a
jsp


> Thanks,
>
> I will try it.
>
> regards Michael
>
>
> - Original Message -
> From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Monday, May 13, 2002 11:02 PM
> Subject: RE: Getting a list from a session bean and displaying the data in
a
> jsp
>
>
> > Declare a form bean with session scope associated with your action class
> and
> > forwarded to the JSP in struts-config.  Use your action class to set the
> > bean's properties and then access the lists with  and
individual
> > properties with .
> >
> > Mark
> >
> > -Original Message-
> > From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 4:01 PM
> > To: 'Struts Users Mailing List' (E-mail)
> > Subject: Getting a list from a session bean and displaying the data in a
> > jsp
> >
> >
> > Hi,
> >
> > I´ve got a session bean which returns an Object[] array of entity beans.
> In
> > my action file I get the array via a jndiContext.lookup.  That´s all no
> > problem and I can retreive my data out of the entity beans.
> >
> > However, I´m slightly stuck getting them over to my jsp file.  I´ve
tried
> >
> > request.setAttribute("entryList", entryList);
> >
> > and then outputing the data with:
> >
> > 
> >   
> > 
> > 
> > 
> >   
> > 
> >
> > Could someone give me an insight of how this is done.
> > I would be most grateful.
> >
> > Thanks,
> >
> > Michael
> >
> >
> > --
> > 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: javascript and struts1.0.2

2002-05-13 Thread Craig R. McClanahan



On Mon, 13 May 2002, Galbreath, Mark wrote:

> Date: Mon, 13 May 2002 17:09:38 -0400
> From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: javascript and struts1.0.2
>
> 1.0.2 was the beta precursor of 1.1b.  Both are beta, just different
> versions.  An alpha version is a precursor to a beta version and is usually
> defined by the scope of the release (who gets to use it).
>

Struts/1.0.2 is indeed a "final" release -- it has bug fixes over what was
shipped in 1.0 and 1.0.1.  It's perfectly reasonable to create a beta
release of an "x.y.z" version number, but that was not done in this case.
This is the standard production release of Struts at the moment.

Struts/1.1-b1 is indeed a "beta" release -- no more features will be added
(which is one of the things that can still happen with "alpha" releases)
above what is already documented.  The code base for 1.1 branched off from
the code base for 1.0.x last January, and it is *substantially* different
internally (especially in the controller portion, less so in the tag
libraries), so the set of bugs it suffers is likely to be different from
1.0.x as well.

Craig


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




Re: Multiple sites using one struts application.

2002-05-13 Thread Kevin . Bedell





I believe this is a build/deploy question as much as a Struts question. But
here goes:

1. Drive virtually everything from your application.properties file. All
these properties are available to your Action classes. For example, define
the path to your images directory there, the club name, the jdbc url, etc.)

2. Create each site as it's own web app - but keep everything in a SINGLE
SOURCE CONTROL REPOSITORY version. You will create specific sites ONLY AT
BUILD TIME. Again - only one version exists in source control. Call this
The Template.

 This is critical. No site-specific code or properties get checked in
with The Template. Everything is driven from the application.properties
file.

3. Define the values in this application.properties file using "tokens",
not actual values. For example:

 in The Template application.properties for Struts:

 club.name=CLUB_NAME
 path.to.images=IMAGE_PATH
 site.jdbc.url=JDBC_URL

 - etc. -

4. Then, for each actual site, create a seperate "properties" file
containing the specific values for that site. For example:

 in "club1.properties"

 club.name=Fred's Club
 path.to.images=/fredimages/images
 site.jdbc.url="jdbc:oracle:thin:@123.45.67.89:1521:orcl"

 - etc. -

5. At build time, use Ant's "" target to replace the "tokens" in
the struts application.properties file with the site-specific values from
the site-specific properties files. That is:


  



  


 See details on the Ant  tag at: 
http://jakarta.apache.org/ant/manual/CoreTasks/replace.html

6. Create a different ant target to build each site. And maybe a "build-all" to build 
all the sites.

 There's a bit of work here getting things organized. But this will allow you to 
generate sites from The Template as a build/configuration process
 - not as a development issue.

Summary:

1.   Drive EVERYTHING site specific from the application.properties file
2.   Use tokens in the application.properties file instead of actual values
3.   Create the actual sites at build/deploy time using Ant and the  target.

This will work!


FWIW -
Kevin





Mike Karl <[EMAIL PROTECTED]> on 05/13/2002 04:51:36 PM

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

To:   [EMAIL PROTECTED]
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Multiple sites using one struts application.


Hello,
I'm building a site for a group of clubs.  All the sites will have the
same set of pages and actions.

For instance:

http://clubsites/club1/index.jsp
http://clubsites/club2/index.jsp
http://clubsites/club3/index.jsp
http://anothersite/club4/index.jsp

All of these sites would basically be the same in terms of layout and
functionality except that the would have different images.  They may
also connect to seperate database. How can I set up a site like this so
that I can use the same pages for all of the clubs but pass different
configurations so that I can render the pages with their own images.

thanks
mike



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







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---


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




Re: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Michael Delamere

Thanks,

I will try it.

regards Michael


- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 11:02 PM
Subject: RE: Getting a list from a session bean and displaying the data in a
jsp


> Declare a form bean with session scope associated with your action class
and
> forwarded to the JSP in struts-config.  Use your action class to set the
> bean's properties and then access the lists with  and individual
> properties with .
>
> Mark
>
> -Original Message-
> From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 4:01 PM
> To: 'Struts Users Mailing List' (E-mail)
> Subject: Getting a list from a session bean and displaying the data in a
> jsp
>
>
> Hi,
>
> I´ve got a session bean which returns an Object[] array of entity beans.
In
> my action file I get the array via a jndiContext.lookup.  That´s all no
> problem and I can retreive my data out of the entity beans.
>
> However, I´m slightly stuck getting them over to my jsp file.  I´ve tried
>
> request.setAttribute("entryList", entryList);
>
> and then outputing the data with:
>
> 
>   
> 
> 
> 
>   
> 
>
> Could someone give me an insight of how this is done.
> I would be most grateful.
>
> Thanks,
>
> Michael
>
>
> --
> 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: javascript and struts1.0.2

2002-05-13 Thread Mannem, Taati

Mark and Juan,
I sure am moving to 1.1 after this discussion.

Regards,
Taati
> -Original Message-
> From: Galbreath, Mark [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 5:41 PM
> To:   'Struts Users Mailing List'
> Subject:  RE: javascript and struts1.0.2
> 
> Be glad to, though his problem appears to be tied to 1.0.2.  My advice was
> to upgrade to 1.1b because he's going to have to eventually, anyway.  Why
> learn a work-around when the latest release will solve his problem?  That
> would be regressive and not worth his time.
> 
> -Original Message-
> From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 5:32 PM
> 
> Mark G. you wanna give this guy a hand?
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

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




RE: javascript and struts1.0.2

2002-05-13 Thread Joseph Barefoot

I usually interpret 'beta' to mean the developers want to hear your
complaints, and 'alpha' to mean that you should just keep your gripes to
yourself until/unless the beta is released.   :)


> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 2:39 PM
> To: 'Struts Users Mailing List'
> Subject: RE: javascript and struts1.0.2
>
>
> It's a matter of symantecs.  An "alpha" release is differentiated from a
> "beta" release only by the scope of distribution and, sometimes, the level
> of support.  This is very basic stuff.
>
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:51 PM
>
> Juan,
>
> I do not think so.Struts 1.0.2 is in alpha version and struts 1.1b is in
> beta version.Atleats thats what the docs tell me
>
> Regards,
> Taati
> > -Original Message-
> > From:   Juan Alvarado \(Struts List\)
> [SMTP:[EMAIL PROTECTED]]
> > Sent:   Monday, May 13, 2002 3:43 PM
> > To: Struts Users Mailing List
> > Subject:RE: javascript and struts1.0.2
> >
> > Mark forgive me, but did you say struts 1.02 is also in
> beta Does that
> > mean that struts 1.1 is in alpha version then???
> >
> > **
> > Juan Alvarado
> > Internet Developer -- Manduca Management
> > (786)552-0504
> > [EMAIL PROTECTED]
> > AOL Instant Messenger: [EMAIL PROTECTED]
> >
> > -Original Message-
> > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 3:39 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: javascript and struts1.0.2
> >
> >
> > 1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to
> > upgrade
> > from 1.0.2 it's better to do it now than wait.  Further, we have found
> > 1.1b
> > to be remarkably stable.
> >
> > Mark
> >
> > -Original Message-
> > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 3:21 PM
> >
> > Thanks a lot
> > But common validator is a part of struts1.1b right?It is
> stillin the beta
> > version.How can I use that when it is nto stable yet?
> >
> > Regards,
> > Taati
> >
> > --
> > 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:



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




RE: javascript and struts1.0.2

2002-05-13 Thread Galbreath, Mark

Be glad to, though his problem appears to be tied to 1.0.2.  My advice was
to upgrade to 1.1b because he's going to have to eventually, anyway.  Why
learn a work-around when the latest release will solve his problem?  That
would be regressive and not worth his time.

-Original Message-
From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 5:32 PM

Mark G. you wanna give this guy a hand?

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




Re: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Michael Delamere

Hi,

thanks for the response.

I´ve done exactly as you said and I get the following error message:

=== ERROR 
javax.servlet.ServletException: Cannot find bean
org.apache.struts.taglib.html.BEAN in scope null
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:463)
 at org.apache.jsp.Welcome$jsp._jspService(Welcome$jsp.java:186)
 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:683)
 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 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[...]
=

Here´s the call to my session bean:

== CALL TO SESSION BEAN ==
 // Get a naming context
 InitialContext jndiContext = new InitialContext();

 // Get a reference to a EntryBean
 Object ref  = jndiContext.lookup("ejb/guestbook/gbEntries");

 // Get a reference from this to the Bean's Home interface
 gbEntriesHome home = (gbEntriesHome)
PortableRemoteObject.narrow (ref, gbEntriesHome.class);

ArrayList entryList = new ArrayList();

gbEntries entriesObj = home.create();
Object[] entries = entriesObj.getEntriesList();
for (int i = 0; i < entries.length; i++)
{
 gbEntry entry = (gbEntry) entries[i];
  entryList.add(entry);

  // I get the results printed in my output screen so this works.
  System.out.println (entry.getEntry_subject() + "\t" +
entry.getEntry_text() + "\t" +
 entry.getEntry_date() + "\t" + entry.getEntry_views());
}

request.setAttribute("entryList", entryList);


Here´s the change in my JSP file:
===  JSP FILE 
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/nested-tags.tld" prefix="nested" %>


  



  

===
Could you please have a look over this to see if I have missed something.
I would really appreciate further help on this.

Regards,

Michael



- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 10:12 PM
Subject: Re: Getting a list from a session bean and displaying the data in a
jsp


>
> In a non-nested context, you would do the following for a collection of
> objects associated with the request object
>
> id="entry"
>scope="request"
>type="com.xxx.xxx.xxx.Entry">
>   
> 
> 
> 
>   
> 
>
>
>
>
>
> "Michael Delamere" <[EMAIL PROTECTED]> on 05/13/2002 01:00:42 PM
>
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
> To:   "'Struts Users Mailing List' \(E-mail\)"
>   <[EMAIL PROTECTED]>
> cc:
> Subject:  Getting a list from a session bean and displaying the data in a
>   jsp
>
>
> Hi,
>
> I´ve got a session bean which returns an Object[] array of entity beans.
> In
> my action file I get the array via a jndiContext.lookup.  That´s all no
> problem and I can retreive my data out of the entity beans.
>
> However, I´m slightly stuck getting them over to my jsp file.  I´ve tried
>
> request.setAttribute("entryList", entryList);
>
> and then outputing the data with:
>
> 
>   
> 
> 
> 
>   
> 
>
> Could someone give me an insight of how this is done.
> I would be most grateful.
>
> Thanks,
>
> Michael
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
> **
> Please Note:
> The information in this E-mail message, and any files transmitted
> with it, is confidential and may be legally privileged.  It is
> intended only for the use o

RE: javascript and struts1.0.2

2002-05-13 Thread Mannem, Taati

Thanks a lot!

Regards,
Taati
> -Original Message-
> From: Galbreath, Mark [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 5:39 PM
> To:   'Struts Users Mailing List'
> Subject:  RE: javascript and struts1.0.2
> 
> It's a matter of symantecs.  An "alpha" release is differentiated from a
> "beta" release only by the scope of distribution and, sometimes, the level
> of support.  This is very basic stuff.
> 
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:51 PM
> 
> Juan,
> 
> I do not think so.Struts 1.0.2 is in alpha version and struts 1.1b is in
> beta version.Atleats thats what the docs tell me
> 
> Regards,
> Taati
> > -Original Message-
> > From:   Juan Alvarado \(Struts List\)
> [SMTP:[EMAIL PROTECTED]]
> > Sent:   Monday, May 13, 2002 3:43 PM
> > To: Struts Users Mailing List
> > Subject:RE: javascript and struts1.0.2
> > 
> > Mark forgive me, but did you say struts 1.02 is also in beta Does
> that
> > mean that struts 1.1 is in alpha version then???
> > 
> > **
> > Juan Alvarado
> > Internet Developer -- Manduca Management
> > (786)552-0504
> > [EMAIL PROTECTED]
> > AOL Instant Messenger: [EMAIL PROTECTED]
> > 
> > -Original Message-
> > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 3:39 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: javascript and struts1.0.2
> > 
> > 
> > 1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to
> > upgrade
> > from 1.0.2 it's better to do it now than wait.  Further, we have found
> > 1.1b
> > to be remarkably stable.
> > 
> > Mark
> > 
> > -Original Message-
> > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 3:21 PM
> > 
> > Thanks a lot
> > But common validator is a part of struts1.1b right?It is stillin the
> beta
> > version.How can I use that when it is nto stable yet?
> > 
> > Regards,
> > Taati
> > 
> > --
> > 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:
> 

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




RE: javascript and struts1.0.2

2002-05-13 Thread Galbreath, Mark

It's a matter of symantecs.  An "alpha" release is differentiated from a
"beta" release only by the scope of distribution and, sometimes, the level
of support.  This is very basic stuff.

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:51 PM

Juan,

I do not think so.Struts 1.0.2 is in alpha version and struts 1.1b is in
beta version.Atleats thats what the docs tell me

Regards,
Taati
> -Original Message-
> From: Juan Alvarado \(Struts List\) [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:43 PM
> To:   Struts Users Mailing List
> Subject:  RE: javascript and struts1.0.2
> 
> Mark forgive me, but did you say struts 1.02 is also in beta Does that
> mean that struts 1.1 is in alpha version then???
> 
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
> 
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:39 PM
> To: 'Struts Users Mailing List'
> Subject: RE: javascript and struts1.0.2
> 
> 
> 1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to
> upgrade
> from 1.0.2 it's better to do it now than wait.  Further, we have found
> 1.1b
> to be remarkably stable.
> 
> Mark
> 
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:21 PM
> 
> Thanks a lot
> But common validator is a part of struts1.1b right?It is stillin the beta
> version.How can I use that when it is nto stable yet?
> 
> Regards,
> Taati
> 
> --
> 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: javascript and struts1.0.2

2002-05-13 Thread Juan Alvarado \(Struts List\)

Mark G. you wanna give this guy a hand?

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:51 PM
To: Struts Users Mailing List
Subject: RE: javascript and struts1.0.2


Juan,

I do not think so.Struts 1.0.2 is in alpha version and struts 1.1b is in
beta version.Atleats thats what the docs tell me

Regards,
Taati
> -Original Message-
> From: Juan Alvarado \(Struts List\) [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:43 PM
> To:   Struts Users Mailing List
> Subject:  RE: javascript and struts1.0.2
>
> Mark forgive me, but did you say struts 1.02 is also in beta Does that
> mean that struts 1.1 is in alpha version then???
>
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
>
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:39 PM
> To: 'Struts Users Mailing List'
> Subject: RE: javascript and struts1.0.2
>
>
> 1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to
> upgrade
> from 1.0.2 it's better to do it now than wait.  Further, we have found
> 1.1b
> to be remarkably stable.
>
> Mark
>
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:21 PM
>
> Thanks a lot
> But common validator is a part of struts1.1b right?It is stillin the beta
> version.How can I use that when it is nto stable yet?
>
> Regards,
> Taati
>
> --
> 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: 




Sample struts applications in ATG Dymamo 5.6

2002-05-13 Thread Mueller, Ed

I apologize if this is a FAQ, but after searching the mail archive I could
not find a satisfactory answer.  How do you get the sample struts
applications
(e.g., struts-example.war) installed and working in the ATG Dynamo 5.6
environment?
There has to be an easier way than trying to turn the 'war' into a 'dar'
(Dynamo
ARchive).

Thank you for your time.

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




RE: javascript and struts1.0.2

2002-05-13 Thread Mannem, Taati

Joseph, 
I am talking to Juan also and I think he is also suggesting the same
way.The first problem I faced was I was using struts 1.0.2 and I didnt know
how to do javascript handling part.So I used  that way to incorporate
javascript alerts into my page and they sure seem to work fine.DO you have
anyspecific example of which will give me the functionality you were talking
abt .
Thanks in advance.

Regards,
Taati
> -Original Message-
> From: Joseph Barefoot [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 4:52 PM
> To:   Struts Users Mailing List
> Subject:  RE: javascript and struts1.0.2
> 
> If it works, I'd say it's 'correct' enough. :)
> 
> I'm not sure how you're doing this, but why not just write a custom tag or
> do a  to check for an ActionErrors object to see if there
> are
> errors.  If the tag evaluates to true, output your Javascript onload()
> function, using  tags to get the actual error message
> text(s)
> and insert them into the window.alert().  This way you only store the
> error
> message itself in the resource file, while the Javascript stays in your
> JSP
> page.  I've used Struts tags to modify the output of Javascript similarly,
> and it works fine.
> 
> Is this how you're currently doing it, and if not, is there a problem with
> doing it this way?
> 
> 
> peace,
> Joe Barefoot
> 
> 
> > -Original Message-
> > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 12:13 PM
> > To: [EMAIL PROTECTED]
> > Subject: javascript and struts1.0.2
> >
> >
> > Struts guys,
> > A help and review required urgently.I am using struts1.0.2 and I
> > have to show the errors(validations ,ActionErrors) in the form of
> > javascript
> > alerts. I found  that struts 1.0.2 does not support javascript. I
> handled
> > this by writing the alerts in the applicationresources.properties and
> that
> > way I was within the framework and did not have to do much of extensive
> > coding. Is this approach correct or is there some other better way?
> > TIA
> > Regards,
> > Taati
> >
> >
> > --
> > 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: Using onclick within iterate tag

2002-05-13 Thread James Mitchell

The DynaActionForm class (Struts 1.1b only I think) allows you to configure
an ActionForm in the struts-config.xml, but you don't have to write any code
to use it. (It is part of Struts)


There is a pretty good example of how to use it in the struts-example.war

Although I can't seem to find any decent examples of using it with indexed
properties.

The one I thought I had is buried in an old project, of which is unavailable
right now :-(



JM

> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 5:20 PM
> To: Struts Users Mailing List
> Subject: Re: Using onclick within iterate tag
>
>
> Hi James,
>
> what does the DynaActionForm do?
>
>
>
> James Mitchell wrote:
>
> >Ok, then you will probably be needing to use indexed properties.
> >
> >I am trying to gather a bit of "working code" for you.
> >
> >I should be finished shortly.
> >
> >In the meantime, take a look at using indexed properties.  Also, are you
> >using the DynaActionForm???
> >
> >JM
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




Re: Using onclick within iterate tag

2002-05-13 Thread Adam Hardy

Hi James,

what does the DynaActionForm do?



James Mitchell wrote:

>Ok, then you will probably be needing to use indexed properties.
>
>I am trying to gather a bit of "working code" for you.
>
>I should be finished shortly.
>
>In the meantime, take a look at using indexed properties.  Also, are you
>using the DynaActionForm???
>
>JM
>  
>



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




html:options with a Map collection

2002-05-13 Thread Sriram Nookala

I've been trying to find documentation on how to use a Map collection in
html:options with the Map key as the label name and the Map value as the
label property.
thanks,
sriram


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




RE: javascript and struts1.0.2

2002-05-13 Thread Mannem, Taati

Mark,
This mail was sent before you sent us the update.So please neglect
this mail

Regards,
Taati
> -Original Message-
> 
> 
> From: Mannem, Taati [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:51 PM
> To:   Struts Users Mailing List
> Subject:  RE: javascript and struts1.0.2
> 
> Juan,
> 
> I do not think so.Struts 1.0.2 is in alpha version and struts 1.1b is in
> beta version.Atleats thats what the docs tell me
> 
> Regards,
> Taati
> > -Original Message-
> > From:   Juan Alvarado \(Struts List\)
> [SMTP:[EMAIL PROTECTED]]
> > Sent:   Monday, May 13, 2002 3:43 PM
> > To: Struts Users Mailing List
> > Subject:RE: javascript and struts1.0.2
> > 
> > Mark forgive me, but did you say struts 1.02 is also in beta Does
> that
> > mean that struts 1.1 is in alpha version then???
> > 
> > **
> > Juan Alvarado
> > Internet Developer -- Manduca Management
> > (786)552-0504
> > [EMAIL PROTECTED]
> > AOL Instant Messenger: [EMAIL PROTECTED]
> > 
> > -Original Message-
> > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 3:39 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: javascript and struts1.0.2
> > 
> > 
> > 1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to
> > upgrade
> > from 1.0.2 it's better to do it now than wait.  Further, we have found
> > 1.1b
> > to be remarkably stable.
> > 
> > Mark
> > 
> > -Original Message-
> > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 3:21 PM
> > 
> > Thanks a lot
> > But common validator is a part of struts1.1b right?It is stillin the
> beta
> > version.How can I use that when it is nto stable yet?
> > 
> > Regards,
> > Taati
> > 
> > --
> > 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: javascript and struts1.0.2

2002-05-13 Thread Mannem, Taati

Juan,

I do not think so.Struts 1.0.2 is in alpha version and struts 1.1b is in
beta version.Atleats thats what the docs tell me

Regards,
Taati
> -Original Message-
> From: Juan Alvarado \(Struts List\) [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:43 PM
> To:   Struts Users Mailing List
> Subject:  RE: javascript and struts1.0.2
> 
> Mark forgive me, but did you say struts 1.02 is also in beta Does that
> mean that struts 1.1 is in alpha version then???
> 
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
> 
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:39 PM
> To: 'Struts Users Mailing List'
> Subject: RE: javascript and struts1.0.2
> 
> 
> 1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to
> upgrade
> from 1.0.2 it's better to do it now than wait.  Further, we have found
> 1.1b
> to be remarkably stable.
> 
> Mark
> 
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:21 PM
> 
> Thanks a lot
> But common validator is a part of struts1.1b right?It is stillin the beta
> version.How can I use that when it is nto stable yet?
> 
> Regards,
> Taati
> 
> --
> 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: javascript and struts1.0.2

2002-05-13 Thread Galbreath, Mark

1.0.2 was the beta precursor of 1.1b.  Both are beta, just different
versions.  An alpha version is a precursor to a beta version and is usually
defined by the scope of the release (who gets to use it).

-Original Message-
From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:43 PM
To: Struts Users Mailing List
Subject: RE: javascript and struts1.0.2


Mark forgive me, but did you say struts 1.02 is also in beta Does that
mean that struts 1.1 is in alpha version then???

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:39 PM
To: 'Struts Users Mailing List'
Subject: RE: javascript and struts1.0.2


1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to upgrade
from 1.0.2 it's better to do it now than wait.  Further, we have found 1.1b
to be remarkably stable.

Mark

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:21 PM

Thanks a lot
But common validator is a part of struts1.1b right?It is stillin the beta
version.How can I use that when it is nto stable yet?

Regards,
Taati

--
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: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Galbreath, Mark

Declare a form bean with session scope associated with your action class and
forwarded to the JSP in struts-config.  Use your action class to set the
bean's properties and then access the lists with  and individual
properties with .

Mark

-Original Message-
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 4:01 PM
To: 'Struts Users Mailing List' (E-mail)
Subject: Getting a list from a session bean and displaying the data in a
jsp


Hi,

I´ve got a session bean which returns an Object[] array of entity beans.  In
my action file I get the array via a jndiContext.lookup.  That´s all no
problem and I can retreive my data out of the entity beans.

However, I´m slightly stuck getting them over to my jsp file.  I´ve tried

request.setAttribute("entryList", entryList);

and then outputing the data with:


  



  


Could someone give me an insight of how this is done.
I would be most grateful.

Thanks,

Michael


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Multiple sites using one struts application.

2002-05-13 Thread James Mitchell


One suggestion..

Register a domain name, then setup to use virtual host.

http://club1.mydomain.com/
http://club2.mydomain.com/
http://club3.mydomain.com/
http://club4.mydomain.com/
http://club5.mydomain.com/
http://club6.mydomain.com/

Use same code base, but put all image references in a property file and
extend the img tag to write from the bundle, based on some kind of
ResourceManager (similar to how the i18n checks the headers for language)

I hope this gives you some ideas, if not then just press DELETE.;)

JM




> -Original Message-
> From: Mike Karl [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 4:52 PM
> To: [EMAIL PROTECTED]
> Subject: Multiple sites using one struts application.
>
>
> Hello,
> I'm building a site for a group of clubs.  All the sites will have the
> same set of pages and actions.
>
> For instance:
>
> http://clubsites/club1/index.jsp
> http://clubsites/club2/index.jsp
> http://clubsites/club3/index.jsp
> http://anothersite/club4/index.jsp
>
> All of these sites would basically be the same in terms of layout and
> functionality except that the would have different images.  They may
> also connect to seperate database. How can I set up a site like this so
> that I can use the same pages for all of the clubs but pass different
> configurations so that I can render the pages with their own images.
>
> thanks
> mike
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




Multiple sites using one struts application.

2002-05-13 Thread Mike Karl

Hello,
I'm building a site for a group of clubs.  All the sites will have the
same set of pages and actions.

For instance:

http://clubsites/club1/index.jsp
http://clubsites/club2/index.jsp
http://clubsites/club3/index.jsp
http://anothersite/club4/index.jsp

All of these sites would basically be the same in terms of layout and
functionality except that the would have different images.  They may
also connect to seperate database. How can I set up a site like this so
that I can use the same pages for all of the clubs but pass different
configurations so that I can render the pages with their own images.

thanks
mike



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




RE: javascript and struts1.0.2

2002-05-13 Thread Joseph Barefoot

If it works, I'd say it's 'correct' enough. :)

I'm not sure how you're doing this, but why not just write a custom tag or
do a  to check for an ActionErrors object to see if there are
errors.  If the tag evaluates to true, output your Javascript onload()
function, using  tags to get the actual error message text(s)
and insert them into the window.alert().  This way you only store the error
message itself in the resource file, while the Javascript stays in your JSP
page.  I've used Struts tags to modify the output of Javascript similarly,
and it works fine.

Is this how you're currently doing it, and if not, is there a problem with
doing it this way?


peace,
Joe Barefoot


> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 12:13 PM
> To: [EMAIL PROTECTED]
> Subject: javascript and struts1.0.2
>
>
> Struts guys,
>   A help and review required urgently.I am using struts1.0.2 and I
> have to show the errors(validations ,ActionErrors) in the form of
> javascript
> alerts. I found  that struts 1.0.2 does not support javascript. I handled
> this by writing the alerts in the applicationresources.properties and that
> way I was within the framework and did not have to do much of extensive
> coding. Is this approach correct or is there some other better way?
> TIA
> Regards,
> Taati
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 


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




Re: Forwarding requests to other actions?

2002-05-13 Thread Mark Nichols

If I am understanding your question you might want to look at the 
DispatchAction.
http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/actions/DispatchAction.html

HTH,
Mark


>From: Struts Newsgroup (@Basebeans.com) <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Forwarding requests to other actions?
>Date: Fri, 10 May 2002 05:10:01 -0700
>
>Subject: Forwarding requests to other actions?
>From: Maurice Mills <[EMAIL PROTECTED]>
>  ===
>Can I forward a request that is sent to one Action to another Action for
>processing?
>
>I have a form with 4 different actions that can be done on it.  I would
>like to keep the processing of these actions in separate Action
>classes.  The way I see it is there are two options:
>
>1) Use javascript to conditionally set a property depending on the
>button clicked.
>2) Tie the submit buttons to a single property and use this in the
>Action class.
>
>I can then use this property to determine the processing in the Action
>class.  These actions, though, can be used on several different
>screens.  I would like to implement a DeleteAction, SaveAction,
>ForwardAction, etc. and forward to the appropriate one based on the
>action property from above.
>
>Can this be done and if so, how?
>
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




RE: approache to populate combo-box on the fly

2002-05-13 Thread Mannem, Taati

Emerson,
I know of a way but I do not think this is the only way. When u come
to this window get the data of  the two listboxes into a javascript array
and on change of the one list box u can populate the other list box but
remember  this is good only when u have limite dno of data as having too
much on the client is again not a good idea/design.

Regards,
Taati
> -Original Message-
> From: Emerson Cargnin - MSA [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 5:45 PM
> To:   'Struts Users Mailing List'
> Subject:  approache to populate combo-box on the fly
> 
> Hi all
> 
> We are using the following approache to populate a combo-box depending on
> the value of a changed combo-box :
> 
> We have a iframe on the page, and on the onChange event of some combo-box,
> it loads an struts LoadSelectAction (generic for all cases like this) that
> populates other combo depending of some parameters.
> 
> Is it a good practice? have anyone used other way to populate a combo
> without sending the entire page to server and flicking  the page?
> 
> Emerson
> 
> 
> 

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




RE: bean:write returning null

2002-05-13 Thread Mannem, Taati

Yes Thinh I think thats the way to go

Regards,
Taati
> -Original Message-
> From: Thinh Doan [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 4:44 PM
> To:   Struts Users Mailing List
> Subject:  RE: bean:write returning null
> 
> Can you use logic:present ?
> 
> Thinh
> 
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 3:30 PM
> To: Struts (E-mail)
> Subject: bean:write returning null
> 
> 
> How are you guys testing for this in JSP?
>  
> Mark
> "De recta non tolerandum sunt."
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

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




RE: javascript and struts1.0.2

2002-05-13 Thread Juan Alvarado \(Struts List\)

Mannem:

Either I didn't read your previous emails more carefully or you didn't
mention it was from the business layer that you needed to display java
script. In any case, without knowing all the details of your application
it's really hard for me to understand what it is you need to accomplish. Can
you send me a more detailed email explaining the steps required to generate
your java script.

Typically the standard way of handling business logic errors in struts is to
store them using ActionErrors. From the example that ships with struts I
copied this piece of code from LogonForm.java:

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


I'm not sure if you'd be breaking any standards, but I see no reason to
store the actual javascript that displays the error in one of your keys in
your resource bundle. I would imagine you'd want to display an alert box.
However, since you are already inside the business layer, the more common
approach is to just store the error message in the key to then display in
your page.

HOpe this helps!!!


**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 4:10 PM
To: [EMAIL PROTECTED]
Subject: RE: javascript and struts1.0.2


Juan,
Pardon me for mailing to u but Juan, if I get an error from the business
layer and I have to show javascript alert how will I use the validator tag
to display the error.
Any examples with the code will be really helpful.

Regards,
Taati
> -Original Message-
> From: Juan Alvarado \(Struts List\) [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:22 PM
> To:   Struts Users Mailing List
> Subject:  RE: javascript and struts1.0.2
>
> You can use the validator with struts 1.02. It just needs to be configured
> differently.  Take a look at the documentation on the web site.
>
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
>
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:21 PM
> To: Struts Users Mailing List
> Subject: RE: javascript and struts1.0.2
>
>
> Thanks a lot
> But common validator is a part of struts1.1b right?It is stillin the beta
> version.How can I use that when it is nto stable yet?
>
> Regards,
> Taati
> > -Original Message-
> > From:   Juan Alvarado \(Struts List\)
> [SMTP:[EMAIL PROTECTED]]
> > Sent:   Monday, May 13, 2002 3:11 PM
> > To: Struts Users Mailing List
> > Subject:RE: javascript and struts1.0.2
> >
> > Look into the validation framework!!!
> >
> > http://home.earthlink.net/~dwinterfeldt/index.html
> >
> > Good luck
> >
> > **
> > Juan Alvarado
> > Internet Developer -- Manduca Management
> > (786)552-0504
> > [EMAIL PROTECTED]
> > AOL Instant Messenger: [EMAIL PROTECTED]
> >
> > -Original Message-
> > From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 3:13 PM
> > To: [EMAIL PROTECTED]
> > Subject: javascript and struts1.0.2
> >
> >
> > Struts guys,
> > A help and review required urgently.I am using struts1.0.2 and I
> > have to show the errors(validations ,ActionErrors) in the form of
> > javascript
> > alerts. I found  that struts 1.0.2 does not support javascript. I
> handled
> > this by writing the alerts in the applicationresources.properties and
> that
> > way I was within the framework and did not have to do much of extensive
> > coding. Is this approach correct or is there some other better way?
> > TIA
> > Regards,
> > Taati
> >
> >
> > --
>
> --
> 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: Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Raffy_Lata


In a non-nested context, you would do the following for a collection of
objects associated with the request object


  



  






"Michael Delamere" <[EMAIL PROTECTED]> on 05/13/2002 01:00:42 PM

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

To:   "'Struts Users Mailing List' \(E-mail\)"
  <[EMAIL PROTECTED]>
cc:
Subject:  Getting a list from a session bean and displaying the data in a
  jsp


Hi,

I´ve got a session bean which returns an Object[] array of entity beans.
In
my action file I get the array via a jndiContext.lookup.  That´s all no
problem and I can retreive my data out of the entity beans.

However, I´m slightly stuck getting them over to my jsp file.  I´ve tried

request.setAttribute("entryList", entryList);

and then outputing the data with:


  



  


Could someone give me an insight of how this is done.
I would be most grateful.

Thanks,

Michael


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






**
Please Note:
The information in this E-mail message, and any files transmitted
with it, is confidential and may be legally privileged.  It is
intended only for the use of the individual(s) named above.  If you
are the intended recipient, be aware that your use of any confidential
or personal information may be restricted by state and federal
privacy laws.  If you, the reader of this message, are not the
intended recipient, you are hereby notified that you should not
further disseminate, distribute, or forward this E-mail message.
If you have received this E-mail in error, please notify the sender
and delete the material from any computer.  Thank you.
**



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




Getting a list from a session bean and displaying the data in a jsp

2002-05-13 Thread Michael Delamere

Hi,

I´ve got a session bean which returns an Object[] array of entity beans.  In
my action file I get the array via a jndiContext.lookup.  That´s all no
problem and I can retreive my data out of the entity beans.

However, I´m slightly stuck getting them over to my jsp file.  I´ve tried

request.setAttribute("entryList", entryList);

and then outputing the data with:


  



  


Could someone give me an insight of how this is done.
I would be most grateful.

Thanks,

Michael


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




RE: javascript and struts1.0.2

2002-05-13 Thread Juan Alvarado \(Struts List\)

Mark forgive me, but did you say struts 1.02 is also in beta Does that
mean that struts 1.1 is in alpha version then???

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:39 PM
To: 'Struts Users Mailing List'
Subject: RE: javascript and struts1.0.2


1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to upgrade
from 1.0.2 it's better to do it now than wait.  Further, we have found 1.1b
to be remarkably stable.

Mark

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:21 PM

Thanks a lot
But common validator is a part of struts1.1b right?It is stillin the beta
version.How can I use that when it is nto stable yet?

Regards,
Taati

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: javascript and struts1.0.2

2002-05-13 Thread Galbreath, Mark

1.0.2 is beta, also.  1.1b is where Struts is going.  If you plan to upgrade
from 1.0.2 it's better to do it now than wait.  Further, we have found 1.1b
to be remarkably stable.

Mark

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:21 PM

Thanks a lot
But common validator is a part of struts1.1b right?It is stillin the beta
version.How can I use that when it is nto stable yet?

Regards,
Taati

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




RE: javascript and struts1.0.2

2002-05-13 Thread Juan Alvarado \(Struts List\)

You can use the validator with struts 1.02. It just needs to be configured
differently.  Take a look at the documentation on the web site.

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:21 PM
To: Struts Users Mailing List
Subject: RE: javascript and struts1.0.2


Thanks a lot
But common validator is a part of struts1.1b right?It is stillin the beta
version.How can I use that when it is nto stable yet?

Regards,
Taati
> -Original Message-
> From: Juan Alvarado \(Struts List\) [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:11 PM
> To:   Struts Users Mailing List
> Subject:  RE: javascript and struts1.0.2
>
> Look into the validation framework!!!
>
> http://home.earthlink.net/~dwinterfeldt/index.html
>
> Good luck
>
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
>
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:13 PM
> To: [EMAIL PROTECTED]
> Subject: javascript and struts1.0.2
>
>
> Struts guys,
>   A help and review required urgently.I am using struts1.0.2 and I
> have to show the errors(validations ,ActionErrors) in the form of
> javascript
> alerts. I found  that struts 1.0.2 does not support javascript. I handled
> this by writing the alerts in the applicationresources.properties and that
> way I was within the framework and did not have to do much of extensive
> coding. Is this approach correct or is there some other better way?
> TIA
> Regards,
> Taati
>
>
> --

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: javascript and struts1.0.2

2002-05-13 Thread Mannem, Taati

Thanks a lot
But common validator is a part of struts1.1b right?It is stillin the beta
version.How can I use that when it is nto stable yet?

Regards,
Taati
> -Original Message-
> From: Juan Alvarado \(Struts List\) [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:11 PM
> To:   Struts Users Mailing List
> Subject:  RE: javascript and struts1.0.2
> 
> Look into the validation framework!!!
> 
> http://home.earthlink.net/~dwinterfeldt/index.html
> 
> Good luck
> 
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
> 
> -Original Message-
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 3:13 PM
> To: [EMAIL PROTECTED]
> Subject: javascript and struts1.0.2
> 
> 
> Struts guys,
>   A help and review required urgently.I am using struts1.0.2 and I
> have to show the errors(validations ,ActionErrors) in the form of
> javascript
> alerts. I found  that struts 1.0.2 does not support javascript. I handled
> this by writing the alerts in the applicationresources.properties and that
> way I was within the framework and did not have to do much of extensive
> coding. Is this approach correct or is there some other better way?
> TIA
> Regards,
> Taati
> 
> 
> --

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




RE: javascript and struts1.0.2

2002-05-13 Thread Juan Alvarado \(Struts List\)

Look into the validation framework!!!

http://home.earthlink.net/~dwinterfeldt/index.html

Good luck

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]

-Original Message-
From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 3:13 PM
To: [EMAIL PROTECTED]
Subject: javascript and struts1.0.2


Struts guys,
A help and review required urgently.I am using struts1.0.2 and I
have to show the errors(validations ,ActionErrors) in the form of javascript
alerts. I found  that struts 1.0.2 does not support javascript. I handled
this by writing the alerts in the applicationresources.properties and that
way I was within the framework and did not have to do much of extensive
coding. Is this approach correct or is there some other better way?
TIA
Regards,
Taati


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




javascript and struts1.0.2

2002-05-13 Thread Mannem, Taati

Struts guys,
A help and review required urgently.I am using struts1.0.2 and I
have to show the errors(validations ,ActionErrors) in the form of javascript
alerts. I found  that struts 1.0.2 does not support javascript. I handled
this by writing the alerts in the applicationresources.properties and that
way I was within the framework and did not have to do much of extensive
coding. Is this approach correct or is there some other better way?
TIA
Regards,
Taati


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




Re: Using Struts 1.0.2 with JBoss 3.0 RC2 / Tomcat 4.0.3

2002-05-13 Thread Kevin . Bedell




Not an ace with JBoss, but can relate based on similar weblogic experience.

It looks from your stacktrace that it is looking for the class file using
what it calls the "UnifiedClassLoader".

I know in Weblogic, each ear file spawns two seperate class loaders - one
for the ejb container and one for the sevlet container for any web apps.
They each have different classpaths.

I run into problems like this whenever I have class files in a place that's
visible to some of the class loaders, but not the one that needs it.

I'd review changes in class loading and in the class loader strategy for
the new release of JBoss you've just moved to.

Another issue may be the requirement to specify the names of jar files
containing non-bean classes the Manifest.mf file in the META-INF directory
of your ear/jar files. For more info, see the section on "Download
Extensions" at:

 http://java.sun.com/docs/books/tutorial/jar/basics/manifest.html

FWIW -
Kevin









"M?ris Orbid?ns" <[EMAIL PROTECTED]> on 05/13/2002 01:35:24 PM

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

To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Using Struts 1.0.2 with JBoss 3.0 RC2 / Tomcat 4.0.3



I tried to move my EAR app from JBoss 2.4.4 to JBoss 3.0 RC2 / Tomcat
4.0.2.

But for some reason Struts cannot find action classes anymore.
ClassNotFoundException

could someone help ?
Maris Orbidans


20:32:24,620 INFO  [Engine] action:   Creating new Action instance
20:32:24,699 ERROR [Engine] action: Error creating Action instance for path
'/Ma
inmenu', class name 'lv.datapro.lad.pri.actions.MainmenuAction'
java.lang.ClassNotFoundException: lv.datapro.lad.pri.actions.MainmenuAction
java.lang.Class
org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(j
ava.lang.String, boolean, java.lang.ClassLoader)
java.lang.Class
org.jboss.mx.loading.UnifiedClassLoader.loadClass(java.l
ang.String, boolean)
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String)
java.lang.Class
java.lang.ClassLoader.loadClassInternal(java.lang.String
)
java.lang.Class java.lang.Class.forName0(java.lang.String, boolean,
java
.lang.ClassLoader)
java.lang.Class java.lang.Class.forName(java.lang.String)
org.apache.struts.action.Action
org.apache.struts.action.ActionServlet.p
rocessActionCreate(org.apache.struts.action.ActionMapping,
javax.servlet.http.Ht
tpServletRequest)
void
org.apache.struts.action.ActionServlet.process(javax.servlet.http.H
ttpServletRequest, javax.servlet.http.HttpServletResponse)
void
org.apache.struts.action.ActionServlet.doGet(javax.servlet.http.Htt

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







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---


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




Using Struts 1.0.2 with JBoss 3.0 RC2 / Tomcat 4.0.3

2002-05-13 Thread M?ris Orbid?ns


I tried to move my EAR app from JBoss 2.4.4 to JBoss 3.0 RC2 / Tomcat 4.0.2.

But for some reason Struts cannot find action classes anymore.
ClassNotFoundException

could someone help ?
Maris Orbidans


20:32:24,620 INFO  [Engine] action:   Creating new Action instance
20:32:24,699 ERROR [Engine] action: Error creating Action instance for path '/Ma
inmenu', class name 'lv.datapro.lad.pri.actions.MainmenuAction'
java.lang.ClassNotFoundException: lv.datapro.lad.pri.actions.MainmenuAction
java.lang.Class org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(j
ava.lang.String, boolean, java.lang.ClassLoader)
java.lang.Class org.jboss.mx.loading.UnifiedClassLoader.loadClass(java.l
ang.String, boolean)
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String)
java.lang.Class java.lang.ClassLoader.loadClassInternal(java.lang.String
)
java.lang.Class java.lang.Class.forName0(java.lang.String, boolean, java
.lang.ClassLoader)
java.lang.Class java.lang.Class.forName(java.lang.String)
org.apache.struts.action.Action org.apache.struts.action.ActionServlet.p
rocessActionCreate(org.apache.struts.action.ActionMapping, javax.servlet.http.Ht
tpServletRequest)
void org.apache.struts.action.ActionServlet.process(javax.servlet.http.H
ttpServletRequest, javax.servlet.http.HttpServletResponse)
void org.apache.struts.action.ActionServlet.doGet(javax.servlet.http.Htt

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




RE: Using struts with WLS6.2?

2002-05-13 Thread Arik Levin ( Tikal )

No problema!!!

-Original Message-
From: asd asd [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 13, 2002 8:05 PM
To: [EMAIL PROTECTED]
Subject: Using struts with WLS6.2?

The only install docs I could find online at
jakarta.apache.org were for WLS 5.1. I'm assuming it
will work with weblogic 6.2  Has anyone successfully
done it yet though? Thanks

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: Using struts with WLS6.2?

2002-05-13 Thread Galbreath, Mark

Yes, but we found the documentation for WL to be vague and incomplete.  You
have to do it pretty much by trial-and-error.

Mark

-Original Message-
From: asd asd [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 1:05 PM
To: [EMAIL PROTECTED]
Subject: Using struts with WLS6.2?


The only install docs I could find online at
jakarta.apache.org were for WLS 5.1. I'm assuming it
will work with weblogic 6.2  Has anyone successfully
done it yet though? Thanks

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Using struts with WLS6.2?

2002-05-13 Thread asd asd

The only install docs I could find online at
jakarta.apache.org were for WLS 5.1. I'm assuming it
will work with weblogic 6.2  Has anyone successfully
done it yet though? Thanks

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Developing Web Applications Using the Remote Application Server API's

2002-05-13 Thread Metla, Suri


Hi all,
We are planning to develop the Web application using the
Oracle OC4J and some of the business logic is in the Web Logic App Server
running in the remote box. I have to call these Ejb's to perform the
business operations. I need help in Developing the Business Model to call
these remote API's.

Are there any best practices to call the remote API's? I am not Sure is
Structs with Log4J will fit the best Over all frame work. I need to capture
the performance of the remote API's response; for this is bc4J can log the
details. Any Help.

Thanks
Suri

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




Re: I need help building tiles from src - please

2002-05-13 Thread jfc100

James Mitchell wrote:

>Did you try building the webapps?
>
>JM 
>
>>-Original Message-
>>From: jfc100 [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, May 13, 2002 11:12 AM
>>To: Struts-User
>>Subject: I need help building tiles from src - please
>>
>>
>>Hi,
>>
>>I've been trying to build tiles and am struggling a bit.
>>
>>I downloaded and ran a build of 'jakarta-struts-1.1-b1-src' only to find 
>>that it doesn't automatically build tiles. When I finish building 
>>struts, I can see a contrib directory which contains a tiles 
>>subdirectory with the tiles source in it.
>>
>>When I read the build.xml notes, it says make sure this file is in the 
>>root of the struts-src directory.
>>
>>This is going to override the existing struts build.xml - which is 
>>surely not what we want.
>>
>>What is the best way to arrange things?
>>
>>Thanks
>>Joe
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>
>>For additional commands, e-mail: 
>>
>>
>>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
Well, no I didn't. I simply ran 'ant' in the jakart-struts-src-dir.

I noticed something in the struts build.xml file:

 ...
This script will delegate some of it's tasks to the other build*.xml
scripts (build-webapps.xml, build-tests.xml, ...)
 ... 

I sounds like this path is not so well trodden i.e. building tiles from 
src.

The reason I'm trying to build Tiles myself from the src is due to an 
anomaly somewhere between jboss and tomcat when it comes to  determining 
a user's login status. (see 
http://main.jboss.org/forums/thread.jsp?forum=49&thread=13002 )

I'm trying to create something like this in the Tiles 
template-definition selection code:

public boolean myPsuedoCheckRoleWrapper(HttpServletRequest request, 
String tilesDefnRoleAttribute){

if(tilesDefnRoleAttribute.equalsIgnoreCase("anonymous"){
// return true if the user is not logged-in.
// i.e. Jaas login doesn't update the request with 
authentication info - like tomcat does as part of form-based auth -
// so do my own checking - whatever it takes.
// Doing a login is desireable otherwise tiles needs two forward 
tiles-definitions in struts.config 1=anonymous 2=custom(role-based) 
//   - and tiles-defn-conf.xml needs a lot more setup -  not 
very elegent!
return true;
}

boolean tilesResult = request.isUserInRole(role)?true:false;
return tilesResult;
}

Any suggestions and advice are most welcome!
Cheers
Joe


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




RE: Using onclick within iterate tag

2002-05-13 Thread Doug Mclellan

Hi again,

The form I am using extends the basic ActionForm class.

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 17:49
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


Ok, then you will probably be needing to use indexed properties.

I am trying to gather a bit of "working code" for you.

I should be finished shortly.

In the meantime, take a look at using indexed properties.  Also, are you
using the DynaActionForm???

JM




> -Original Message-
> From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 12:43 PM
> To: Struts Users Mailing List
> Subject: RE: Using onclick within iterate tag
>
>
>
> You have hit the nail on the head.
>
> Doug
>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: 13 May 2002 17:42
> To: Struts Users Mailing List
> Subject: RE: Using onclick within iterate tag
>
>
> Ok, so you want to disable the second box (by default) and then if the
> user
> selects the first box, then allow the second to be selected.  And this
> is
> all done over and over again in a list of contacts.
>
> 
>
>
> JM
>
> > -Original Message-
> > From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 12:31 PM
> > To: Struts Users Mailing List
> > Subject: RE: Using onclick within iterate tag
> >
> >
> >
> > What I am using the JSP to do is display the list of my personal
> > contacts.
> >
> > So I am using the iterate tag to retrieve the list of personal
contact
> > objects from my Form bean. Within the iterate tag I display the name
> > etc. The two checkbox tags on each row of the table are used to set
> one
> > or more of the returned contacts to a supervisor and if so enable
the
> > other checkbox to lock the contact's account.
> >
> > So I need the checkbox tags to be within the iterate tag.
> >
> > Thanks again James for taken time out to answer my question, its
much
> > appreciated.
> >
> > Doug
> >
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > Sent: 13 May 2002 17:07
> > To: Struts Users Mailing List
> > Subject: RE: Using onclick within iterate tag
> >
> >
> > I guess I need a bit more info to properly answer/stab-at your
> question.
> >
> > I assume that you know what the two checkboxes will always be.
> > -Why not just put the two on your jsp and not iterate over them.
> >
> > Or for a more generic approach, say you are writing your own custom
> > taglib
> > like.
> >
> > 
> >
> > or something like thatand this taglib would write out the
html
> > necessary to make the second box (or more) disabled/enabled based on
> the
> > 1st
> > value.
> >
> >
> >
> > Am I way off here???
> >
> >
> >
> > JM
> >
> > > -Original Message-
> > > From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, May 13, 2002 11:56 AM
> > > To: Struts Users Mailing List
> > > Subject: RE: Using onclick within iterate tag
> > >
> > >
> > > Sorry,
> > >
> > > I meant the position within the iterator. Within the JSP there is
> two
> > > checkbox tags for each iteration and I need to only enable the
> second
> > > checkbox if the first has been checked.
> > >
> > > Doug
> > >
> > > -Original Message-
> > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > > Sent: 13 May 2002 16:53
> > > To: Struts Users Mailing List
> > > Subject: RE: Using onclick within iterate tag
> > >
> > >
> > > When you mean "position" do you mean "position within the
iterator"
> or
> > > "position on the page"???
> > >
> > > JM
> > >
> > > > -Original Message-
> > > > From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, May 13, 2002 11:47 AM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: Using onclick within iterate tag
> > > >
> > > >
> > > > Hi again,
> > > >
> > > > Many thanks James for helping us out, that works great.
> > > >
> > > > Apologies for not asking the question properly first time
around.
> > But
> > > is
> > > > it possible to also pass the position of the checkbox that has
> been
> > > > clicked so that the JavaScript function could be used to control
> > other
> > > > checkbox tags within the iterate tag.
> > > >
> > > > Thanks again.
> > > >
> > > > Doug
> > > >
> > > > -Original Message-
> > > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > > > Sent: 13 May 2002 16:10
> > > > To: Struts Users Mailing List
> > > > Subject: RE: Using onclick within iterate tag
> > > >
> > > >
> > > > try this...
> > > >
> > > >
> > > >  > > > onclick="JavaScript:handleCheckbox(this)"/>Check 1
> > > >  > > > onclick="JavaScript:handleCheckbox(this)"/>Check 2
> > > >  > > > onclick="JavaScript:handleCheckbox(this)"/>Check 3
> > > >  > > > onclick="JavaScript:handleCheckbox(this)"/>Check 4
> > > >
> > > > 
> > > > 
> > > > 
> > > >
> > > > JM
> > > >
> > > 

RE: Using onclick within iterate tag

2002-05-13 Thread James Mitchell

Ok, then you will probably be needing to use indexed properties.

I am trying to gather a bit of "working code" for you.

I should be finished shortly.

In the meantime, take a look at using indexed properties.  Also, are you
using the DynaActionForm???

JM




> -Original Message-
> From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 12:43 PM
> To: Struts Users Mailing List
> Subject: RE: Using onclick within iterate tag
>
>
>
> You have hit the nail on the head.
>
> Doug
>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: 13 May 2002 17:42
> To: Struts Users Mailing List
> Subject: RE: Using onclick within iterate tag
>
>
> Ok, so you want to disable the second box (by default) and then if the
> user
> selects the first box, then allow the second to be selected.  And this
> is
> all done over and over again in a list of contacts.
>
> 
>
>
> JM
>
> > -Original Message-
> > From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 12:31 PM
> > To: Struts Users Mailing List
> > Subject: RE: Using onclick within iterate tag
> >
> >
> >
> > What I am using the JSP to do is display the list of my personal
> > contacts.
> >
> > So I am using the iterate tag to retrieve the list of personal contact
> > objects from my Form bean. Within the iterate tag I display the name
> > etc. The two checkbox tags on each row of the table are used to set
> one
> > or more of the returned contacts to a supervisor and if so enable the
> > other checkbox to lock the contact's account.
> >
> > So I need the checkbox tags to be within the iterate tag.
> >
> > Thanks again James for taken time out to answer my question, its much
> > appreciated.
> >
> > Doug
> >
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > Sent: 13 May 2002 17:07
> > To: Struts Users Mailing List
> > Subject: RE: Using onclick within iterate tag
> >
> >
> > I guess I need a bit more info to properly answer/stab-at your
> question.
> >
> > I assume that you know what the two checkboxes will always be.
> > -Why not just put the two on your jsp and not iterate over them.
> >
> > Or for a more generic approach, say you are writing your own custom
> > taglib
> > like.
> >
> > 
> >
> > or something like thatand this taglib would write out the html
> > necessary to make the second box (or more) disabled/enabled based on
> the
> > 1st
> > value.
> >
> >
> >
> > Am I way off here???
> >
> >
> >
> > JM
> >
> > > -Original Message-
> > > From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, May 13, 2002 11:56 AM
> > > To: Struts Users Mailing List
> > > Subject: RE: Using onclick within iterate tag
> > >
> > >
> > > Sorry,
> > >
> > > I meant the position within the iterator. Within the JSP there is
> two
> > > checkbox tags for each iteration and I need to only enable the
> second
> > > checkbox if the first has been checked.
> > >
> > > Doug
> > >
> > > -Original Message-
> > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > > Sent: 13 May 2002 16:53
> > > To: Struts Users Mailing List
> > > Subject: RE: Using onclick within iterate tag
> > >
> > >
> > > When you mean "position" do you mean "position within the iterator"
> or
> > > "position on the page"???
> > >
> > > JM
> > >
> > > > -Original Message-
> > > > From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, May 13, 2002 11:47 AM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: Using onclick within iterate tag
> > > >
> > > >
> > > > Hi again,
> > > >
> > > > Many thanks James for helping us out, that works great.
> > > >
> > > > Apologies for not asking the question properly first time around.
> > But
> > > is
> > > > it possible to also pass the position of the checkbox that has
> been
> > > > clicked so that the JavaScript function could be used to control
> > other
> > > > checkbox tags within the iterate tag.
> > > >
> > > > Thanks again.
> > > >
> > > > Doug
> > > >
> > > > -Original Message-
> > > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > > > Sent: 13 May 2002 16:10
> > > > To: Struts Users Mailing List
> > > > Subject: RE: Using onclick within iterate tag
> > > >
> > > >
> > > > try this...
> > > >
> > > >
> > > >  > > > onclick="JavaScript:handleCheckbox(this)"/>Check 1
> > > >  > > > onclick="JavaScript:handleCheckbox(this)"/>Check 2
> > > >  > > > onclick="JavaScript:handleCheckbox(this)"/>Check 3
> > > >  > > > onclick="JavaScript:handleCheckbox(this)"/>Check 4
> > > >
> > > > 
> > > > 
> > > > 
> > > >
> > > > JM
> > > >
> > > > > -Original Message-
> > > > > From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Monday, May 13, 2002 10:31 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Using onclick within iterate tag
> > > > >
> > > > >
> > > >

Re: Configuration is frozen -what does it mean?

2002-05-13 Thread Craig R. McClanahan



On 13 May 2002 [EMAIL PROTECTED] wrote:

> Date: 13 May 2002 10:59:21 -
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Configuration is frozen -what does it mean?
>
> Hi!
> I often get an error messaget that says that the configuration is frozen. (See
> the error message below). I don't understand why I get this error and
> restarting the server does not help. I really need some help with this problem,
> thanks.
>

The "configuration is frozen" error occurs when you are attempting to
modify one of the data structures loaded from struts-config.xml at startup
time.  Judging from your stack trace, it looks like you're trying to
modify the "redirect" property on an existing ActionForward instance.
This is undesireable, because it would affect *all* future uses of that
particular forward.

The workaround is to make a copy of the ActionForward you looked up, and
modify it's properties any way you'd like -- something like:

  ActionForward oldForward = mapping.findForward("foo");
  ActionForward newForward = new ActionForward();
  newForward.setName(oldForward.getName());
  newForward.setPath(oldForward.getPath());
  newForward.setRedirect(true);

> // Ulrika
>

Craig


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




RE: Using onclick within iterate tag

2002-05-13 Thread Doug Mclellan


You have hit the nail on the head.

Doug

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 17:42
To: Struts Users Mailing List
Subject: RE: Using onclick within iterate tag


Ok, so you want to disable the second box (by default) and then if the
user
selects the first box, then allow the second to be selected.  And this
is
all done over and over again in a list of contacts.




JM

> -Original Message-
> From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 12:31 PM
> To: Struts Users Mailing List
> Subject: RE: Using onclick within iterate tag
>
>
>
> What I am using the JSP to do is display the list of my personal
> contacts.
>
> So I am using the iterate tag to retrieve the list of personal contact
> objects from my Form bean. Within the iterate tag I display the name
> etc. The two checkbox tags on each row of the table are used to set
one
> or more of the returned contacts to a supervisor and if so enable the
> other checkbox to lock the contact's account.
>
> So I need the checkbox tags to be within the iterate tag.
>
> Thanks again James for taken time out to answer my question, its much
> appreciated.
>
> Doug
>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: 13 May 2002 17:07
> To: Struts Users Mailing List
> Subject: RE: Using onclick within iterate tag
>
>
> I guess I need a bit more info to properly answer/stab-at your
question.
>
> I assume that you know what the two checkboxes will always be.
> -Why not just put the two on your jsp and not iterate over them.
>
> Or for a more generic approach, say you are writing your own custom
> taglib
> like.
>
> 
>
> or something like thatand this taglib would write out the html
> necessary to make the second box (or more) disabled/enabled based on
the
> 1st
> value.
>
>
>
> Am I way off here???
>
>
>
> JM
>
> > -Original Message-
> > From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 11:56 AM
> > To: Struts Users Mailing List
> > Subject: RE: Using onclick within iterate tag
> >
> >
> > Sorry,
> >
> > I meant the position within the iterator. Within the JSP there is
two
> > checkbox tags for each iteration and I need to only enable the
second
> > checkbox if the first has been checked.
> >
> > Doug
> >
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > Sent: 13 May 2002 16:53
> > To: Struts Users Mailing List
> > Subject: RE: Using onclick within iterate tag
> >
> >
> > When you mean "position" do you mean "position within the iterator"
or
> > "position on the page"???
> >
> > JM
> >
> > > -Original Message-
> > > From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, May 13, 2002 11:47 AM
> > > To: Struts Users Mailing List
> > > Subject: RE: Using onclick within iterate tag
> > >
> > >
> > > Hi again,
> > >
> > > Many thanks James for helping us out, that works great.
> > >
> > > Apologies for not asking the question properly first time around.
> But
> > is
> > > it possible to also pass the position of the checkbox that has
been
> > > clicked so that the JavaScript function could be used to control
> other
> > > checkbox tags within the iterate tag.
> > >
> > > Thanks again.
> > >
> > > Doug
> > >
> > > -Original Message-
> > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > > Sent: 13 May 2002 16:10
> > > To: Struts Users Mailing List
> > > Subject: RE: Using onclick within iterate tag
> > >
> > >
> > > try this...
> > >
> > >
> > >  > > onclick="JavaScript:handleCheckbox(this)"/>Check 1
> > >  > > onclick="JavaScript:handleCheckbox(this)"/>Check 2
> > >  > > onclick="JavaScript:handleCheckbox(this)"/>Check 3
> > >  > > onclick="JavaScript:handleCheckbox(this)"/>Check 4
> > >
> > > 
> > > 
> > > 
> > >
> > > JM
> > >
> > > > -Original Message-
> > > > From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, May 13, 2002 10:31 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Using onclick within iterate tag
> > > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I am using onclick event handler on a checkbox tag within a
> iterate
> > > tag,
> > > > since there is going to be multiple checkbox tags can someone
> please
> > > > tell me how I can pass the identifier of the checkbox that has
> fired
> > > the
> > > > onclick event to the JavaScript function specified in the
onclick.
> > > >
> > > > Thanks.
> > > >
> > > >  Doug
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > 
> > > > For additional commands, e-mail:
> > > > 
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 

RE: Using onclick within iterate tag

2002-05-13 Thread Doug Mclellan

Hi Adam,

You are right, I do have 2 checkbox tags per iteration.

Sorry for the confusion.

Doug

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 17:35
To: Struts Users Mailing List
Subject: Re: Using onclick within iterate tag


I think Doug means he has 2 chkboxes per iteration.


James Mitchell wrote:

>I guess I need a bit more info to properly answer/stab-at your
question.
>
>I assume that you know what the two checkboxes will always be.
>-Why not just put the two on your jsp and not iterate over them.
>
>Or for a more generic approach, say you are writing your own custom
taglib
>like.
>
>
>
>or something like thatand this taglib would write out the html
>necessary to make the second box (or more) disabled/enabled based on
the 1st
>value.
>
>
>
>Am I way off here???
>
>
>
>JM
>
>  
>
>>-Original Message-
>>From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, May 13, 2002 11:56 AM
>>To: Struts Users Mailing List
>>Subject: RE: Using onclick within iterate tag
>>
>>
>>Sorry,
>>
>>I meant the position within the iterator. Within the JSP there is two
>>checkbox tags for each iteration and I need to only enable the second
>>checkbox if the first has been checked.
>>
>>Doug
>>
>>-Original Message-
>>From: James Mitchell [mailto:[EMAIL PROTECTED]]
>>Sent: 13 May 2002 16:53
>>To: Struts Users Mailing List
>>Subject: RE: Using onclick within iterate tag
>>
>>
>>When you mean "position" do you mean "position within the iterator" or
>>"position on the page"???
>>
>>JM
>>
>>
>>
>>>-Original Message-
>>>From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
>>>Sent: Monday, May 13, 2002 11:47 AM
>>>To: Struts Users Mailing List
>>>Subject: RE: Using onclick within iterate tag
>>>
>>>
>>>Hi again,
>>>
>>>Many thanks James for helping us out, that works great.
>>>
>>>Apologies for not asking the question properly first time around. But
>>>  
>>>
>>is
>>
>>
>>>it possible to also pass the position of the checkbox that has been
>>>clicked so that the JavaScript function could be used to control
other
>>>checkbox tags within the iterate tag.
>>>
>>>Thanks again.
>>>
>>>Doug
>>>
>>>-Original Message-
>>>From: James Mitchell [mailto:[EMAIL PROTECTED]]
>>>Sent: 13 May 2002 16:10
>>>To: Struts Users Mailing List
>>>Subject: RE: Using onclick within iterate tag
>>>
>>>
>>>try this...
>>>
>>>
>onclick="JavaScript:handleCheckbox(this)"/>Check 1
>onclick="JavaScript:handleCheckbox(this)"/>Check 2
>onclick="JavaScript:handleCheckbox(this)"/>Check 3
>onclick="JavaScript:handleCheckbox(this)"/>Check 4
>>>
>>>
>>>
>>>
>>>
>>>JM
>>>
>>>  
>>>
-Original Message-
From: Doug Mclellan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 10:31 AM
To: [EMAIL PROTECTED]
Subject: Using onclick within iterate tag



Hi,

I am using onclick event handler on a checkbox tag within a iterate


>>>tag,
>>>  
>>>
since there is going to be multiple checkbox tags can someone please
tell me how I can pass the identifier of the checkbox that has fired


>>>the
>>>  
>>>
onclick event to the JavaScript function specified in the onclick.

Thanks.

 Doug

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




  1   2   >