OT: NJMVCOpenSource User Group Starting up JSF Study Group

2004-09-28 Thread Menke, John
http://groups.yahoo.com/group/njmvcopensource/

We plan to meet once a month in Morristown NJ starting in October (Oct
10th).  We will be using the JSF In Action book as our textbook.  Currently
you can get an ebook version at Manning's MEAP site - it's best to have
textbook for course.

New Members are welcome.  We are trying to get an active membership.

Other topics this winter will include

Struts and JSF
Single Sign on With Liberty Alliance
Reporting with JasperReports and Struts

Sign up at the Yahoo site.

-jm

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



RE: html:link forward + hard coded parameter

2004-05-04 Thread Menke, John

 


-Original Message-
From: Susan Bradeen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 8:59 AM
To: Struts Users Mailing List
Subject: Re: html:link forward + hard coded parameter


"Dean A. Hoover" <[EMAIL PROTECTED]> wrote on 05/04/2004 04:15:19 
AM:

> Maybe I need to restate this...
> 
> Ok, so I am generating a page of "entries"
> that are clickable by the user, in which case
> something about that entry will be displayed.
> Its the classic search engine results type of thing.
> Anyway, so let's say I have a forward defined
> something like "show" => "/ShowResult.do".
> The way ShowResult knows what to show is
> by looking at a parameter (e.g., x). If I were
> just going to generate HTML (and not use the
> forward) I would output:
> 
> One
> Two
> etc.
> 
> I am trying to figure out how to hang the "?x=n"
> query string onto the forward using the html:link
> tag. Is this even possible? All the parameter oriented
> attributes to this tag seem to rely on bean related stuff.
> That's not what this is about. As stated in the title
> the parameter is "hard coded" (in the HTML that is).
> Anyone know how to do it, or do I need to write my own
> version of the html:link tag?
> 

Dean,

Since you are hard coding, does this not work for you?

One

OR I believe you can use the 'action' attribute instead of the 'page' 
attribute.

HTH,
Susan Bradeen

> Dean Hoover
> 
> Dean A. Hoover wrote:
> 
> > I want to use a forward I have defined
> > when the user clicks on one of several
> > on a page. A parameter indicates which
> > one the user clicked on. In html, it might
> > look like this:
> >
> > http://abc.com?x=1";>One
> > http://abc.com?x=2";>Two
> > http://abc.com?x=3";>Three
> >
> > How would I do this using the html:link tag.
> >
> > Dean Hoover
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

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



RE: Displaying an in-progress page while navigating from one page to another

