Re: [OT] invoking another app w/o include or forward

2005-02-03 Thread Erik Weber
Great idea. Thanks.
Erik
Leon Rosenberg wrote:
Why don't you make it via URLConnection to the another application? 
			URL myURL = new
URL("administrative_application_url);
			URLConnection con = myURL.openConnection();
?
Regards
Leon

 

-Ursprüngliche Nachricht-
Von: Erik Weber [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 4. Februar 2005 08:33
An: Struts Users Mailing List
Betreff: [OT] invoking another app w/o include or forward

I have a Struts Action that needs to invoke another Servlet 
application running in the same container (but in a different 
Web app) to perform an administrative task. The Action does 
not need to include the response from this other Servlet in 
its response to the user. I just want to invoke it and then 
proceed with returning an ActionForward as usual. 
What would be the best way to accomplish this? Probably JMS 
would be a better solution but right now I need something I 
can get working quickly. I thought of exposing methods on the 
other Servlet but that doesn't seem any better.

Thanks,
Erik
-
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]


Want to know abt patterns in Struts.

2005-02-03 Thread Akshay Pandit
Hi to all,

I would like to know how many j2ee patterns does struts framework make use of. 
And also one more thing, I want to insert  UNICODE data in Database,
I've created the database with unicode support, what changes are
needed on struts end to make the application in UNICODE .

Thanks before Hand

-- 
Warm regards.

Akshay Pandit
Email  : [EMAIL PROTECTED]

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



Re: [OT] invoking another app w/o include or forward

2005-02-03 Thread Leon Rosenberg
Why don't you make it via URLConnection to the another application? 
URL myURL = new
URL("administrative_application_url);
URLConnection con = myURL.openConnection();
?
Regards
Leon

> -Ursprüngliche Nachricht-
> Von: Erik Weber [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 4. Februar 2005 08:33
> An: Struts Users Mailing List
> Betreff: [OT] invoking another app w/o include or forward
> 
> I have a Struts Action that needs to invoke another Servlet 
> application running in the same container (but in a different 
> Web app) to perform an administrative task. The Action does 
> not need to include the response from this other Servlet in 
> its response to the user. I just want to invoke it and then 
> proceed with returning an ActionForward as usual. 
> What would be the best way to accomplish this? Probably JMS 
> would be a better solution but right now I need something I 
> can get working quickly. I thought of exposing methods on the 
> other Servlet but that doesn't seem any better.
> 
> Thanks,
> Erik
> 
> 
> -
> 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] invoking another app w/o include or forward

2005-02-03 Thread Leon Rosenberg
Why don't you make it via URLConnection to the another application? 
URL myURL = new
URL("administrative_application_url);
URLConnection con = myURL.openConnection();
?
Regards
Leon

> -Ursprüngliche Nachricht-
> Von: Erik Weber [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 4. Februar 2005 08:33
> An: Struts Users Mailing List
> Betreff: [OT] invoking another app w/o include or forward
> 
> I have a Struts Action that needs to invoke another Servlet 
> application running in the same container (but in a different 
> Web app) to perform an administrative task. The Action does 
> not need to include the response from this other Servlet in 
> its response to the user. I just want to invoke it and then 
> proceed with returning an ActionForward as usual. 
> What would be the best way to accomplish this? Probably JMS 
> would be a better solution but right now I need something I 
> can get working quickly. I thought of exposing methods on the 
> other Servlet but that doesn't seem any better.
> 
> Thanks,
> Erik
> 
> 
> -
> 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] invoking another app w/o include or forward

2005-02-03 Thread Erik Weber
Hmm should I have the administrative Servlet set a "command" object in 
the naming server and then let my Struts action look it up with JNDI?

Erik Weber wrote:
I have a Struts Action that needs to invoke another Servlet 
application running in the same container (but in a different Web app) 
to perform an administrative task. The Action does not need to include 
the response from this other Servlet in its response to the user. I 
just want to invoke it and then proceed with returning an 
ActionForward as usual. What would be the best way to accomplish this? 
Probably JMS would be a better solution but right now I need something 
I can get working quickly. I thought of exposing methods on the other 
Servlet but that doesn't seem any better.

Thanks,
Erik
-
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]


[OT] invoking another app w/o include or forward

2005-02-03 Thread Erik Weber
I have a Struts Action that needs to invoke another Servlet application 
running in the same container (but in a different Web app) to perform an 
administrative task. The Action does not need to include the response 
from this other Servlet in its response to the user. I just want to 
invoke it and then proceed with returning an ActionForward as usual. 
What would be the best way to accomplish this? Probably JMS would be a 
better solution but right now I need something I can get working 
quickly. I thought of exposing methods on the other Servlet but that 
doesn't seem any better.

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


Customizing application resources per user

2005-02-03 Thread Ara Vartanian
Hello,

I had a design question about customizing message
resources per user.

The obvious route for such a thing would be to create
a custom MessageResource object to implement the
services I need. This is easy enough if the the
message resources were only going to be used at the
Action level, as I have access to the servlet context
from there and can determine which user is logged in.
But what about on the JSP page itself. Specifically,
how could I rig the  tag to call a class
which has access to the servlet context and thus user
information? As far as I can tell, the instance of
MessageResources either created or obtained by
 is more or less stateless.

Any help or suggestions or insight would be greatly
appreciated.

Yours,

Ara Vartanian

=




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



Re: wizard form and checkboxes that won't turn off

2005-02-03 Thread James Mitchell
The problem is that the browser submits a value of "on", when you check a 
checkbox and submit the form.  However, if you uncheck the checkbox and 
submit the form, the browser does _not_ submit "off" or "false" or anything. 
So, with your form sitting in session, how will it know that you want it 
"off"?

Here's how:  you need to implement reset() method on your form.  In that 
method you need to set the field that is backing the checkbox to "false" or 
"off".  When Struts processes the request, it will call reset, then 
repopulate based on requesteffectively giving the _appearance_ that the 
browser sent "off".

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - 
From: "Janice" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, February 03, 2005 6:32 PM
Subject: wizard form and checkboxes that won't turn off

Could somebody please refer me to a solution to this?
I have a form bean (session-scoped) that is displayed over 3 pages.  There
are "back" and "next" buttons.  Once a checkbox is selected and the user has
moved to another page, it can't be cleared again.  I have read that this is
because the checkbox item is now in the session and simply unchecking it
does not remove it from the session.  What I haven't found is a solution or
workaround.
I am using struts 1.1.
Thanks very much in advance,
J

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


Re: ActionError / ActionMessage

2005-02-03 Thread Corey Probst
> If so does anyone know why locale is now deprecated?

A locale attribute of true stores a Locale object in the session and
creates that session if it doesn't exist.  This is not a good thing
for apps that don't support them.

Use the lang attribute to correctly accomplish this.

http://struts.apache.org/userGuide/struts-html.html#html

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



Re: ActionError / ActionMessage

2005-02-03 Thread Tim Christopher
Am I right in thinking that HtmlTag relates to the  element?
>> http://struts.apache.org/api/org/apache/struts/taglib/html/HtmlTag.html

If so does anyone know why locale is now deprecated?

On Fri, 04 Feb 2005 02:10:31 +0100, Laurent <[EMAIL PROTECTED]> wrote:
> Tim Christopher wrote:
> > Hi,
> >
> > Can anyone let me know when an ActionError should be used in place of
> > an ActionMessage, or visa versa.  It seems like the ActionMessage is
> > preferred as it does not encourage markup to be placed within the
> > resources file.
> >
> > Does this mean I should always use the ActionMessage, or does the
> > ActionError come in useful for certain situations?
> 
> Yes. ActionError is deprecated.
> http://struts.apache.org/api/org/apache/struts/action/ActionError.html
> 
> However you may still use 'ActionErrors' to store you 'ActionMessage's
> that represent an error, but note that
> saveErrors(HttpServletRequest, ActionErrors)
> is deprecated in favour of
> saveErrors(HttpServletRequest, ActionMessages)
> (which still has 'Errors' in it's name!)
> This means you probably have to call it with
> saveErrors(request, (ActionMessages)actionErrors)
> (as ActionErrors is a subclass of ActionMessages anyway!)
> (ActionError was also a subclass of ActionMessage)
> 
> All this seems odd, so please correct me if I'm wrong.
> 
> -
> 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: ActionError / ActionMessage

2005-02-03 Thread Corey Probst
> 
> Does this mean I should always use the ActionMessage, or does the
> ActionError come in useful for certain situations?
> 

ActionError was deprecated in version 1.2.0.  Even if you are using a
version prior to this you should still use ActionMessage for future
considerations.  ActionErrors would be deprecated but it is part of
the ActionForm.validate() signature.

http://wiki.apache.org/struts/StrutsDeprecatedActionErrors

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



Re: ActionError / ActionMessage

2005-02-03 Thread Laurent
Tim Christopher wrote:
Hi,
Can anyone let me know when an ActionError should be used in place of
an ActionMessage, or visa versa.  It seems like the ActionMessage is
preferred as it does not encourage markup to be placed within the
resources file.
Does this mean I should always use the ActionMessage, or does the
ActionError come in useful for certain situations?
Yes. ActionError is deprecated.
http://struts.apache.org/api/org/apache/struts/action/ActionError.html
However you may still use 'ActionErrors' to store you 'ActionMessage's 
that represent an error, but note that
saveErrors(HttpServletRequest, ActionErrors)
is deprecated in favour of
saveErrors(HttpServletRequest, ActionMessages)
(which still has 'Errors' in it's name!)
This means you probably have to call it with
saveErrors(request, (ActionMessages)actionErrors)
(as ActionErrors is a subclass of ActionMessages anyway!)
(ActionError was also a subclass of ActionMessage)

All this seems odd, so please correct me if I'm wrong.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: I have a jsp. that has two included jsp's that are actually struts actions but the response only ret

2005-02-03 Thread Kris Schneider
Sort of. Remember, the "normal" result of a Struts action is the equivalent 
of RequestDispatcher.forward(). So, I imagine you're also seeing an 
IllegalStateException as well. You've got the equivalent of the following:

includer.jsp:
-
<@% page contentType="text/plain" %>
Before forwarder1:

After forwarder1:
Before forwarder2:

After forwarder2:
forwarder1.jsp:
---

forwarder2.jsp:
---

content1.jsp:
-
content1.jsp
content2.jsp:
-
content2.jsp
Which should generate:
content1.jsp
Along with raising an IllegalStateException.
Eric Lemle wrote:
I have a jsp. that has two included jsp's that are actually struts
actions but the response only returns the first one.
I have tried flush="false" (Doesn't matter)
I have tried the 






Eric D. Lemle
Senior Programmer / Analyst
Intermountain Health Care
36 South State Street, Suite 1100
Salt Lake City, Utah 84111 
United States of America (USA)
(801) 442-3688 -- e-mail: [EMAIL PROTECTED]
--
Kris Schneider 
D.O.Tech   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [ANN] Free JSP Editor for Eclipse

2005-02-03 Thread Carlos Chang
Cedric,

After the installation, when you run NitroX, if you previously installed
a trial some time ago, it should have prompted you and provided a link
to activate.  I'm not sure why it didn't.  I'll check with QA.  

In the meantime, you can go here:  https://devclub.m7.com/startLogin.do
and click on "Activate JSP Editor" button. Fill out the form, and you
will receive via email, an activation key that will enable the JSP
Editor. 

Note that if you've previously installed a trial version of NitroX, the
Struts capabilities won't be enabled for - only the JSP Editor.

I hope this helps.  Sorry for the inconvenience.

-Carlos

> -Original Message-
> From: Cedric Levieux [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 03, 2005 12:46 AM
> To: Struts Users Mailing List
> Subject: Re: [ANN] Free JSP Editor for Eclipse
> 
> I download the JSP editor free license, the html server doesn't ask me
for
> an email so how can i receive a lice / serial ID ? ^^
> 
> I use Eclipse 3.0 RC1
> 
> Hope it will help,
> 
> Cedric
> 
> - Original Message -
> From: "Carlos Chang" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Thursday, February 03, 2005 4:11 AM
> Subject: RE: [ANN] Free JSP Editor for Eclipse
> 
> 
> Cedric,
> 
> On the second point, can you elaborate a bit more?  It's asking you
for
> a serial?  Which version did you download? (JSP Editor, JSP IDE,
Struts
> IDE?)  Did you get an activation key via email?
> 
> Thanks,
> 
> -Carlos
> 
> > -Original Message-
> > From: Cedric Levieux [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 02, 2005 2:40 PM
> > To: Struts Users Mailing List
> > Subject: Re: [ANN] Free JSP Editor for Eclipse
> >
> > Two things:
> >
> > First, my Eclipse has its name changed and I'm a bit angry with that
> > Second, does it ask me for a serial when I launch my Eclipse and it
> has a
> > lot of problem to be launched ?
> >
> > Regards,
> >
> > Cedric
> >
> > - Original Message -
> > From: "Carlos Chang" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" 
> > Sent: Wednesday, February 02, 2005 11:09 PM
> > Subject: [ANN] Free JSP Editor for Eclipse
> >
> >
> > Dear Java Developer,
> >
> > For a limited time, M7 is offering the NitroX JSP Editor for Eclipse
> for
> > FREE!*
> > Download: http://www.m7.com/free
> >
> > NitroX has received top scores from industry reviewers such as SD
> > Magazine, CRN, JavaBoutique, and is officially a finalist for the
> > upcoming Jolt Product Excellence Award for Best Web Development Tool
> of
> > the Year.
> >
> > The NitroX JSP Editor provides the following features:
> >
> > * Professional JSP source editor
> > * Simultaneous 2-way source and visual JSP editors
> > * JSP 2.0 (including EL) - Unequaled!
> > * JSTL
> > * Grapical editor for TLDs
> > * Graphical editor for web.xml
> > * Code completion
> > * Custom tag library support
> > * + much more
> > * and it's FREE!
> >
> > Act now because this offer is available only for a limited time.
> >
> > Thank you,
> >
> >
> > M7 Team
> >
> > * Restrictions apply; please see license agreement for details.
> > FREE = No cost, gratuit, gratis, frei, libero...ok, there is a
catch;
> > this offer is only for a limited time. ;-)
> >
> >
> >
> >
> >
> >
-
> > 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]


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



RE: Help with logic tags, and commas please.

2005-02-03 Thread Mick.Knutson
Can someone please help me to get the print to work.
I keep trying to use the fmt, or the c:out tags, but nothing is actually 
printing the value of ${product} as converted from the ApplicationResources 
value.


Mick Knutson
Wells Fargo Business Direct
(415) 222-1020

"This message may contain confidential and/or privileged information. If you 
are not the addressee or authorized to receive this for the addressee, you must 
not use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation."




-Original Message-
From: Kishore Senji [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 03, 2005 1:23 PM
To: Struts Users Mailing List
Subject: Re: Help with logic tags, and commas please.


>value="${creditApplicationListDto.displayProducts[${key}]}"/>,

I would return a collection from  teh DTO for only true values. The
reason is JSTL cannot invoke the keySet() method on the Map (Since the
method doesn't confine to JavaBean specification)

public Collection getDisplayProducts() {
   Collection c = new ArrayList();
   if(Boolean.TRUE.equals(this.getBusinessLine())){
   c.add("label.applist.bln");
   }
   if(Boolean.TRUE.equals(this.getBusinessCard())){
   c.add("label.applist.bcard");
   }
   if(Boolean.TRUE.equals(this.getSecuredCard())){
   c.add("label.applist.seccard");
   }
   if(Boolean.TRUE.equals(this.getEquipmentExpress())){
   c.add("label.applist.equipmentExpress");
   }
   if(Boolean.TRUE.equals(this.getSbaLineOfCredit())){
   c.add("label.applist.sBALineOfCredit");
   }
   if(Boolean.TRUE.equals(this.getSbaTermLoan())){
   c.add("label.applist.sBATermLoan");
   }
   if(Boolean.TRUE.equals(this.getBusinessLoan())){
   c.add("label.applist.BusinessLoan");
   }

   if(c.size() < 1 ) {
   c.add("label.applist.NoProducts");
   }
   return c;
   }


  

  ,

  

  
  


Assuming that "label.applist.*" is only a key to the actual label in
the properties file you might want to use  to render the
actual label

-
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: [ANN] Free JSP Editor for Eclipse

2005-02-03 Thread Carlos Chang
Erik,

This is due to the previous installation.  

The licensing scheme detects a deactivation and thinks it's expired.
You should be getting a prompt to activate or purchase.  Click
"activate" and it will take you to a registration page where you can
provide an email where the activation key will be sent.  Enter the
id/serial key and the JSP Editor should be activated.  Note that only
the JSP Editor features will be available.  

In the case above, if you've never installed a trial of NitroX, all the
features for JSP & Struts are active for a trial period, but you can get
the activation key for the JSP Editor for the timeframe of the promotion
for the Free JSP Editor.

I hope this helps.  Sorry for the inconvenience.

-Carlos

> -Original Message-
> From: Erik Meade [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 02, 2005 10:47 PM
> To: Struts Users Mailing List
> Subject: RE: [ANN] Free JSP Editor for Eclipse
> 
> Same thing happened to me.  Right after the dialog that had "This
> trial has already been activated" I'm asked for an order id and a
> serial number.  I had already installed and uninstalled the 15 day
> trial weeks ago, btw.
> 
> On Wed, 2005-02-02 at 19:11, Carlos Chang wrote:
> > Cedric,
> >
> > On the second point, can you elaborate a bit more?  It's asking you
for
> > a serial?  Which version did you download? (JSP Editor, JSP IDE,
Struts
> > IDE?)  Did you get an activation key via email?
> >
> > Thanks,
> >
> > -Carlos
> >
> > > -Original Message-
> > > From: Cedric Levieux [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 02, 2005 2:40 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: [ANN] Free JSP Editor for Eclipse
> > >
> > > Two things:
> > >
> > > First, my Eclipse has its name changed and I'm a bit angry with
that
> > > Second, does it ask me for a serial when I launch my Eclipse and
it
> > has a
> > > lot of problem to be launched ?
> > >
> > > Regards,
> > >
> > > Cedric
> > >
> > > - Original Message -
> > > From: "Carlos Chang" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" 
> > > Sent: Wednesday, February 02, 2005 11:09 PM
> > > Subject: [ANN] Free JSP Editor for Eclipse
> > >
> > >
> > > Dear Java Developer,
> > >
> > > For a limited time, M7 is offering the NitroX JSP Editor for
Eclipse
> > for
> > > FREE!*
> > > Download: http://www.m7.com/free
> > >
> > > NitroX has received top scores from industry reviewers such as SD
> > > Magazine, CRN, JavaBoutique, and is officially a finalist for the
> > > upcoming Jolt Product Excellence Award for Best Web Development
Tool
> > of
> > > the Year.
> > >
> > > The NitroX JSP Editor provides the following features:
> > >
> > > * Professional JSP source editor
> > > * Simultaneous 2-way source and visual JSP editors
> > > * JSP 2.0 (including EL) - Unequaled!
> > > * JSTL
> > > * Grapical editor for TLDs
> > > * Graphical editor for web.xml
> > > * Code completion
> > > * Custom tag library support
> > > * + much more
> > > * and it's FREE!
> > >
> > > Act now because this offer is available only for a limited time.
> > >
> > > Thank you,
> > >
> > >
> > > M7 Team
> > >
> > > * Restrictions apply; please see license agreement for details.
> > > FREE = No cost, gratuit, gratis, frei, libero...ok, there is a
catch;
> > > this offer is only for a limited time. ;-)
> > >
> > >
> > >
> > >
> > >
> > >
-
> > > 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]


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



Re: wizard form and checkboxes that won't turn off

2005-02-03 Thread jelything

Thanks Eric,

I wasn't sure exactly where you meant me to put that, so I tried it here:

<..snip..>
  public ActionForward nextForm(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response) {

DynaValidatorForm dvf = (DynaValidatorForm)form;
int pageNumber = ((Integer)dvf.get("page")).intValue();

ActionErrors errors = submissionFormValidate(mapping, form,
request, pageNumber);

if (!errors.isEmpty()) {
  saveErrors(request, errors);
  return mapping.findForward("form" + String.valueOf(pageNumber));
}   

pageNumber = pageNumber + 1;   
String target = "form" + String.valueOf(pageNumber);
dvf.set("page", new Integer(pageNumber));
//return (mapping.findForward(target));
ActionForward cleanDisplay = mapping.findForward(target);
cleanDisplay.setRedirect(true);
return cleanDisplay;
  }   
<..end of snip..>

But all I get is a 500 error:
java.lang.IllegalStateException: Configuration is frozen

Was there somewhere else I should put it?

J

--- In [EMAIL PROTECTED], "Eric Lemle" <[EMAIL PROTECTED]> wrote:
> this might help, in your action  not sure if this is in 1.1 either.
> 
>  ActionForward cleanDisplay= new ActionForward("add your code here");
>  cleanDisplay.setRedirect(true);
>  return cleanDisplay;
> 
> Eric D. Lemle
> Senior Programmer / Analyst
> Intermountain Health Care
> 36 South State Street, Suite 1100
> Salt Lake City, Utah 84111 
> United States of America (USA)
> (801) 442-3688 -- e-mail: [EMAIL PROTECTED]
> 
> 
> >>> [EMAIL PROTECTED] 2/3/2005 4:32:14 PM >>>
> Could somebody please refer me to a solution to this?  
>  
> I have a form bean (session-scoped) that is displayed over 3 pages. 
> There
> are "back" and "next" buttons.  Once a checkbox is selected and the
> user has
> moved to another page, it can't be cleared again.  I have read that
> this is
> because the checkbox item is now in the session and simply unchecking
> it
> does not remove it from the session.  What I haven't found is a
> solution or
> workaround.
>  
> I am using struts 1.1.
>  
> Thanks very much in advance,
> J
> 
> -
> 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: Validate Array in Struts

2005-02-03 Thread Manisha Sathe
Few days back i also posted the query much similar to yrs, i am attaching the 
reply i got from Matt  below for yr reference. Hope this helps u 
 
regards
Manisha
 
Manisha Sathe wrote:
> I have a form whose fields are from an dynamic customer array. I 
display Customer name and giving i/p field  for Amount to enter. 
>  
> The JSP might contain 2-3 text fields called amt against different 
customers (I am identifying it with IDs)
>  
> My form bean is something like this,
>  
> public class AddressForm extends ValidatorForm
> //ActionForm
> {
> ...
>   private String[] amt;
>  ...
>  public String[] getAmt()
>  {
>   return this.amt;
>  }
>  public void setAmt(String[] amt)
>  {
>   this.amt = amt;
>  }
>  
> ...
> }
>  
> I am using Validator, 
>  
> validation.xml is something like this
>  
>  depends="required">
> 
> 
> 
> 

>  
> 1) When validation fails and it comes back to jsp form -BUT  the 
bydefault values of Amount is something like : [Ljava.lang.String;@f2da21
>  
> I understand this is because i have declared it as an array. But how 
to get rid of this. 
>  
> 2)I face a problem when i also want to validate as float. As i/p 
taken is amt[1], amt[2] ... it never gets validated as float where as i 
want to validate individual i/p text field as float.
>  
> How can i achieve it ?
>  


Manisha - I think these messages in the archives are very similar to 
your problem.

http://www.mail-archive.com/user@struts.apache.org/msg18871.html
http://www.mail-archive.com/user@struts.apache.org/msg18895.html
http://www.mail-archive.com/user@struts.apache.org/msg18925.html

As well as this bug report:
http://issues.apache.org/bugzilla/show_bug.cgi?id=32978


Basically you can't validate each element of an array of String[] with 
the validator, because it does not have getters/setters for its value. 
Your choices are to use the validate method in the action form to do 
the 
validation, or to setup a new class with an amount property and 
getters/setters for the amounts, then use an array of that instead of 
String[]


Matt


Paulo César M. Jeveaux <[EMAIL PROTECTED]> wrote:
Hi

I have html form which containes product name and product no. these
product name and product number can be in 'N' Numbers. For this i have
taken Array of Product Names and Product Number. But i am unable to
validate these arrays . Can You please tell me how we can validate
array.

T+

-- 
/**
* @author Paulo César M. Jeveaux
* Java Consultant
* @version 21.0
* http://www.portaljava.com
* @deprecated
*/

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



-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

ActionError / ActionMessage

2005-02-03 Thread Tim Christopher
Hi,

Can anyone let me know when an ActionError should be used in place of
an ActionMessage, or visa versa.  It seems like the ActionMessage is
preferred as it does not encourage markup to be placed within the
resources file.

Does this mean I should always use the ActionMessage, or does the
ActionError come in useful for certain situations?

Tim

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



Conditionaly setting an element attribute

2005-02-03 Thread Laurent
Hi,
I need to do something like this:

  
${colspan}
  
  
loads more JSTL tags
  

i.e. set the colspan attribute of the  element only if colspan is not 1.
This doesn't work as  must be a direct subelement of 
 (here there is  in between).
How should I do this?

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


Re: wizard form and checkboxes that won't turn off

2005-02-03 Thread Eric Lemle
this might help, in your action  not sure if this is in 1.1 either.

 ActionForward cleanDisplay= new ActionForward("add your code here");
 cleanDisplay.setRedirect(true);
 return cleanDisplay;

Eric D. Lemle
Senior Programmer / Analyst
Intermountain Health Care
36 South State Street, Suite 1100
Salt Lake City, Utah 84111 
United States of America (USA)
(801) 442-3688 -- e-mail: [EMAIL PROTECTED]


>>> [EMAIL PROTECTED] 2/3/2005 4:32:14 PM >>>
Could somebody please refer me to a solution to this?  
 
I have a form bean (session-scoped) that is displayed over 3 pages. 
There
are "back" and "next" buttons.  Once a checkbox is selected and the
user has
moved to another page, it can't be cleared again.  I have read that
this is
because the checkbox item is now in the session and simply unchecking
it
does not remove it from the session.  What I haven't found is a
solution or
workaround.
 
I am using struts 1.1.
 
Thanks very much in advance,
J

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



wizard form and checkboxes that won't turn off

2005-02-03 Thread Janice
Could somebody please refer me to a solution to this?  
 
I have a form bean (session-scoped) that is displayed over 3 pages.  There
are "back" and "next" buttons.  Once a checkbox is selected and the user has
moved to another page, it can't be cleared again.  I have read that this is
because the checkbox item is now in the session and simply unchecking it
does not remove it from the session.  What I haven't found is a solution or
workaround.
 
I am using struts 1.1.
 
Thanks very much in advance,
J


Re: logic TagLib and getRemoteUser()

2005-02-03 Thread Niall Pemberton
Jakarta Taglibs appears to have such a thing:

http://jakarta.apache.org/taglibs/doc/request-doc/intro.html
http://jakarta.apache.org/taglibs/doc/request-doc/request-1.0/index.html#request

So you should be able to do what you want, i.e











Niall

- Original Message - 
From: "Frank Schaare" <[EMAIL PROTECTED]>
Sent: Thursday, February 03, 2005 9:53 PM
>
> >> Hi,
>
> > Do you mean that you want to display one image if the user is logged in
> > and a different image if the user is not logged in?
>
> Exactly. <%=request.getRemoteUser()%> is null when the user ist not
> loged in. If so <%=request.getRemoteUser()%> gives me the string of the
> username.
>
> IÂm looking for something like this:
>  //does not work !
> 
> 
>  //does not work !
> 
> 
>
> JSPÂs have easy access to the implicit objects like the request. There
> must be a counterpart in struts taglibs or am i wrong ???



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



I have a jsp. that has two included jsp's that are actually struts actions but the response only ret

2005-02-03 Thread Eric Lemle
I have a jsp. that has two included jsp's that are actually struts
actions but the response only returns the first one.
I have tried flush="false" (Doesn't matter)
I have tried the 








Eric D. Lemle
Senior Programmer / Analyst
Intermountain Health Care
36 South State Street, Suite 1100
Salt Lake City, Utah 84111 
United States of America (USA)
(801) 442-3688 -- e-mail: [EMAIL PROTECTED]


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



Re: logic TagLib and getRemoteUser()

2005-02-03 Thread Jeff Beal
Look at the documentation for the  and 
 tags.  Each tag has an attribute 'role' where you 
can specify a comma-separated list of roles.  What I think you want is:


 


 

with the role attribute in each case having the list of all roles you 
define in your application descriptor.

-- Jeff
Frank Schaare wrote:

Hi,

Do you mean that you want to display one image if the user is logged 
in and a different image if the user is not logged in?

Exactly. <%=request.getRemoteUser()%> is null when the user ist not 
loged in. If so <%=request.getRemoteUser()%> gives me the string of the 
username.

IÂm looking for something like this:
 //does not work !


 //does not work !


JSPÂs have easy access to the implicit objects like the request. There 
must be a counterpart in struts taglibs or am i wrong ???

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


Re: logic TagLib and getRemoteUser()

2005-02-03 Thread Frank Schaare

Hi,

Do you mean that you want to display one image if the user is logged in 
and a different image if the user is not logged in?
Exactly. <%=request.getRemoteUser()%> is null when the user ist not 
loged in. If so <%=request.getRemoteUser()%> gives me the string of the 
username.

IÂm looking for something like this:
 //does not work !


 //does not work !


JSPÂs have easy access to the implicit objects like the request. There 
must be a counterpart in struts taglibs or am i wrong ???

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


Re: Links and Targets

2005-02-03 Thread Susan Bradeen
On Thu, 3 Feb 2005 09:14:07 -0500, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'm very very discouraged with not being able to resolve this problem.
> 
> I do know that this is a WebSphere Studio Application Developer (WSAD)
> related problem but I have being searching the web for half a day now
> without any success. So I'm turning to you for help.
> 
> I have imported a project from a WebSphere Studio Application Developer
> (WSAD) version 5.1.0 to version 5.1.2 [with the latest fixpacks].
> 
> My problem is that I have perhaps 30% of my links and targets in the
> struts-config.xml as broken or target not resolved.
> However the application executes without any problems.

There are some comments in the archives about these messages, probably
mostly in relation to links to Tiles pages. If your application works,
then don't worry about it.

> 
> How can I get WSAD to recognize that the links are valid?
> 

Most of us get the messages also, and they can be hard to simply
ignore. I think there may be some validations you can turn off in
Preferences so that WebSphere doesn't check for the things it isn't
programmed to figure out yet. If you didn't get the messages in a
previous WSAD environment, I wonder if those validations were turned
off there. Basically, it means that WebSphere just can't make the
connection between the files and/or attributes, but *not* that you did
anything wrong. No worries. :)

Hth,
Susan

> Any insight would be greatly appreciated !
> maestro
>

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



Re: Help with logic tags, and commas please.

2005-02-03 Thread Kishore Senji
>value="${creditApplicationListDto.displayProducts[${key}]}"/>,

I would return a collection from  teh DTO for only true values. The
reason is JSTL cannot invoke the keySet() method on the Map (Since the
method doesn't confine to JavaBean specification)

public Collection getDisplayProducts() {
   Collection c = new ArrayList();
   if(Boolean.TRUE.equals(this.getBusinessLine())){
   c.add("label.applist.bln");
   }
   if(Boolean.TRUE.equals(this.getBusinessCard())){
   c.add("label.applist.bcard");
   }
   if(Boolean.TRUE.equals(this.getSecuredCard())){
   c.add("label.applist.seccard");
   }
   if(Boolean.TRUE.equals(this.getEquipmentExpress())){
   c.add("label.applist.equipmentExpress");
   }
   if(Boolean.TRUE.equals(this.getSbaLineOfCredit())){
   c.add("label.applist.sBALineOfCredit");
   }
   if(Boolean.TRUE.equals(this.getSbaTermLoan())){
   c.add("label.applist.sBATermLoan");
   }
   if(Boolean.TRUE.equals(this.getBusinessLoan())){
   c.add("label.applist.BusinessLoan");
   }

   if(c.size() < 1 ) {
   c.add("label.applist.NoProducts");
   }
   return c;
   }


  

  ,

  

  
  


Assuming that "label.applist.*" is only a key to the actual label in
the properties file you might want to use  to render the
actual label

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



Re: logic TagLib and getRemoteUser()

2005-02-03 Thread Jeff Beal
Frank Schaare wrote:
Hi,
iÂd like to diplay an image whether the user is loged in or not (CMS).
Do you mean that you want to display one image if the user is logged in 
and a different image if the user is not logged in?

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


logic TagLib and getRemoteUser()

2005-02-03 Thread Frank Schaare
Hi,
iÂd like to diplay an image whether the user is loged in or not (CMS).
Therefore iÂd like to use the logig taglib, but i canÂt access the 
request object.

Any jsp fragment like <%=request.getRemoteUser()%> works fine, but how 
do i translate this into suitable arguments for the logic tags ?

thanks for your suggestions...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Validate Array in Struts

2005-02-03 Thread Paulo César M. Jeveaux
Hi

  I have html form which containes product name and product no. these
product name and product number can be in 'N' Numbers. For this i have
taken Array of Product Names and Product Number. But i am unable to
validate these arrays . Can You please tell me how we can validate
array.

T+

-- 
/**
* @author Paulo César M. Jeveaux
* Java Consultant
* @version 21.0
* http://www.portaljava.com
* @deprecated
*/

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



RE: Help with logic tags, and commas please.

2005-02-03 Thread Mick.Knutson
I seem to be getting an error getting a map, from a method in my DTO, then 
printing the KEY from the Map via the c: tags.

DTO method:
=
public Map getDisplayProducts() {
Map map = new HashMap();
if(this.getBusinessLine() != null &&
this.getBusinessLine().booleanValue() ) {
map.put("label.applist.bln", this.getBusinessLine());
}
if(this.getBusinessCard() != null &&
this.getBusinessCard().booleanValue() ) {
map.put("label.applist.bcard", this.getBusinessCard());
}
if(this.getSecuredCard() != null &&
this.getSecuredCard().booleanValue() ) {
map.put("label.applist.seccard", this.getSecuredCard());
}
if(this.getEquipmentExpress() != null &&
this.getEquipmentExpress().booleanValue() ) {
map.put("label.applist.equipmentExpress",
this.getEquipmentExpress());
}
if(this.getSbaLineOfCredit() != null &&
this.getSbaLineOfCredit().booleanValue() ) {
map.put("label.applist.sBALineOfCredit",
this.getSbaLineOfCredit());
}
if(this.getSbaTermLoan() != null &&
this.getSbaTermLoan().booleanValue() ) {
map.put("label.applist.sBATermLoan", this.getSbaTermLoan());
}
if(this.getBusinessLoan() != null &&
this.getBusinessLoan().booleanValue() ) {
map.put("label.applist.BusinessLoan",
this.getBusinessLoan());
}

if(map.size() < 1 ) {
map.put("label.applist.NoProducts",
"label.applist.NoProducts");
}
return map;
}

JSP settings:
=



  ,


  



===


2005-02-03 09:57:07,444 ERROR tiles.InsertTag$InsertHandler - Can't
insert page '/WEB-INF/default/body/applicationList.jsp' :
javax.servlet.jsp.JspException: The taglib validator rejected the page:
"tag = 'out' / attribute = 'value': An error occurred while parsing
custom action attribute "value" with value
"${creditApplicationListDto.displayProducts[${key}]}": Encountered
"{", expected one of [".", ">", "gt", "<", "lt", "==",
"eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "]",
"+", "-", "*", "/", "div", "%", "mod", "and", "&&",
"or", "||", ":", "("], tag = 'out' / attribute = 'value': An
error occurred while parsing custom action attribute "value" with
value "${creditApplicationListDto.displayProducts[${key}]}":
Encountered "{", expected one of [".", ">", "gt", "<", "lt",
"==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[",
"]", "+", "-", "*", "/", "div", "%", "mod", "and",
"&&", "or", "||", ":", "("], "
java.io.IOException: javax.servlet.jsp.JspException: The taglib validator
rejected the page: "tag = 'out' / attribute = 'value': An error
occurred while parsing custom action attribute "value" with value
"${creditApplicationListDto.displayProducts[${key}]}": Encountered
"{", expected one of [".", ">", "gt", "<", "lt", "==",
"eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "]",
"+", "-", "*", "/", "div", "%", "mod", "and", "&&",
"or", "||", ":", "("], tag = 'out' / attribute = 'value': An
error occurred while parsing custom action attribute "value" with
value "${creditApplicationListDto.displayProducts[${key}]}":
Encountered "{", expected one of [".", ">", "gt", "<", "lt",
"==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[",
"]", "+", "-", "*", "/", "div", "%", "mod", "and",
"&&", "or", "||", ":", "("], "
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:130)
at
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:388)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:238)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:188)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:638)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:423)
at
weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:154)
at
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)
at org.apache.struts.tiles.TilesUt

