You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gonzalez, Sergio Eduardo <se...@t-systems.es> on 2003/12/18 14:20:56 UTC

Off-topic : Calendar Struts

I know that it's off topic,  but I've need find a calendar similar Outlook make it in Struts and i was looking in a web and I didn't find nothing similar. 
If somebody  know, have, make it someone  pls, send me an email  

Thanks 

sergio



--------------------------------------------------------------------------------
Aquest missatge electrònic pot  contenir informació confidencial o privilegiada.
Si vostè no és el destinatari del  missatge, o l'ha rebut per error, si us plau
notifiqui-ho al remitent i destrueixi el missatge amb tot el seu contingut.
Està completament  prohibida  qualsevol  còpia, ús o distribució no autoritzada
del contingut d'aquest missatge electrònic.
--------------------------------------------------------------------------------
Este mensaje electrónico puede contener información confidencial o privilegiada.
Si usted  no es  el destinatario de este mensaje o lo ha recibido por error, por
favor notifíquelo al remitente y destruya el mensaje con todo su contenido.
Queda  expresamente  prohibida  cualquier  copia, utilización o  distribución no
autorizada del contenido de este mensaje electrónico.
--------------------------------------------------------------------------------
This e-mail may contain confidential and/or privileged information.
If you  are  not the  intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any  unauthorized  copying,  disclosure  or distribution of the material in this
e-mail is strictly forbidden.
--------------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Access ResourceBundle

Posted by Peter Sloots <pe...@xs4all.nl>.
Here you go?