2004-04-12 Thread Menke, John
I had problems doing this as gifs stop animating after a submit at least in
IE the only env i tested.  (assuming you submit to your action on first page
and gif is located on same page and you go directly to destination page.

what i ended up doing is finding an applet for my animation and using
dynamic html to display the applet when the user clicks the submit button.
the applet continues to animate until the page comes back from the submit
and looks like a progress bar.

-jm 

-Original Message-
From: Prasad, Kamakshya [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 11, 2004 11:58 PM
To: [EMAIL PROTECTED]
Subject: Displaying an in-progress page while navigating from one page
to another


Hi All,
 
In our system we have some pages which take lot of time to process
because of the complicated back end logic. So, sometimes the navigation
from one page to another page is very slow. 
What our client wants is to show an intermediate revolving gif with some
informative text in it before the next page loads.
 
What I heard that it's possible to put some links in header of HTML
which can show an intermediate page before the next page loads. Could
anyone let me know about HTML head option?
 
We are using struts framework for our web tier. So I want to know if
there are any options in struts to do so.
 
KP

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



RE: parsing indexed properties in my action - how to do mulitple row update

2004-04-02 Thread Menke, John
so you are using the dynaform?  only problem i have with this is setting the
size value. what if i don't know the size in advance?

-Original Message-
From: Liu, Anne I [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 6:06 PM
To: 'Struts Users Mailing List'
Subject: RE: parsing indexed properties in my action - how to do
mulitple row update


I've been trying to do the same thing, and this is the only solution I found
that works...

http://www.developer.com/java/ejb/article.php/2233591

> -Original Message-----
> From: Menke, John [SMTP:[EMAIL PROTECTED]
> Sent: Friday, April 02, 2004 4:53 PM
> To:   Struts (E-mail)
> Cc:   Desai, Sunny
> Subject:  parsing indexed properties in my action - how to do mulitple
> row  update
> 
> 
> i'm trying to do something like this in my jsp so i can do a mulitple row
> update in my Action
> 
> 
>   
>  "> name="lines" property="partNumber"/>
> "> name="lines" property="quantity"/>
> 
>  
>   property="countyCodeCollection" label="key" value="key" />
>   
> 
>
> 
> 
> 
> i have a bean
> 
> public class CollectonItem{
>   private String partNumber;
>   private String quantity;
>  private String countyCode;
> 
>   public String getPartNumber() {
> return partNumber;
>   }
> 
>   public void setPartNumber(String partNumber) {
> this.partNumber = partNumber;
>   }
> 
>   public String getQuantity() {
> return quantity;
>   }
> 
>   public void setQuantity(String quantity) {
> this.quantity = quantity;
>   }
> 
>  public String getCountyCode() {
> return countyCode;
>   }
> 
>   public void setCountyCode(String countyCode) {
> this.countyCode= countyCode;
>   }
> 
> 
> }
> 
> In my action how can i extract these values from the form and populate a
> collection of CollectionItem beans?  Do i have to use Dynaforms?  
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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

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



parsing indexed properties in my action - how to do mulitple row update

2004-04-02 Thread Menke, John

i'm trying to do something like this in my jsp so i can do a mulitple row
update in my Action


  
 ">
">

 
 
  

   



i have a bean

public class CollectonItem{
  private String partNumber;
  private String quantity;
 private String countyCode;

  public String getPartNumber() {
return partNumber;
  }

  public void setPartNumber(String partNumber) {
this.partNumber = partNumber;
  }

  public String getQuantity() {
return quantity;
  }

  public void setQuantity(String quantity) {
this.quantity = quantity;
  }

 public String getCountyCode() {
return countyCode;
  }

  public void setCountyCode(String countyCode) {
this.countyCode= countyCode;
  }


}

In my action how can i extract these values from the form and populate a
collection of CollectionItem beans?  Do i have to use Dynaforms?  




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



RE: [FRIDAY] humour

2004-04-02 Thread Menke, John
history of the letter

http://www.snopes.com/humor/letters/smithson.htm

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 4:19 PM
To: 'Struts Users Mailing List'
Subject: RE: [FRIDAY] humour


> > Smithsonian Institute
> > 207 Pennsylvania Avenue
> > Washington, DC 20078

The Smithsonian is NOT on Pennsylvania Avenue, neither NW nor SE, the two
quadrants where it runs. And any office in DC would include the quadrant
abbreviation in their address. The Castle - the Smithsonian's headquarters -
is on Jefferson Drive, and the Natural History museum, the most likely place
for this to have come from, is between Madison Drive and Constitution
Avenue.

I'm dubious.

--
Tim Slattery
[EMAIL PROTECTED]


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

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



RE: Migrating from Struts to Portlets

2004-04-01 Thread Menke, John
The eXo platform provides a JSR 168 certified portlet container with a
struts bridge

http://exo.sourceforge.net/multiproject/exo-struts-framework/


-Original Message-
From: Tambascio, Larry [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 2:58 PM
To: 'Struts Users Mailing List'
Subject: RE: Migrating from Struts to Portlets



Robert,

That's interesting, and certainly worth noting.  I'll keep my eyes out for
that.  I agree it sounds kind of vendor specific, but...  How did your team
get around that?  Or are they still battling there?

I'm curious, how did your portlets invoke the Struts actions??  Did you
write a central (controller?) portlet, and have config files indicate which
action it should call??  Did you write a portlet for each actions??  Forgive
me for prying.  Can you describe the approach your team took?

Regards,
-Larry

-Original Message-
From: Robert Augustyn [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 01, 2004 2:29 PM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: Migrating from Struts to Portlets


Larry,
We have concerted our app from Struts on Tomcat and
jboss to Struts on
Oracle Portal and jboss.
One problems which we run into was that some struts
jsp tags just would
not work.
I think this problem was Oracle Portal specific but I
do not know for
sure so this could be something to consider.
robert

-Original Message-
From: Tambascio, Larry
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 01, 2004 1:36 PM
To: '[EMAIL PROTECTED]'
Subject: Migrating from Struts to Portlets



Hi,

There's a rumbling in the not too distant future of my
application, and
it involves a portal implementation.  This rumbling is
approaching more
quickly than I fear Struts 2.0 (which I'm very excited
about) is.  I am
wondering if anyone else has already dealt with this
issue.

I'd like to be able to re-use my existing forms,
actions, and JSP pages
to render the portlets as much as possible.  It seems
like there should
be a fairly thin layer on top of struts that adapts
the portlet
environment to struts (or vice-versa).  At kind of a
low level, it seems
that having a portlet's processAction method delegate
to a specific
struts action should be easy to do.  Capturing the
actionForward from it
in the request scope so that the portlet's render
method could simply
include that page (forwards apparently
"non-deterministic" according to
the spec) also seems relatively trivial.  There would
have to be an
obvious refactoring of the JSP pages to use the
portlet tag's
"actionURL" to generate action URLs for forms.

So, who has converted a Struts based app to a portlet
presentation
method?? What were you able to reuse?  What worked and
what didn't??
What would you do differently if you had to do it over
again?
Obviously, I'd like to minimize refactoring (perhaps
building adapters)
and maximize reuse.  :-) And when Struts 2.0 DOES come
out, hopefully
I've done nothing to preclude myself from returning to
the fold, but
that's kind of a low priority.  Could a custom
RequestProcessor that
also implemented the Portlet interface do the job??  I
just honestly
don't know, and am hoping to leverage some communal
experience.

Thanks,
-Larry

This email and its attachments are confidential under
applicable law are

intended for use of the senders addressee only, unless
the sender
expressly agrees otherwise, or unless a separate
written agreement
exists between 
Iron Mountain and a recipient company governing
communications between
the 
parties and any data that may be so transmitted.
Transmission of email
over the Internet is not a secure communications
medium. If you are
requesting or have requested the transmittal of
personal data, as
defined in applicable privacy laws, by means of email
or in an
attachment to email, you may wish to select a more
secure alternate
means of transmittal that better supports your
obligations to protect
such personal data. If the recipient of this 
message is not the recipient named above, and/or you
have received this
email in error, you must take no action based on the
information in this
email. You are hereby notified that any dissemination,
misuse or copying
or 
disclosure of this communication by a recipient who
has received this
message in error is strictly prohibited. If this
message is received in
error please 
return this email to the sender and immediately
highlight any error in 
transmittal. 
Thank You


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



__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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

This email and its attachments are confidential under applicable law are

RE: Struts boooks: remommendations?

2004-04-01 Thread Menke, John
imo Struts In Action seemed to contain more useful real world information
than other struts books i have purchased

-Original Message-
From: William T Hansley [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 10:02 AM
To: Struts Users Mailing List
Subject: Re: Struts boooks: remommendations?


I second this comment. The Cavaness It's not bad as a intermediate- to 
advanced-level book, but I tried to learn from this one first and found it
next to impossible. The examples are few and far between, and not 
explained from the basics up. They seem to assume some knowledge. And 
there's no examples or references for the tag libraries, and some of the 
tag concepts, especially when you're first learning, are 
next-to-impossible to glean from context.
My two favorites for learning Struts were "Mastering Jakarta Struts" by 
Goodwill (Wiley published), and "Struts Kickstart" by Turner and Bedell 
(Sams published). Between these two, I took off running and got my first 
app done.
Take care!
-Bill
Jan Normann Nielsen <[EMAIL PROTECTED]>
04/01/2004 09:48 AM
Please respond to "Struts Users Mailing List"
 
To: Struts Users Mailing List <[EMAIL PROTECTED]>
cc: 
Subject:Re: Struts boooks: remommendations?
Rick Reumann wrote:
>
>I think "Programming Jakarta Struts" by 
>
>Chuck Cavaness is a bit better for a beginner.
>
I personally don't like this book. I think the Struts tag libraries are 
poorly documented (and differences for 1.0 which I'm using are not 
described) in this book and has few if no examples of usage. You are 
better off reading the online documentation. Just my EUR2.
Best regards,
Jan Nielsen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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



RE: One Action class but more than one functionality

2004-03-30 Thread Menke, John
In our base action classes we have elected not to implement the execute
method making them abstract actions instead.  this way you can include
protected methods in these classes to do validation and call them when
needed.  implementing exeucte method in base class seems too limiting.  you
could call super.execute() in your execute method but this is sloppy in my
opinion.  I would rather have a abstract super class.


-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 3:02 PM
To: 'Struts Users Mailing List'
Subject: RE: One Action class but more than one functionality


That's right.
But I have a problem. I have a superclass that all other actions extend and
this class only implement execute method with generic validations and so on.
So, I need the execute method being called, understand?
Thanks.
-Original Message-
From: Prabhat Kumar (IT) [mailto:[EMAIL PROTECTED]
Sent: terça-feira, 30 de março de 2004 17:33
To: Struts Users Mailing List
Subject: RE: One Action class but more than one functionality
look at the org.apache.struts.actions.DispatchAction class. It is exactly
for the use case you described.
-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 11:28 AM
To: 'Struts Users Mailing List'
Subject: One Action class but more than one functionality
Hello.
I have an action class to create, edit and remove a Person, for example. 
Is this a poor decision? I mean, should I create 3 action classes, one for
create, another for edit and another one for remove?
Does struts have a mechanism to help me in that?
Thanks all.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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



RE: One Action class but more than one functionality

2004-03-30 Thread Menke, John
we try to avoid the session as much as possible and wherever possible only
pass information via url encoded params, hidden fields or with a class
called ParameterActionForward it allows you to add request params to a
forward.  I originally found on the list and have reposted several times.
We also use ted husted's tip http://husted.com/struts/tips/001.html so that
we can place buttons on page that will indicate what action to take..  Using
a combination of the buttons and the ParamActionForward allows us to respond
to events without passing around an action param indicating the actions mode
(similar to how the dispatch action would handle).


-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 11:52 AM
To: Struts Users Mailing List
Subject: Re: One Action class but more than one functionality


Sure but I found that you need to always need to scope to session. 
And/or have links in you forms. Or create a javascript dependency 
changing the action.

or have you a way aorund this problem using actions?

On 30 Mar 2004, at 18:33, Menke, John wrote:

> we have found that implementing 1 action for add 1 action for edit 
> etc... is
> better from the standpoint of maintainability.  (it's easier to find 
> the
> edit code if it's in the edit Action) we avoid code duplication by 
> making
> abstract actions that contain the duplicated code
>
> ie.
>
> AbstractPersonAction - contains common code for person creation update
> delete, etc...
> AddPersonAction - add specific code
> EditPersonAction - edit specific code
>
>
> btw.  we also try to keep 3 seperate jsps.  this may seem like more 
> work but
> the complications that can arise from having too many  tags in 
> your
> jsps to switch between modes outweigh
> the addition overhead of extra jsps in the long run.
>
> -Original Message-
> From: Joao Batistella [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 30, 2004 11:28 AM
> To: 'Struts Users Mailing List'
> Subject: One Action class but more than one functionality
>
>
> Hello.
> I have an action class to create, edit and remove a Person, for 
> example.
> Is this a poor decision? I mean, should I create 3 action classes, one 
> for
> create, another for edit and another one for remove?
> Does struts have a mechanism to help me in that?
> Thanks all.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

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



RE: One Action class but more than one functionality

2004-03-30 Thread Menke, John
we have found that implementing 1 action for add 1 action for edit etc... is
better from the standpoint of maintainability.  (it's easier to find the
edit code if it's in the edit Action) we avoid code duplication by making
abstract actions that contain the duplicated code

ie.

AbstractPersonAction - contains common code for person creation update
delete, etc...
AddPersonAction - add specific code
EditPersonAction - edit specific code


btw.  we also try to keep 3 seperate jsps.  this may seem like more work but
the complications that can arise from having too many  tags in your
jsps to switch between modes outweigh
the addition overhead of extra jsps in the long run.  

-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 11:28 AM
To: 'Struts Users Mailing List'
Subject: One Action class but more than one functionality


Hello.
I have an action class to create, edit and remove a Person, for example. 
Is this a poor decision? I mean, should I create 3 action classes, one for
create, another for edit and another one for remove?
Does struts have a mechanism to help me in that?
Thanks all.

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



RE: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Menke, John
>>Hey! that was my idea! ;-)

+1 to Larry's idea :) sorry didn't read the thread :)


-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 10:31 AM
To: [EMAIL PROTECTED]
Subject: RE: [OT] request object w/ response.sendRedirect


>>> [EMAIL PROTECTED] 03/30/04 7:56 AM >>>
> store information in a db that both webapps have access to.  

Hey! that was my idea! ;-)

Another option someone else mentioned was to create a form in a jsp that
does a post submit to the page you are redirecting to using javascript.

I think those are your two options. I guess if you don't have a shared
database, and cannot use javascript, another option would be to set up a
web service, tell the page you are redirecting to how to get data from
there via the query string. Seems like a heck of a lot of work, but if
those are your constraints...

Larry


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

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



RE: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Menke, John
store information in a db that both webapps have access to.  

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 9:45 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] request object w/ response.sendRedirect


OK - I can see how using cookies in this case is less than desirable
(thanks Craig)

So, am I just screwed?  The problem with returning data on the query string
is that I can easily exceed the 2k limit;  using session variables won't
work either because I can be called from separate instances of Tomcat or
even IIS running on distinct servers.  And because of this, I have to use
response.sendRedirect() which means I can't put objects in the request.

Any other ideas?

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Craig McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 29, 2004 8:52 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] request object w/ response.sendRedirect
> 
> 
> Jerry Jalenak wrote:
> 
> >
> >
> >I had headed down the cookie path in the past 1/2 hour or 
> so.  Craig - can
> >you elaborate on the potential problems of using cookies 
> across hosts?
> >
> >
> >  
> >
> In order for this to work, your "from" machine is going to have to 
> create a cookie that looks like it came from the "to" machine so that 
> the cookie value will be included on the subsequent request.  Lots of 
> people will configure their browser security policies to reject such 
> third party cookies ... to say nothing of how many people 
> just disable 
> cookies on general principle, and would even reject "first party" 
> cookies that returned information to the same host.
> 
> >Thanks
> >
> >Jerry Jalenak
> >  
> >
> Craig
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential
and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible
for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


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

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