Re: JSTL & HTML Options

2005-02-03 Thread Jeff Beal
<%= Constants.MY_CONSTANT %>

-- Jeff
CRANFORD, CHRIS wrote:
I have defined a test class with constants as follows:
public class Constants
{
  public final static String MY_CONSTANT = "OK";
}
What I want to do is in my html:option tag, I want to set the value
associated with that tag to the constant MY_CONSTANT.  How would one do
this?
-=cc=-

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


RE: Help with logic tags, and commas please.

2005-02-03 Thread Mick.Knutson
How do I check to make sure there are any elements in the Map?
There is a possibility that the map will be empty.


Mick Knutson
Wells Fargo Business Direct
(415) 222-1020

"This message may contain confidential and/or privileged information. If you 
are not the addressee or authorized to receive this for the addressee, you must 
not use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation."




-Original Message-
From: Kishore Senji [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 19, 2005 6:49 PM
To: Struts Users Mailing List
Subject: Re: Help with logic tags, and commas please.


On Wed, 19 Jan 2005 18:25:55 -0800, Kishore Senji <[EMAIL PROTECTED]> wrote:
> On Wed, 19 Jan 2005 18:49:52 -0600, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > I need to know an additional question:
> > You sent me:
> >
> >  > varStatus="status">
> >
> > I need to know if this would be correct as well, where 
> > creditApplicationListDto.businessLine is a Boolean:
> >
> >  > varStatus="status">
> 
> Nope. "items" should evaluate to a collection.
> In JSTL it would be something like the below code to solve your
> problem (I haven't tested it, Just wrote it on top of my head)
> 
> 
>   
>   
> 
> 
>   
>  
>, 
>  
>  
>
>
>  
>   
> 
> 
>   
>  
>, 
>  
>  
>
>
>  
>   
> 
> 
>   
>  
>, 
>  
>  
>
>
>  
>   
> 
> 
> Look how large the chunk of code is. 

You can also do it like this 

<%
  Map map = new HashMap();
  if(creditApplicationListDto.getBusinessLine()){ // assuming that you
make the "creditApplicationListDto" available as a scripting variable
map.put("label.bln", creditApplicationListDto.getBusinessLine());
  }
  if(creditApplicationListDto.getBusinessCard()){
  map.put("label.bcard", creditApplicationListDto.getBusinessCard());
  }
  if(creditApplicationListDto.getSecuredCard()){
  map.put("label.seccard", creditApplicationListDto.getSecuredCard());
  }
  if(creditApplicationListDto.getEquipExpress()){
  map.put("label.equipExpress", creditApplicationListDto.getEquipExpress());
  }
  pageContext.setAttribute("map", map);
%>


  
, 

  


All we did here is to create a collection which holds only the "true"
values. Note that you can do this in the DTO if you want to and expose
the collection through a getter

> Better way of doing it is by
> having some sort of an utility method or using a tag as "Jim"
> suggested
> 
> >
> > 
> > Mick Knutson
> > Wells Fargo Business Direct
> > (415) 222-1020
> >
> > "This message may contain confidential and/or privileged information. If 
> > you are not the addressee or authorized to receive this for the addressee, 
> > you must not use, copy, disclose, or take any action based on this message 
> > or any information herein. If you have received this message in error, 
> > please advise the sender immediately by reply e-mail and delete this 
> > message. Thank you for your cooperation."
> > 
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 14, 2005 11:18 AM
> > To: Struts Users Mailing List
> > Subject: Re: Help with logic tags, and commas please.
> >
> > Not exactly the same, since I have use of a list but here's how I handled
> > it in JSTL...
> >
> >   > varStatus="status">
> >
> >
> >  , 
> >
> >
> >
> >  
> >
> >
> >  
> >
> > Bart
> >
> > <[EMAIL PROTECTED]> wrote on 01/14/2005 02:04:07 PM:
> >
> > > I have the following code that prints something like this:
> > > BLN, BCard, SecCard, EquipExp
> > >
> > > There may be any combination of any of these 4 items, or non at all.
> > > And what I want is the ability to properly add commas after each
> > > item, or not print a comma if there is not an item:
> > >
> > >  > > value="true">
> > >  ,
> > > 
> > >  > > value="true">
> > >  ,
> > > 
> > >  > > value="true">
> > >  ,
> > > 
> > >  > > property="equipmentExpress" value="true">
> > >  
> > > 
> > >
> > >
> > > 
> > > Mick Knutson
> > > Wells Fargo Business Direct Information Systems
> > > (415) 222-1020
> > >
> > > "This message may contain confidential and/or privileged
> > > information. If you are not the addressee or authorized to receive
> > > this for the addressee, you must not use, copy, disclose, or take
> > > any action based on this message or any information herein. If you
> > > have received this message in error, please advise the sender
> > > immediately by reply e-mail and delete this message. Thank you for
> > > your cooperation."
> > > --

RE: JSTL & HTML Options

2005-02-03 Thread Slattery, Tim - BLS
> So you're not able to reference static public final 
> properties in the same fashion as scriplets? 
> <%=Constants.MY_CONSTANT%>

Tags are fundamentally different from scriptlets. Scriptlets are simply Java
code, and you can address a member variable of a class from a scriptlet just
as you could in any Java code. (Providing its not "private" or "protected",
of course). 

A tag is a small program that interprets its input, as any program must.
JSTL and struts tags access data from classes *only* via accessor functions.

--
Tim Slattery
[EMAIL PROTECTED]


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



trouble referencing struts taglibs: TldLocationsCache?

2005-02-03 Thread John McGrath
Hi All,
 
I'm migrating an application from WebLogic 6.1 to Tomcat 5.0, and having a
problem getting Tomcat to process taglibs correctly. The *.tld files are in
WEB-INF, and web.xml is set up the same as in struts-examples, and the same
as we've been using successfully in WebLogic:
 

/tags/struts-bean
/WEB-INF/struts-bean.tld

 
When I reference a taglib in the standard way:
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>

The page fails, and this exception shows up in the logs:

2005-02-03 12:01:38 ApplicationDispatcher[/mcg_cms] Servlet.service() for
servlet jsp threw exception
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache:
null
 at
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:249
)
 at
org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.j
ava:220)
 at
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext
.java:475)
 at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
 at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
 at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)...
