RE: Any hosting sites that use Struts?

2001-05-30 Thread TJM Todd McGregor

Check out MMA Web at http://www.mmaweb.com/  . They
offer hosting accounts with a private VM so you can install Struts on your
own. They also have support for Cocoon.

-Original Message-
From: Jeff Trent [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 9:12 AM
To: [EMAIL PROTECTED]
Subject: Any hosting sites that use Struts?


Anyone know of a hosting facility that offers Java web hosting + Struts?
 




nested properties and null values

2001-05-23 Thread TJM Todd McGregor

I have many cases in my application where I use a nested property in an html
form field (i.e. - order.customer.id). If one of the nested properties is
null Struts throws an exception. Is there any way around this? What I
thought would happen in the above example is if the customer bean was null,
the id property would not be set and the form field would be empty when
displayed.



Template tags and multiple directories

2001-05-22 Thread TJM Todd McGregor

I'm running into some weird behavior using the template tags. I have a
directory structure which separates different areas of my application into
different directories. My template.jsp file is in my root directory and is
shared by pages in the sub-directories. The problem is, all paths to other
resources (i.e. - images, javascript, etc) become broken because the
application is looking for these items relative to the template.jsp file.
Here's what my directory structure looks like:

root
   template.jsp
   header.jsp
   footer.html
   images
   login
  login.jsp <-inserts template.jsp
  loginForm.jsp <---content for the login page
   .
   .
   .

Is there something really obvious that Im missing here? Shouldn't all
resources be relative to the login.jsp page rather than the template.jsp
page? Any ideas, suggestions, or donations of large amounts of money are
greatly appreciated.
  



RE: Splitting up struts-config.xml

2001-05-21 Thread TJM Todd McGregor

This doesn't work with the struts-config.xml file, at least not the way I'm
trying. Here's what my file looks like:


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

]>


.
.
.

&login;



Any suggestions?

-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 5:03 PM
To: [EMAIL PROTECTED]
Subject: Re: Splitting up struts-config.xml


You can split up the file using XML techniques. See the entry at the end of 
Ted Husted's "Struts Threads" page at:

http://www.husted.com/about/struts/threads.htm

or the equivalent entry from the Jakarta Ant FAQ at:

http://jakarta.apache.org/ant/faq.html#xml-entity-include

Hope this helps.

--
Martin Cooper


At 04:11 PM 5/18/01, Doug Way wrote:

>I'm working as part of a team on a large-ish web application using struts.
>
>There are several of us currently working on the struts/jsp side of 
>things, and there's now quite a bit of stuff (action mappings, etc.) in 
>the struts-config.xml file, so each of us has to change this file fairly 
>often, and we're often in conflict with each other.  (I guess part of the 
>problem is that we're using a source code management tool (SourceOffSite) 
>with a pessimistic check-in/check-out system, without automated merging.)
>
>Anyway, is there some way to split up the contents of struts-config.xml, 
>so that it's not one huge file?  (Maybe with includes, or something
similar?)
>
>- Doug Way
>   [EMAIL PROTECTED]




RE: Referencing nested properties with javascript

2001-05-18 Thread TJM Todd McGregor

Had I checked the archives first I would have been able to answer my own
question. For those interested this is how to reference a nested property in
javascript:

document.form['property.nestedProperty'].someFunction();

I did notice that the html:form tag does not handle this situation properly,
so you can't use the focus attribute of this tag to give focus to a nested
property. This is the code it generates, which is incorrect because it adds
a "." after the reference to the form:

document.memberLogin.['credentials.loginPassword'].focus()

-----Original Message-
From: TJM Todd McGregor [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 3:26 PM
To: '[EMAIL PROTECTED]'
Subject: Referencing nested properties with javascript


Im sure there is a really simple solution to this, I just haven't found it
yet.

I have a property in my ActionForm which is of type Member (Member is a
simple Java object which encapsulates data such as first name, last name,
etc.). In my html page I have an html:text tag with the property value set
to member.firstName. The value from the form is populated just fine, but
when trying to reference the form field in javascript to give focus to the
field I get an error because it is interpreting "member" as an object (i.e.
- document.memberForm.member.firstName.focus()). I tried to escape the "."
between member and firstName but that didn't work. Any Ideas???



Referencing nested properties with javascript

2001-05-18 Thread TJM Todd McGregor

Im sure there is a really simple solution to this, I just haven't found it
yet.

I have a property in my ActionForm which is of type Member (Member is a
simple Java object which encapsulates data such as first name, last name,
etc.). In my html page I have an html:text tag with the property value set
to member.firstName. The value from the form is populated just fine, but
when trying to reference the form field in javascript to give focus to the
field I get an error because it is interpreting "member" as an object (i.e.
- document.memberForm.member.firstName.focus()). I tried to escape the "."
between member and firstName but that didn't work. Any Ideas???



RE: Visual editing when using tab libraries

2001-05-18 Thread TJM Todd McGregor

Good find, but it only works with UltraDev4 and Im using just DreamWeaver4.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 3:00 PM
To: [EMAIL PROTECTED]
Subject: RE: Visual editing when using tab libraries



Hey I should look before I post- there is a "new" zip file referenced on
Ted's site. cool.

http://www.shokker.com/ctlx/ctlx.zip


-Original Message-
From: Hayden,Robert IT BIP-US-R 
Sent: Friday, May 18, 2001 5:54 PM
To: [EMAIL PROTECTED]
Subject: RE: Visual editing when using tab libraries



There is some info here: 

http://www.husted.com/about/struts/

but as I recall only for earlier versions of dreamweaver. I would be very
interested to hear if there is a tag lib available for UltraDev4


-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 5:43 PM
To: [EMAIL PROTECTED]
Subject: Re: Visual editing when using tab libraries


PFE is about all you need for HTML editing.  :)