<%
      org.apache.struts.util.MessageResources mr = org.apache.struts.validator.Resources.getMessageResources(request);	
      if (loginForm.getUsername.equalsIgnoreCase( mr.getMessage("key.value") )
      {
            ....
      }
%>


*********** REPLY SEPARATOR  ***********

On 19-12-2003 at 13:34 Manuel Lenz wrote:

>Hi to all,
>it is simple to get Data from the strutsRessourceBundle with the jspTag.
>But I need to get ResourceData inside a java-Part of the jsp-page and
>inside an ActionClass.
>
>For example
>
><%
>      if (loginForm.getUsername.equalsIgnoreCase( ----ResourceData ----)
>      {
>            ....
>      }%>
>
>Does anybody know how to get the Data?
>
>Cheers,
>Manuel
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Access ResourceBundle

Posted by Manuel Lenz <Lz...@viessmann.com>.




Hi to all,
it is simple to get Data from the strutsRessourceBundle with the jspTag.
But I need to get ResourceData inside a java-Part of the jsp-page and
inside an ActionClass.

For example

<%
      if (loginForm.getUsername.equalsIgnoreCase( ----ResourceData ----)
      {
            ....
      }%>

Does anybody know how to get the Data?

Cheers,
Manuel


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Struts test cases

Posted by Tim Lucia <ti...@yahoo.com>.
I am using it with Eclipse...  I had to do some things in setUp() to
make it work:

    /*
     * @see TestCase#setUp()
     */
    public void setUp() throws Exception {
        super.setUp();
        // STC2.0 requires the file context to be set, at least from
        // Eclipse.  STC2.1.0 is supposed to fix this.
        setContextDirectory(new File("ILT/"));
        // Set the module to "ilt"; load ilt's config file
        this.setConfigFile("ilt", "/WEB-INF/ilt/struts-config-ilt.xml");
        setRequestPathInfo("ilt", "/Welcome"); // login
        actionPerform();
    }

Tim Lucia

> -----Original Message-----
> From: Ovidiu EFTIMIE [mailto:oeftimie.teamlog@assemblee-nat.fr] 
> Sent: Thursday, December 18, 2003 12:05 PM
> To: Struts Users Mailing List
> Subject: Struts test cases
> 
> 
> Hi,
> Has anyone used WSAD 5.0 with StrutsTestCase 2.0 ?
> I've only succeded to make it work after several operation 
> which don't inspire me much confidence, or maybe is just me  
> taking  the hard way. Is there anyone there who used this and 
> can give me some hints?
> 
> Thanx,
> Ovidiu
> 
> PS: For anyone interested here are the steps I took to make 
> it work the way it does
> 
> [1]. in setUp() add
> setContextDirectory(new File("D:\\workspace\\strutsJunit\\jsp"));
> setConfigFile("/WEB-INF/struts-config.xml");
> [2.]Replace the  servletunit.ServletContextSimulator 
> getRessource() method content with try {
>    return this.getClass().getResource(path);
>  } catch (Exception e) {
>       return null;
>  }
> [3.]execute ant to build a new strutstest-2.0.0.jar (the new 
> one has 42K) [4.]replace in the /WEB-INF/lib/ 
> strutstest-2.0.0.jar (38K) with the new one [5.]In your 
> /WEB-INF/classes/ create a directory called /WEB-INF/ and 
> copy struts-config.xml and web.xml there Run your tests
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Struts test cases

Posted by Ovidiu EFTIMIE <oe...@assemblee-nat.fr>.
Hi,
Has anyone used WSAD 5.0 with StrutsTestCase 2.0 ?
I've only succeded to make it work after several operation which don't inspire
me much confidence, or maybe is just me  taking  the hard way.
Is there anyone there who used this and can give me some hints?

Thanx,
Ovidiu

PS: For anyone interested here are the steps I took to make it work the way it
does

[1]. in setUp() add
setContextDirectory(new File("D:\\workspace\\strutsJunit\\jsp"));
setConfigFile("/WEB-INF/struts-config.xml");
[2.]Replace the  servletunit.ServletContextSimulator getRessource() method
content with
try {
   return this.getClass().getResource(path);
 } catch (Exception e) {
      return null;
 }
[3.]execute ant to build a new strutstest-2.0.0.jar (the new one has 42K)
[4.]replace in the /WEB-INF/lib/ strutstest-2.0.0.jar (38K) with the new one
[5.]In your /WEB-INF/classes/ create a directory called /WEB-INF/ and copy
struts-config.xml and web.xml there
Run your tests


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Off-topic : Calendar Struts

Posted by David Friedman <hu...@ix.netcom.com>.
If you want calendars as a grid layout like so:

Su Mo Tu We Th Fr Sa
    1  2  3  4  5  6
...etc ....

For Javascript try: http://dynarch.com/mishoo/calendar.epl for

For a JSP Taglib try: http://www.servletsuite.com/servlets/caltag.htm
OR

http://www.aoc.nrao.edu/~bwaters/pub/taglib/calendar-taglib.html

Regards,
David

-----Original Message-----
From: Martin Gainty [mailto:mgainty@hotmail.com]
Sent: Thursday, December 18, 2003 2:12 PM
To: Struts Users Mailing List
Subject: Re: Off-topic : Calendar Struts


I assume you checked out
http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html
Saludos,
Martin
----- Original Message -----
From: <Gonzalez Comesaña>; "Sergio Eduardo" <se...@t-systems.es>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, December 18, 2003 8:20 AM
Subject: Off-topic : Calendar Struts



I know that it's off topic,  but I've need find a calendar similar Outlook
make it in Struts and i was looking in a web and I didn't find nothing
similar.
If somebody  know, have, make it someone  pls, send me an email

Thanks

sergio



----------------------------------------------------------------------------
----
Aquest missatge electrònic pot  contenir informació confidencial o
privilegiada.
Si vostè no és el destinatari del  missatge, o l'ha rebut per error, si us
plau
notifiqui-ho al remitent i destrueixi el missatge amb tot el seu contingut.
Està completament  prohibida  qualsevol  còpia, ús o distribució no
autoritzada
del contingut d'aquest missatge electrònic.
----------------------------------------------------------------------------
----
Este mensaje electrónico puede contener información confidencial o
privilegiada.
Si usted  no es  el destinatario de este mensaje o lo ha recibido por error,
por
favor notifíquelo al remitente y destruya el mensaje con todo su contenido.
Queda  expresamente  prohibida  cualquier  copia, utilización o
distribución no
autorizada del contenido de este mensaje electrónico.
----------------------------------------------------------------------------
----
This e-mail may contain confidential and/or privileged information.
If you  are  not the  intended recipient (or have received this e-mail in
error)
please notify the sender immediately and destroy this e-mail.
Any  unauthorized  copying,  disclosure  or distribution of the material in
this
e-mail is strictly forbidden.
----------------------------------------------------------------------------
----

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Off-topic : Calendar Struts

Posted by David Friedman <hu...@ix.netcom.com>.
Okay Martin, I'll ask.....

I read your recommended jakarta taglib page.
It doesn't have a specific item for a calendar.
I see it does have components of calendars such
as month and weekday lists.  I even checked
the CVS listing for the version 1.1 (show on
the Jakarta navigation bars) and there is only
v 1.0.1, nothing higher that I can find.  So,
where is the calendar portion of this taglib?
What am I missing in your message?

(yes, I'm confused)

Regards,
David

-----Original Message-----
From: Martin Gainty [mailto:mgainty@hotmail.com]
Sent: Thursday, December 18, 2003 2:12 PM
To: Struts Users Mailing List
Subject: Re: Off-topic : Calendar Struts


I assume you checked out
http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html
Saludos,
Martin
----- Original Message -----
From: <Gonzalez Comesaña>; "Sergio Eduardo" <se...@t-systems.es>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, December 18, 2003 8:20 AM
Subject: Off-topic : Calendar Struts



I know that it's off topic,  but I've need find a calendar similar Outlook
make it in Struts and i was looking in a web and I didn't find nothing
similar.
If somebody  know, have, make it someone  pls, send me an email

Thanks

sergio



----------------------------------------------------------------------------
----
Aquest missatge electrònic pot  contenir informació confidencial o
privilegiada.
Si vostè no és el destinatari del  missatge, o l'ha rebut per error, si us
plau
notifiqui-ho al remitent i destrueixi el missatge amb tot el seu contingut.
Està completament  prohibida  qualsevol  còpia, ús o distribució no
autoritzada
del contingut d'aquest missatge electrònic.
----------------------------------------------------------------------------
----
Este mensaje electrónico puede contener información confidencial o
privilegiada.
Si usted  no es  el destinatario de este mensaje o lo ha recibido por error,
por
favor notifíquelo al remitente y destruya el mensaje con todo su contenido.
Queda  expresamente  prohibida  cualquier  copia, utilización o
distribución no
autorizada del contenido de este mensaje electrónico.
----------------------------------------------------------------------------
----
This e-mail may contain confidential and/or privileged information.
If you  are  not the  intended recipient (or have received this e-mail in
error)
please notify the sender immediately and destroy this e-mail.
Any  unauthorized  copying,  disclosure  or distribution of the material in
this
e-mail is strictly forbidden.
----------------------------------------------------------------------------
----

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Off-topic : Calendar Struts

Posted by Martin Gainty <mg...@hotmail.com>.
I assume you checked out
http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html
Saludos,
Martin
----- Original Message ----- 
From: <Gonzalez Comesaña>; "Sergio Eduardo" <se...@t-systems.es>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, December 18, 2003 8:20 AM
Subject: Off-topic : Calendar Struts



I know that it's off topic,  but I've need find a calendar similar Outlook
make it in Struts and i was looking in a web and I didn't find nothing
similar.
If somebody  know, have, make it someone  pls, send me an email

Thanks

sergio



----------------------------------------------------------------------------
----
Aquest missatge electrònic pot  contenir informació confidencial o
privilegiada.
Si vostè no és el destinatari del  missatge, o l'ha rebut per error, si us
plau
notifiqui-ho al remitent i destrueixi el missatge amb tot el seu contingut.
Està completament  prohibida  qualsevol  còpia, ús o distribució no
autoritzada
del contingut d'aquest missatge electrònic.
----------------------------------------------------------------------------
----
Este mensaje electrónico puede contener información confidencial o
privilegiada.
Si usted  no es  el destinatario de este mensaje o lo ha recibido por error,
por
favor notifíquelo al remitente y destruya el mensaje con todo su contenido.
Queda  expresamente  prohibida  cualquier  copia, utilización o
distribución no
autorizada del contenido de este mensaje electrónico.
----------------------------------------------------------------------------
----
This e-mail may contain confidential and/or privileged information.
If you  are  not the  intended recipient (or have received this e-mail in
error)
please notify the sender immediately and destroy this e-mail.
Any  unauthorized  copying,  disclosure  or distribution of the material in
this
e-mail is strictly forbidden.
----------------------------------------------------------------------------
----

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org