(etc.)

It feels like I'm overlooking something small and stupid, but I've been
banging my head against this for two days, and it's giving me a headache.
Any help gratefully appreciated.
 
John


Re: Avoid resubmit

2005-02-03 Thread Brandon Mercer
Hello Hong,
I'm not sure how to handle this Read up on it, I know that it worked 
fine for me the way I explained to you.  It doesn't seem that the client 
would make a difference in how this works either.  Even if it did queue 
it up, the first submit in queue would hit the server, respond back and 
subsequent submits would hit and then forward to the resubmitted page.  
Did you put an entry in your struts-config.xml for the resumit forward?

Brandon
Anthony Hong wrote:
I count a problem when use Struts Token.
When I submit a form, Action class will check token, get data and
response to customer.
But If I click more than one time during Action processing request, It
will send request one by one after each response.
That seams, IE put my click even in a queue and send it to server one by one. 
How to handle this problem? I want to send warning message during one
request is processing.

On Thu, 03 Feb 2005 07:39:57 -0500, Brandon Mercer <[EMAIL PROTECTED]> wrote:
 

Kalluru Uma. Maheswar wrote:
   

What is this "Token System"? How to use it?
 

Two lines of code really!  When you create the form you'll do
public ActionForward yourForm(
  final ActionMapping mapping,
  final ActionForm form,
  final HttpServletRequest request,
  final HttpServletResponse response)
  throws Exception {
  /* the money maker right here */
  saveToken(request);
  /* back to your old regular stuff */
  HttpSession session = request.getSession();
  ...
Then when you go to process this form, you'll need to add this line to
your action class
isTokenValid(request, true)) {
  /* do some stuff with your form */
  return mapping.findForward("success");
} else {
  return mapping.findForward("resubmit");
}
Hope this helps!
Brandon
-
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: JSTL & HTML Options