Check the archives for "dreamweaver".  I seem to recall a few messages about
this topic.

Pete

"Smith, Ryan" wrote:

> I would also like to hear any comments people might have on this issue. :)
>
> -Original Message-
> From: TJM Todd McGregor [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 18, 2001 10:48 AM
> To: '[EMAIL PROTECTED]'
> Subject: Visual editing when using tab libraries
>
> We are currently using Dreamweaver as our HTML tool. When using the html
tag
> library with Struts the form fields don't display, and some of the tags
are
> highlighted as errors in Dreamweaver because it does not recognize them.
Has
> anybody come across an extension for Dreamweaver that deals with this
issue?
> How are the rest of you doing your page development? Are you just using a
> text editor?
>
> Thanks for your input,
>
> Todd



Visual editing when using tab libraries

2001-05-18 Thread TJM Todd McGregor

We are currently using Dreamweaver as our HTML tool. When using the html tag
library with Struts the form fields don't display, and some of the tags are
highlighted as errors in Dreamweaver because it does not recognize them. Has
anybody come across an extension for Dreamweaver that deals with this issue?
How are the rest of you doing your page development? Are you just using a
text editor?

Thanks for your input,

Todd



RE: Philosophical question(s) related to STRUTS

2001-05-10 Thread TJM Todd McGregor

This article touches on some of the concerns you've raised.

http://www.sys-con.com/java/archives/0603/mcclanahan/index_i.html



-Original Message-
From: Mark Simms [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 9:44 AM
To: [EMAIL PROTECTED]
Subject: Philosophical question(s) related to STRUTS


1) Is SunMicro going to be supporting STRUTS from a financial and/or
marketing standpoint ?
I only saw one tiny, tiny mention of STRUTS in the JAVAONE outline of
presentations I just got in the mail.
That bothers me.

2) If the answer to #1 is unknown, will JSP/Java serverside professional
developers take the time to learn STRUTS and employee it in their web
applications ?

3) If the answer to #1 is unknown, will corporations and consulting firms
decide to committ to STRUTS in lieu of their own frameworks and methodology
?

I am wading thru the one-inch thick documentation and I must say I am really
impressed with the work done so far.
However, as a consultant, I must be concerned about spending too much time
with this if it is not going to become a popular or sanctioned approach in
the webdev marketplace.

Thoughts / feedback anyone ?





RE: Session management with Struts

2001-05-09 Thread TJM Todd McGregor

But that's exactly my problem. I have forms that may span multiple pages and
the ActionForm needs to be available across multiple requests. Any ideas

-Original Message-
From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 1:53 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Session management with Struts


Keep the ActionForms in 'request' scope. Then each page will have its own
ActionForm. The problme occurs when you want to store these forms in session
scope. 

cheers,
Amar..

-Original Message-
From: TJM Todd McGregor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 4:49 PM
To: [EMAIL PROTECTED]
Subject: Session management with Struts


I have a requirement that my application be able to allow multiple browser
windows, sharing the same HttpSession, to access two separate instances of a
business process simultaneously. For example, if I have a form that allows a
user to change their address information my application must allow them to
have two address forms open in separate browser windows using the same
HttpSession. To make a long story short, can Struts accommodate multiple
instances of an ActionForm in the same session? Any general comments on how
Struts does session management would also be welcome.

Thanks in advance for your response,

Todd McGregor



Session management with Struts

2001-05-09 Thread TJM Todd McGregor

I have a requirement that my application be able to allow multiple browser
windows, sharing the same HttpSession, to access two separate instances of a
business process simultaneously. For example, if I have a form that allows a
user to change their address information my application must allow them to
have two address forms open in separate browser windows using the same
HttpSession. To make a long story short, can Struts accommodate multiple
instances of an ActionForm in the same session? Any general comments on how
Struts does session management would also be welcome.

Thanks in advance for your response,

Todd McGregor