2005-02-03 Thread CRANFORD, CHRIS
So you're not able to reference static public final properties in the same
fashion as scriplets?
<%=Constants.MY_CONSTANT%>

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 11:28 AM
To: 'Struts Users Mailing List'
Subject: RE: JSTL & HTML Options


> I have defined a test class with constants as follows:
 
> public class Constants
> {
>   public final static String MY_CONSTANT = "OK";
> }
 
> What I want to do is in my html:option tag, I want to set the
> value associated with that tag to the constant MY_CONSTANT.  
> How would one do this?

Write a getter method for that value:

String getMyConstant()
{
return MY_CONSTANT;
}

The  tag can now reference the property "myConstant".

--
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: struts 1.2.4 + tomcat 5.5.7 difficulties

2005-02-03 Thread Vincent
Thanks for the info, I am not running Forrest but it could
very well be a problem with the parser. I'll continue
pursuing the issue with the tomcat developers.
Thanks
[EMAIL PROTECTED] wrote:
The tlds are not in struts.jar, check the Struts distribution, it is
there, but I don't remember where it is :-P
Anyway I had a similar problem when I used Apache Forrest as a webapp
under the same Tomcat instance, it seems that Forrest changes the default
XML parser, so that Struts TLDs are not parsed correctly, generating this
error. If you have Forrest installed in that Tomcat instance, undeploy it
and restart Tomcat. I don't know if it helps you.
Ciao
Antonio Petrelli
Vincent wrote:

Hello All,
Not sure if this is a tomcat issue or a struts one.
After migrating from tomcat 5.0.30 to version 5.5.7
I get this error from my webapp when I try to do . I tried to break it
up to make it more readable:
WARN http-8080-Processor25
org.apache.catalina.authenticator.FormAuthenticator - Unexpected error
forwarding to login page
org.apache.jasper.JasperException: Unable to read  TLD
"META-INF/tlds/struts-tiles.tld" from JAR file
"file:/usr/local/tomcat/work/Catalina/localhost/_/WEB-INF/lib/struts.jar":
org.apache.jasper.JasperException: Failed to load or instantiate
TagExtraInfo class: org.apache.struts.taglib.tiles.UseAttributeTei
Can someone tell which jar file contains
org.apache.struts.taglib.tiles.UseAttributeTei? because I don't see it
when I unjar struts.jar
Again this is struts 1.2.4 and tomcat 5.5.7 (configured for jdk 1.4.2)
Thanks,
Vinny


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

--
Plato is my friend, Aristotle is my friend, but my greatest friend is truth.
- Isaac Newton
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Avoid resubmit

2005-02-03 Thread Cedric Levieux
You can have in your own page a js code that active a boolean after your
first submit and disable your submit button.

Just my 2 cents,

Cedric

- Original Message - 
From: "Anthony Hong" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, February 03, 2005 3:28 PM
Subject: Re: Avoid resubmit


> I count a problem when use Struts Token.
> When I submit a form, Action class will check token, get data and
> response to customer.
> But If I click more than one time during Action processing request, It
> will send request one by one after each response.
> That seams, IE put my click even in a queue and send it to server one by
one.
> How to handle this problem? I want to send warning message during one
> request is processing.
>
>
> On Thu, 03 Feb 2005 07:39:57 -0500, Brandon Mercer <[EMAIL PROTECTED]>
wrote:
> > Kalluru Uma. Maheswar wrote:
> >
> > >What is this "Token System"? How to use it?
> > >
> > >
> > Two lines of code really!  When you create the form you'll do
> >
> > public ActionForward yourForm(
> >final ActionMapping mapping,
> >final ActionForm form,
> >final HttpServletRequest request,
> >final HttpServletResponse response)
> >throws Exception {
> >
> >/* the money maker right here */
> >saveToken(request);
> >/* back to your old regular stuff */
> >HttpSession session = request.getSession();
> >...
> >
> > Then when you go to process this form, you'll need to add this line to
> > your action class
> > isTokenValid(request, true)) {
> >/* do some stuff with your form */
> >return mapping.findForward("success");
> > } else {
> >return mapping.findForward("resubmit");
> > }
> >
> > Hope this helps!
> > Brandon
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -- 
>
> Anthony Hong
>
> -
> 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]



OT: X-Forms (HTML replacment) starts

2005-02-03 Thread Vic
   http://www.mozilla.org/press/mozilla-2005-02-02.html
.V
--
Forums, Boards, Blogs and News in RiA 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tiles and Facades

2005-02-03 Thread Shey Rab Pawo
On Thu, 3 Feb 2005 10:36:50 -0500, Benedict, Paul C
<[EMAIL PROTECTED]> wrote:
> 1. Placing definitions in XML. This solution works well with Struts because
> I can hide all my JSP in WEB-INF, define how each page is decorated, and
> invoke the tile definition name in a Struts forward.
> 
> 2. Placing Tiles tags in JSP. This solution works well during rapid
> prototyping or where JSP pages need to be directly accessed by the user.
> Personally, it's a bear to inline decorate my pages when I am not doing
> Struts. I'd rather work with a filter and the XML configuration.
>

If you are using the definitions in XML, which I find works faster
during rapid prototyping than putting Tiles tags in JSP, do you still
have the problem?  As James said, all the Tiles tags then just go into
the layout pages.

-- 
The radiance of all the stars does not equal a sixteenth part of the
moon's radiance, likewise, good deeds giving us merit, all these do
not equal a sixteenth part of the merit of loving-kindness..

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



RE: JSTL & HTML Options

2005-02-03 Thread Slattery, Tim - BLS
> I have defined a test class with constants as follows:
 
> public class Constants
> {
>   public final static String MY_CONSTANT = "OK";
> }
 
> What I want to do is in my html:option tag, I want to set the 
> value associated with that tag to the constant MY_CONSTANT.  
> How would one do this?

Write a getter method for that value:

String getMyConstant()
{
return MY_CONSTANT;
}

The  tag can now reference the property "myConstant".

--
Tim Slattery
[EMAIL PROTECTED]


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



Re: Where is the documentation on how to get old source?

2005-02-03 Thread Joe Germuska
At 9:57 AM -0600 2/3/05, [EMAIL PROTECTED] wrote:
Well, someone here may have a better answer;
I would probably advise checking out 
http://svn.apache.org/repos/asf/struts/core/tags/STRUTS_1_1 from SVN.

Joe

But in the past when looking for back-level source on some of the commons
components, I used the jar file dates.
Then located the source archive directory entry with a matching  date.
Hope this helps.
JC


  "Paul 
Roubekas" 
  <[EMAIL PROTECTED]To:   "Struts 
Users Mailing List"  
  com> 
cc:
   Subject:  Re: Where 
is the documentation on how to get old source? 
  02/03/2005 
09:35

AM  
  Please respond 
to   
  "Struts 
Users   
  Mailing 
List"   




http://archive.apache.org/dist/jakarta/struts/struts-legacy/
only has version 1.0
http://archive.apache.org/dist/jakarta/struts/old/release/
Has three minor version of version 1.1.  An 'b1', 'b2', and 'b3' version.
My manafest file does not tell which minor version I have
What am I missing?



**
The information contained in this communication is confidential, 
private, proprietary, or otherwise privileged and is intended only 
for the use of the addressee.  Unauthorized use, disclosure, 
distribution or copying is strictly prohibited and may be unlawful. 
If you have received this communication in error, please notify the 
sender immediately at (312)653-6000 in Illinois; (972)766-6900 in 
Texas; or (800)835-8699 in New Mexico.
**

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

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

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


JSTL & HTML Options

2005-02-03 Thread CRANFORD, CHRIS
I have defined a test class with constants as follows:

public class Constants
{
  public final static String MY_CONSTANT = "OK";
}

What I want to do is in my html:option tag, I want to set the value
associated with that tag to the constant MY_CONSTANT.  How would one do
this?

-=cc=-

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



Re: Where is the documentation on how to get old source?

2005-02-03 Thread Paul Roubekas
That got me what I needed.  I looked at the dates and concluded I needed 
b3.

Thank you very much
 



Hubert Rabago <[EMAIL PROTECTED]> 
02/03/2005 10:54 AM
Please respond to
"Struts Users Mailing List"


To
Struts Users Mailing List 
cc

Subject
Re: Where is the documentation on how to get old source?






Try this:
http://archive.apache.org/dist/jakarta/struts/source/

which has this link:
http://archive.apache.org/dist/jakarta/struts/source/jakarta-struts-1.1-src.zip


On Thu, 3 Feb 2005 08:35:38 -0700, Paul Roubekas <[EMAIL PROTECTED]> 
wrote:
> http://archive.apache.org/dist/jakarta/struts/struts-legacy/
> only has version 1.0
> 
> http://archive.apache.org/dist/jakarta/struts/old/release/
> Has three minor version of version 1.1.  An 'b1', 'b2', and 'b3' 
version.
> My manafest file does not tell which minor version I have
> 
> What am I missing?
> 
> [EMAIL PROTECTED]
> 02/03/2005 09:38 AM
> Please respond to
> "Struts Users Mailing List"
> 
> To
> "Struts Users Mailing List" 
> cc
> 
> Subject
> Re: Where is the documentation on how to get old source?
> 
> 
> You can find it all here:
> 
> http://archive.apache.org/dist/jakarta/
> 
> JC
>

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




Re: Where is the documentation on how to get old source?

2005-02-03 Thread Jeff_Caswell




Well, someone here may have a better answer;

But in the past when looking for back-level source on some of the commons
components, I used the jar file dates.

Then located the source archive directory entry with a matching  date.

Hope this helps.

JC




   
  "Paul Roubekas"   
   
  <[EMAIL PROTECTED]To:   "Struts Users Mailing 
List"   
  com> cc:  
   
   Subject:  Re: Where is the 
documentation on how to get old source?  
  02/03/2005 09:35  
   
  AM
   
  Please respond to 
   
  "Struts Users 
   
  Mailing List" 
   

   




http://archive.apache.org/dist/jakarta/struts/struts-legacy/
only has version 1.0

http://archive.apache.org/dist/jakarta/struts/old/release/
Has three minor version of version 1.1.  An 'b1', 'b2', and 'b3' version.
My manafest file does not tell which minor version I have

What am I missing?







**
The information contained in this communication is confidential, private, 
proprietary, or otherwise privileged and is intended only for the use of the 
addressee.  Unauthorized use, disclosure, distribution or copying is strictly 
prohibited and may be unlawful.  If you have received this communication in 
error, please notify the sender immediately at (312)653-6000 in Illinois; 
(972)766-6900 in Texas; or (800)835-8699 in New Mexico.
**


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



Re: Where is the documentation on how to get old source?

2005-02-03 Thread Hubert Rabago
Try this:
http://archive.apache.org/dist/jakarta/struts/source/

which has this link:
http://archive.apache.org/dist/jakarta/struts/source/jakarta-struts-1.1-src.zip

On Thu, 3 Feb 2005 08:35:38 -0700, Paul Roubekas <[EMAIL PROTECTED]> wrote:
> http://archive.apache.org/dist/jakarta/struts/struts-legacy/
> only has version 1.0
> 
> http://archive.apache.org/dist/jakarta/struts/old/release/
> Has three minor version of version 1.1.  An 'b1', 'b2', and 'b3' version.
> My manafest file does not tell which minor version I have
> 
> What am I missing?
> 
> [EMAIL PROTECTED]
> 02/03/2005 09:38 AM
> Please respond to
> "Struts Users Mailing List"
> 
> To
> "Struts Users Mailing List" 
> cc
> 
> Subject
> Re: Where is the documentation on how to get old source?
> 
> 
> You can find it all here:
> 
> http://archive.apache.org/dist/jakarta/
> 
> JC
>

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



RE: Tiles and Facades

2005-02-03 Thread Benedict, Paul C
Jack and Joe,

I believe there are 2 ways of using Tiles: 

1. Placing definitions in XML. This solution works well with Struts because
I can hide all my JSP in WEB-INF, define how each page is decorated, and
invoke the tile definition name in a Struts forward.

2. Placing Tiles tags in JSP. This solution works well during rapid
prototyping or where JSP pages need to be directly accessed by the user.
Personally, it's a bear to inline decorate my pages when I am not doing
Struts. I'd rather work with a filter and the XML configuration.

>>If you like SiteMesh, why not use SiteMesh?  Is there something that 
needs to be done to make it integrate better with Struts?  If not, I 
don't see any reason to re-invent the wheel.

If I have a system already built in Struts, it becomes a little awkward to
host multiple JSP decorating technologies together. Yes, SiteMesh will do
this, but my first love is Tiles :)

I hope this helps! I don't mind going another round if it doesn't :)

Thanks,
Paul

-Original Message-
From: Shey Rab Pawo [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 10:26 AM
To: Struts Users Mailing List
Cc: struts-user@jakarta.apache.org
Subject: Re: Tiles and Facades


Hello, Paul,

I am not sure exactly what you are getting at here, although the topic
is clear.  I guess that one thing that makes reading this difficult is
that I have not investigated SiteMesh.  I do use Tiles definitions in
XML exclusively, and you seem to be talking about situations where
that is not done.  Can you expand on this a bit?

I am not working, obviously, on the Tiles development, so I won't be
able to answer your question in any event, but find the question
itself interesting.

Thanks,

Jack


On Thu, 3 Feb 2005 10:12:44 -0500, Benedict, Paul C
<[EMAIL PROTECTED]> wrote:
> I read a rumor that said Tiles will become its own top-level subproject in
> Jakarta. Is that true?
> 
> Also, I think Tiles is great, but I find it very annoying to litter every
> JSP page with  tags to decorate my pages. While it makes sense to
put
> the tile definitions in XML when I do Struts development, sometimes JSP
> needs to be accessed directly. Is there (or will be) any mechanism (like a
> filter) to can automatically decorate JSP (ala SiteMesh)?
> 
> Thanks,
> Paul
> 

Jack

-- 
The radiance of all the stars does not equal a sixteenth part of the
moon's radiance, likewise, good deeds giving us merit, all these do
not equal a sixteenth part of the merit of loving-kindness..

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




--
Notice:  This e-mail message, together with any attachments, contains 
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New 
Jersey, USA 08889), and/or its affiliates (which may be known outside the 
United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as 
Banyu) that may be confidential, proprietary copyrighted and/or legally 
privileged. It is intended solely for the use of the individual or entity named 
on this message.  If you are not the intended recipient, and have received this 
message in error, please notify us immediately by reply e-mail and then delete 
it from your system.
--

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



Re: Where is the documentation on how to get old source?

2005-02-03 Thread Paul Roubekas
http://archive.apache.org/dist/jakarta/struts/struts-legacy/ 
only has version 1.0

http://archive.apache.org/dist/jakarta/struts/old/release/ 
Has three minor version of version 1.1.  An 'b1', 'b2', and 'b3' version.
My manafest file does not tell which minor version I have 

What am I missing?
 
 



[EMAIL PROTECTED] 
02/03/2005 09:38 AM
Please respond to
"Struts Users Mailing List"


To
"Struts Users Mailing List" 
cc

Subject
Re: Where is the documentation on how to get old source?










You can find it all here:

http://archive.apache.org/dist/jakarta/

JC


  
  "Paul Roubekas"   
  <[EMAIL PROTECTED]To: user@struts.apache.org  
 
  com> cc:   
   Subject:  Where is the 
documentation on how to get old source? 
  02/03/2005 08:12   
  AM  
  Please respond to   
  "Struts Users  
  Mailing List"  
  




I need to get the source for version 1.1 of struts.  Could you tell me
where the documentation is that tell how to get source from prior
versions.








Paul H. Roubekas
IT Specialist
IBM Global Services
[EMAIL PROTECTED]
1-877-437-7288
t/l 273-3425


**
The information contained in this communication is confidential, private, 
proprietary, or otherwise privileged and is intended only for the use of 
the addressee.  Unauthorized use, disclosure, distribution or copying is 
strictly prohibited and may be unlawful.  If you have received this 
communication in error, please notify the sender immediately at 
(312)653-6000 in Illinois; (972)766-6900 in Texas; or (800)835-8699 in New 
Mexico.
**


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




Re: Tiles and Facades

2005-02-03 Thread Joe Germuska
At 10:12 AM -0500 2/3/05, Benedict, Paul C wrote:
I read a rumor that said Tiles will become its own top-level subproject in
Jakarta. Is that true?
There was considerable discussion about this on the dev list about a 
month ago.  The intention first is to refactor Tiles to demonstrate 
that it is independent of the Struts core.  Whether it continues to 
live as a Struts sub-project, move to an Apache TLP, a Jakarta TLP, 
or to Source Forge, Java.net, or any place else seems open, as far as 
I can tell.

Also, I think Tiles is great, but I find it very annoying to litter every
JSP page with  tags to decorate my pages. While it makes sense to put
the tile definitions in XML when I do Struts development, sometimes JSP
needs to be accessed directly. Is there (or will be) any mechanism (like a
filter) to can automatically decorate JSP (ala SiteMesh)?
If you like SiteMesh, why not use SiteMesh?  Is there something that 
needs to be done to make it integrate better with Struts?  If not, I 
don't see any reason to re-invent the wheel.

Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

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


Re: Tiles and Facades

2005-02-03 Thread James Mitchell
Not Jakarta, but Apache.  Jakarta is a subproject.
And it's no rumor
http://wiki.apache.org/struts/TilesTopLevel
You should only need to "litter" the layout file(s) that you need.  I 
usually get away with 1 or 2.  In the projects that I have any control over, 
linking directly to a JSP is unacceptable.  If Tiles doesn't cut the 
mustard, use SiteMesh, or if you need both, use it in combination with 
Tiles.

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - 
From: "Benedict, Paul C" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, February 03, 2005 10:12 AM
Subject: Tiles and Facades


I read a rumor that said Tiles will become its own top-level subproject in
Jakarta. Is that true?
Also, I think Tiles is great, but I find it very annoying to litter every
JSP page with  tags to decorate my pages. While it makes sense to 
put
the tile definitions in XML when I do Struts development, sometimes JSP
needs to be accessed directly. Is there (or will be) any mechanism (like a
filter) to can automatically decorate JSP (ala SiteMesh)?

Thanks,
Paul

--
Notice:  This e-mail message, together with any attachments, contains 
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New 
Jersey, USA 08889), and/or its affiliates (which may be known outside the 
United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as 
Banyu) that may be confidential, proprietary copyrighted and/or legally 
privileged. It is intended solely for the use of the individual or entity 
named on this message.  If you are not the intended recipient, and have 
received this message in error, please notify us immediately by reply 
e-mail and then delete it from your system.
--

-
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: Tiles and Facades

2005-02-03 Thread Shey Rab Pawo
Hello, Paul,

I am not sure exactly what you are getting at here, although the topic
is clear.  I guess that one thing that makes reading this difficult is
that I have not investigated SiteMesh.  I do use Tiles definitions in
XML exclusively, and you seem to be talking about situations where
that is not done.  Can you expand on this a bit?

I am not working, obviously, on the Tiles development, so I won't be
able to answer your question in any event, but find the question
itself interesting.

Thanks,

Jack


On Thu, 3 Feb 2005 10:12:44 -0500, Benedict, Paul C
<[EMAIL PROTECTED]> wrote:
> I read a rumor that said Tiles will become its own top-level subproject in
> Jakarta. Is that true?
> 
> Also, I think Tiles is great, but I find it very annoying to litter every
> JSP page with  tags to decorate my pages. While it makes sense to put
> the tile definitions in XML when I do Struts development, sometimes JSP
> needs to be accessed directly. Is there (or will be) any mechanism (like a
> filter) to can automatically decorate JSP (ala SiteMesh)?
> 
> Thanks,
> Paul
> 

Jack

-- 
The radiance of all the stars does not equal a sixteenth part of the
moon's radiance, likewise, good deeds giving us merit, all these do
not equal a sixteenth part of the merit of loving-kindness..

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



Tiles and Facades

2005-02-03 Thread Benedict, Paul C
I read a rumor that said Tiles will become its own top-level subproject in
Jakarta. Is that true?

Also, I think Tiles is great, but I find it very annoying to litter every
JSP page with  tags to decorate my pages. While it makes sense to put
the tile definitions in XML when I do Struts development, sometimes JSP
needs to be accessed directly. Is there (or will be) any mechanism (like a
filter) to can automatically decorate JSP (ala SiteMesh)?

Thanks,
Paul



--
Notice:  This e-mail message, together with any attachments, contains 
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New 
Jersey, USA 08889), and/or its affiliates (which may be known outside the 
United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as 
Banyu) that may be confidential, proprietary copyrighted and/or legally 
privileged. It is intended solely for the use of the individual or entity named 
on this message.  If you are not the intended recipient, and have received this 
message in error, please notify us immediately by reply e-mail and then delete 
it from your system.
--

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



Re: Where is the documentation on how to get old source?

2005-02-03 Thread Jeff_Caswell




You can find it all here:

http://archive.apache.org/dist/jakarta/

JC



  
  "Paul Roubekas"   
  
  <[EMAIL PROTECTED]To:   
user@struts.apache.org   
  com> cc:  
  
   Subject:  Where is the 
documentation on how to get old source? 
  02/03/2005 08:12  
  
  AM
  
  Please respond to 
  
  "Struts Users 
  
  Mailing List" 
  

  




I need to get the source for version 1.1 of struts.  Could you tell me
where the documentation is that tell how to get source from prior
versions.








Paul H. Roubekas
IT Specialist
IBM Global Services
[EMAIL PROTECTED]
1-877-437-7288
t/l 273-3425


**
The information contained in this communication is confidential, private, 
proprietary, or otherwise privileged and is intended only for the use of the 
addressee.  Unauthorized use, disclosure, distribution or copying is strictly 
prohibited and may be unlawful.  If you have received this communication in 
error, please notify the sender immediately at (312)653-6000 in Illinois; 
(972)766-6900 in Texas; or (800)835-8699 in New Mexico.
**


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



Re: Avoid resubmit

2005-02-03 Thread Anthony Hong
I count a problem when use Struts Token.
When I submit a form, Action class will check token, get data and
response to customer.
But If I click more than one time during Action processing request, It
will send request one by one after each response.
That seams, IE put my click even in a queue and send it to server one by one. 
How to handle this problem? I want to send warning message during one
request is processing.


On Thu, 03 Feb 2005 07:39:57 -0500, Brandon Mercer <[EMAIL PROTECTED]> wrote:
> Kalluru Uma. Maheswar wrote:
> 
> >What is this "Token System"? How to use it?
> >
> >
> Two lines of code really!  When you create the form you'll do
> 
> public ActionForward yourForm(
>final ActionMapping mapping,
>final ActionForm form,
>final HttpServletRequest request,
>final HttpServletResponse response)
>throws Exception {
> 
>/* the money maker right here */
>saveToken(request);
>/* back to your old regular stuff */
>HttpSession session = request.getSession();
>...
> 
> Then when you go to process this form, you'll need to add this line to
> your action class
> isTokenValid(request, true)) {
>/* do some stuff with your form */
>return mapping.findForward("success");
> } else {
>return mapping.findForward("resubmit");
> }
> 
> Hope this helps!
> Brandon
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 

Anthony Hong

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



Links and Targets

2005-02-03 Thread gdeschen
Hi,

I'm very very discouraged with not being able to resolve this problem.

I do know that this is a WebSphere Studio Application Developer (WSAD) 
related problem but I have being searching the web for half a day now 
without any success. So I'm turning to you for help.

I have imported a project from a WebSphere Studio Application Developer 
(WSAD) version 5.1.0 to version 5.1.2 [with the latest fixpacks].

My problem is that I have perhaps 30% of my links and targets in the 
struts-config.xml as broken or target not resolved.
However the application executes without any problems.

How can I get WSAD to recognize that the links are valid?

Any insight would be greatly appreciated !
maestro

Where is the documentation on how to get old source?

2005-02-03 Thread Paul Roubekas
I need to get the source for version 1.1 of struts.  Could you tell me 
where the documentation is that tell how to get source from prior 
versions.
 
 
 
 
 
 
 
 
Paul H. Roubekas
IT Specialist
IBM Global Services
[EMAIL PROTECTED]
1-877-437-7288
t/l 273-3425

Input Array

2005-02-03 Thread Paulo César M. Jeveaux
Hi to All

  How I must precede to validate an input Array? I am using
DynaActionForms, but I do not know what to place much less in
struts-config in validation :(

-- 
/**
* @author Paulo César M. Jeveaux
* Java Consultant
* @version 21.0
* http://www.portaljava.com
* @deprecated
*/

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



Re: Avoid resubmit

2005-02-03 Thread Brandon Mercer
Kalluru Uma. Maheswar wrote:
What is this "Token System"? How to use it?
 

Two lines of code really!  When you create the form you'll do
public ActionForward yourForm(
   final ActionMapping mapping,
   final ActionForm form,
   final HttpServletRequest request,
   final HttpServletResponse response)
   throws Exception {
  
   /* the money maker right here */
   saveToken(request);
   /* back to your old regular stuff */
   HttpSession session = request.getSession();
   ...

Then when you go to process this form, you'll need to add this line to 
your action class
isTokenValid(request, true)) {
   /* do some stuff with your form */
   return mapping.findForward("success");
} else {
   return mapping.findForward("resubmit");
}

Hope this helps!
Brandon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Avoid resubmit

2005-02-03 Thread Kalluru Uma. Maheswar
What is this "Token System"? How to use it?

-Original Message-
From: Cedric Levieux [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 5:23 PM
To: Struts Users Mailing List
Subject: Re: Avoid resubmit

By using the Token system


- Original Message - 
From: "Kalluru Uma. Maheswar" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, February 03, 2005 12:42 PM
Subject: Avoid resubmit


Hi,
I have a form with a simple text box and a text area. The user enters
some information in the 
boxes and presses submit button. The information is inserted into the
database and I show a 
confirmation page to the user.

Now when the user refreshes the page, the information is resubmitted
into the database. How 
do I avoid this?

I am using 














Any idea on how to refresh the page but do not submit the data second
time to the database?

Uma

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

2005-02-03 Thread Cedric Levieux
By using the Token system


- Original Message - 
From: "Kalluru Uma. Maheswar" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, February 03, 2005 12:42 PM
Subject: Avoid resubmit


Hi,
I have a form with a simple text box and a text area. The user enters
some information in the 
boxes and presses submit button. The information is inserted into the
database and I show a 
confirmation page to the user.

Now when the user refreshes the page, the information is resubmitted
into the database. How 
do I avoid this?

I am using 














Any idea on how to refresh the page but do not submit the data second
time to the database?

Uma

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



Avoid resubmit

2005-02-03 Thread Kalluru Uma. Maheswar
Hi,
I have a form with a simple text box and a text area. The user enters
some information in the 
boxes and presses submit button. The information is inserted into the
database and I show a 
confirmation page to the user.

Now when the user refreshes the page, the information is resubmitted
into the database. How 
do I avoid this?

I am using 














Any idea on how to refresh the page but do not submit the data second
time to the database?

Uma

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



Re: [ANN] Free JSP Editor for Eclipse

2005-02-03 Thread Cedric Levieux
I download the JSP editor free license, the html server doesn't ask me for
an email so how can i receive a lice / serial ID ? ^^

I use Eclipse 3.0 RC1

Hope it will help,

Cedric

- Original Message - 
From: "Carlos Chang" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, February 03, 2005 4:11 AM
Subject: RE: [ANN] Free JSP Editor for Eclipse


Cedric,

On the second point, can you elaborate a bit more?  It's asking you for
a serial?  Which version did you download? (JSP Editor, JSP IDE, Struts
IDE?)  Did you get an activation key via email?

Thanks,

-Carlos

> -Original Message-
> From: Cedric Levieux [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 02, 2005 2:40 PM
> To: Struts Users Mailing List
> Subject: Re: [ANN] Free JSP Editor for Eclipse
>
> Two things:
>
> First, my Eclipse has its name changed and I'm a bit angry with that
> Second, does it ask me for a serial when I launch my Eclipse and it
has a
> lot of problem to be launched ?
>
> Regards,
>
> Cedric
>
> - Original Message -
> From: "Carlos Chang" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Wednesday, February 02, 2005 11:09 PM
> Subject: [ANN] Free JSP Editor for Eclipse
>
>
> Dear Java Developer,
>
> For a limited time, M7 is offering the NitroX JSP Editor for Eclipse
for
> FREE!*
> Download: http://www.m7.com/free
>
> NitroX has received top scores from industry reviewers such as SD
> Magazine, CRN, JavaBoutique, and is officially a finalist for the
> upcoming Jolt Product Excellence Award for Best Web Development Tool
of
> the Year.
>
> The NitroX JSP Editor provides the following features:
>
> * Professional JSP source editor
> * Simultaneous 2-way source and visual JSP editors
> * JSP 2.0 (including EL) - Unequaled!
> * JSTL
> * Grapical editor for TLDs
> * Graphical editor for web.xml
> * Code completion
> * Custom tag library support
> * + much more
> * and it's FREE!
>
> Act now because this offer is available only for a limited time.
>
> Thank you,
>
>
> M7 Team
>
> * Restrictions apply; please see license agreement for details.
> FREE = No cost, gratuit, gratis, frei, libero...ok, there is a catch;
> this offer is only for a limited time. ;-)
>
>
>
>
>
> -
> 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]