Re: Struts tag problem (bean:message and bean:write)

2004-03-25 Thread Daniel H A Lima
Marco, can you use bean:define and a scriptlet code
inside bean:message ? Something like :





 --- Marco Mistroni <[EMAIL PROTECTED]>
escreveu: > Hi all,
>   I was wondering if anyone of you have a solution
> For this dilemma.
> I have a collectin of product DTOs to show on my
> jsp. One of 
> DTO's property is, let's say, the type, which is
> listed in number.
> (let's say, 10 or 20).
> ON the DTO I will have the value 10,20 ecc but on
> the jsp I have to
> display
> The corresponding string (let's say, HouseProduct or
> Car or something
> else) which is listed in application.resources.
> 
> I am looping thru the collection using
> logic:iterate, and
> as I have found out myself, following code does not
> work
> 
> 
> 
> 
> basically in app.resources I will have
> prompt.productType.10=HouseProduct
> prompt.productType.20=Car
> 
> etc..
> 
> above, I am outputting the message  
> prompt.productType.(productType)
> 
> how can I solve my dilemma, keeping in mind that I
> am using also
> logic:iterate to loop thru the collection?
> 
> With best regards
>   marco
> 


__

Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora:
http://br.yahoo.com/info/mail.html

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



Re: db error

2004-03-25 Thread Daniel H. F. e Silva
About that url try this:

  jdbc:oracle:thin:@oci8:1521:ora9i

considering 'oci8' is your database server name and 'ora9i' is your Oracle's instance 
(service)
name.

Regards,
 Daniel Silva.

--- Larry Meadors <[EMAIL PROTECTED]> wrote:
> It has been a while since i used oracle, but that url looks wrong:
> 
> jdbc:oracle:thin:oci8:1521:ora9i
> 
> Can you have thin and oci in one url?
> 
> Larry
> 
> >>> [EMAIL PROTECTED] 03/25/04 4:10 AM >>>
> Thanks chris,
> so this is not because of any missing classes or jar files? is this a
> connectivity issue? the database server isup and my other applications
> sqlplusw can access it.
> any pointers?
> sorry about read reciept thing in my previous mail.
> rajat
> - Original Message -
> From: "McCormack, Chris" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, March 25, 2004 4:46 PM
> Subject: RE: db error
> 
> 
> Check your database is up before trying to connect to it. If it is and
> you
> can ping the database from your application server box, then check your
> spelling in the data source definition.
> 
> Chris McCormack
> 
> -Original Message-
> From: Rajat Pandit [mailto:[EMAIL PROTECTED]
> Sent: 25 March 2004 11:01
> To: Struts Users Mailing List
> Subject: db error
> 
> 
> Hello All,
> i am trying to connect a oracle database, and i get this stack trace,
> can
> someone please tell me what is wrong with it.
> 
> javax.servlet.UnavailableException: Initializing application data source
> org.apache.struts.action.DATA_SOURCE
>  at
> org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.j
> ava:1091)
>  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
>  at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>  at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
> 4)
>  at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
>  at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
> 3420)
>  at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
>  at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
> 21)
>  at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>  at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
>  at
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
> ava:257)
>  at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
>  at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569
> )
>  at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
>  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
>  at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
>  at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
> t.java:166)
>  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
>  at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
>  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>  at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>  at
> org.apache.catalina.core.StandardService.start(StandardService.java:497)
>  at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
>  at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
>  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> 
> 
> 
> 
> 
> <--- data sources -->
> 
> 
> 
> 
> 
>  value="oracle.jdbc.driver.OracleDriver" />
>  value="jdbc:oracle:thin:oci8:1521:ora9i" />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> <-- code -->
> ServletContext context = servlet.getServletContext();
> DataSource ds = (DataSource)
> context.getAttribute(Action.DATA_SOURCE_KEY);
> 

Re: problem with module

2004-03-25 Thread Daniel
If someone know the solution help us..


- Original Message - 
From: "Daniel" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 11:01 AM
Subject: Re: problem with module


> Hi I have the the same problem, but in other situation, I using popups
> windows of other modules, if you find the solution tell me , if I find the
> solution I tell you...
>
> - Original Message - 
> From: "ruben" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, March 25, 2004 6:19 AM
> Subject: problem with module
>
>
> > hi everybody, excuse me for my english,
> > that is the scenario,
> >  i've got 2 modules, default and mod1, i call from mod1 an action that
> > load a page with  2 iframes, that load a page resource, these resources
> > are in the /page context, struts add /mod1 to the context, and i have to
> > use a SwitchAction. My problem is when load a form that is in the page
> > resource,i've got a ServletException: Cannot retrieve mapping for action
> > /GestionUbicacion,
> > i try to prepend /mod1 but i've got the same error, does anybody know
> > the way to slove this?
> > thanks a lot.
> >
> >
> >
> >
> > -
> > 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: problem with module

2004-03-25 Thread Daniel
Hi I have the the same problem, but in other situation, I using popups
windows of other modules, if you find the solution tell me , if I find the
solution I tell you...

- Original Message - 
From: "ruben" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 6:19 AM
Subject: problem with module


> hi everybody, excuse me for my english,
> that is the scenario,
>  i've got 2 modules, default and mod1, i call from mod1 an action that
> load a page with  2 iframes, that load a page resource, these resources
> are in the /page context, struts add /mod1 to the context, and i have to
> use a SwitchAction. My problem is when load a form that is in the page
> resource,i've got a ServletException: Cannot retrieve mapping for action
> /GestionUbicacion,
> i try to prepend /mod1 but i've got the same error, does anybody know
> the way to slove this?
> thanks a lot.
>
>
>
>
> -
> 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]



Set focus and html:messages

2004-03-25 Thread Daniel
I need set focus on the input field, but it's depends of the error. Then how can I 
make to read the type of msg for set this focus,the job of set focus is javascript 
.it's ok, my dificult is verify the type of message, someone know one way tho make 
it..., I set the message on the action










cheers

Daniel S.


html:javascript question

2004-03-24 Thread Daniel
I want to put the msg inside a javasript alert (popup with error message ),some one 
know how can I make it ???













[OT] Is it possible to use commons-el in a standalone application?

2004-03-23 Thread Daniel H. F. e Silva
Hi,
 I know this is an off-topic message, but as many people here works with Jakarta 
Commons
components, i decided to start my search in this list.
 I was thinking about writing a Swing app where its config file would be a XML file. 
And i'd like
to put EL expressions in that file. So, my question is: is it possible to embed EL 
into a
standalone app? 
 I was reading commons-el API docs and they make a lot of references to JSP 
implementation classes
(PageContext, VariableResolver, etc). So, in first glance, looks it is not possible. 
Is my
conclusion right?

 Thanks in advance for any hint.

Regards,
 Daniel Silva.

__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Organization chart...

2004-03-18 Thread Daniel
Someone know one way to build a organization chart (dinamic the informations come from 
data base), some tag or any other ideia is very wellcome.


cheers
Daniel S.

RE: non-ascii characters

2004-03-16 Thread Daniel Lipofsky
> I have a database with ISO 3166 country
> names and codes that I use to populate an html:select. There 
> is one country in the list that contains a non-ascii 
> character and I want to make sure it shows up properly. That 
> country is listed in HTML as ÅLAND ISLANDS
> 
> I have two questions regarding this non-ascii:
> 1) How should I encode it in my (mysql)
> database? Right now I put it in with the character reference 
> as written above.
> 
> 2) Assuming I leave it the way it is in
> the database as stated in 1) above, how
> do I get the html tag machinery to not
> attempt to escape the ampersand? This
> is the code I am using:
> 
> 
> 
>property="value" labelProperty="label"/> 

RTFM.
You want filter="false".

Also if you are using struts 1.1 you can use
html:optionsCollection instead of
html:options.  You will find it much nicer.
Specifically you will not have to declare you
value and label.  In either case you will want
filter="false".

- Dan


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



logic:equal

2004-03-16 Thread Daniel
Why it doesn't work, but if I change the value of bean:define value attribute for 
value="1", it's work? I need compare dinamic values.


   
   
The string contained the word Struts



cheers
Danie S.

Re: logic:iterate

2004-03-16 Thread Daniel
  <%int rest=3;%>
  
  <% int line = index.intValue() % 3; %>

  <%=linha%>

  
 Printed 
  

  
 Printed
  

  

How can I compare line with rest, what atributes I need to use, at the
logic:notEqual I don't need bean information, I just need compare line value
with rest value, if line value is zero jump for the other line.

cheers
Daniel S.


- Original Message - 
From: "as as" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 16, 2004 2:43 PM
Subject: Re: logic:iterate


> Daniel,
>
> A litle bit more info on what the columns are holding...
> becuase can you make them rows...then logic:iterate is easy to use...
>
> -Sam.
>
> Daniel <[EMAIL PROTECTED]> wrote:
> How can I make to print 3 coluns for line with iterate, the modulos is a
ArrayList populate with myBean (atributes:modulo_nome,modulo_path) objects ,
the problem is divide it in 3 coluns for line.Here my source code :
>
>
>
>
> " parameter="0">
>
>
> >
>
>
> " parameter="0">
> >
>
>
>
>
>
>
> cheers
> Daniel S.
> Do you Yahoo!?
> Yahoo! Mail - More reliable, more storage, less spam


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



logic:iterate

2004-03-16 Thread Daniel
How can I make to print 3 coluns for line with iterate, the modulos is a ArrayList 
populate with myBean (atributes:modulo_nome,modulo_path) objects , the problem is 
divide it in 3 coluns for line.Here my source code :


 
   <% int line = index.intValue() % 3; %>
   

   >   
  
  

   > 
  
  

   



cheers
Daniel S.

RE: a security framework!

2004-03-11 Thread Daniel Lipofsky
I did something similar.  I extended each struts HTML tag
to take a rule and evaluate it in doStartTag.
It then returns SKIP_BODY to hide it or
super.doStartTag() to show it.  Similarly doEndTag()
returns EVAL_PAGE to hide it or super.doEndTag()
to show it.  I actually have 3 security levels and
I call setDisabled() to disable the field if it
is visible but not editable.  It's not hard.
- Dan

> -Original Message-
> From: Mailing List [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 10, 2004 8:17 PM
> To: [EMAIL PROTECTED]
> Subject: a security framework!
> 
> Hi,
> I'm developing a web application with struts framework.I want 
> to design some jsp pages that support security at pages 
> level.The security that I want to be supported is that some 
> components of each page can be shown for certain user.I mean 
> that for each user deponds on his access to the system we can 
> show some components of each page and does'nt show other 
> components.Each user deponds on his type and access at the 
> system just can see his own pages.can you offer a good 
> framework for this goal that be compatible with struts framework.
>   
> Regards
> 

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



Re: help implementing modules...

2004-03-11 Thread Daniel
ops ;-) and contextRelative too.


- Original Message - 
From: "Liu, Anne I" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, March 11, 2004 5:08 PM
Subject: RE: help implementing modules...


> I don't know if this will help, but you have to prepend the module name
into
> your URL.
>
> Thus, your link should look like
>
> 
>
> I've found the short section in the struts the most helpful when dealing
> with modules
>
>
http://jakarta.apache.org/struts/userGuide/configuration.html#dd_config_modu
> les
>
> > -Original Message-
> > From: Damm, Gary [SMTP:[EMAIL PROTECTED]
> > Sent: Thursday, March 11, 2004 1:56 PM
> > To: [EMAIL PROTECTED]
> > Subject: help implementing modules...
> >
> > I've successfully used Struts for several applications and have been
> > very happy with it.  I am getting ready to use it for a larger project
> > and would like to use modules but I'm having some problems.
> >
> > It appears that when I attempt to switch from the default module to a
> > new module (module1) it never actually recognizes the new module.  When
> > I attempt to go to a page in the new module that references an action
> > that is defined in the new module action mappings I consistently get the
> > following error.  I have looked through the documentation and browsed
> > the list archive and still can not figure out what I'm doing wrong.  Any
> > help appreciated.
> >
> > Also, if anyone knows a good book that documents modules well I'd like
> > to know (Struts In Action and Jakarta Struts have little information on
> > modules).
> >
> > The error:
> > ...
> > [2004/03/11 11:23:07] Cannot retrieve mapping for action /DomainSearch
> > javax.servlet.jsp.JspException: Cannot retrieve mapping for action
> > /DomainSearch
> > at
> > org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:810)
> > at
> > org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
> > at
> > org.apache.strutsel.taglib.html.ELFormTag.doStartTag(ELFormTag.java:324)
> > at _module1._home__jsp._jspService(_home__jsp.java:448)
> > ...
> >
> > Here is my web.xml where I define the module:
> >
> > ...
> > 
> > config/module1
> > /WEB-INF/struts-config-module1.xml
> > 
> > ...
> >
> > Here is my forward to the page in module1:
> > ...
> >  >   path="/Module1HomeLink"
> >   type="com.qualcomm.bds.struts.SampleAppSuccessAction"
> >   unknown="false"
> >   validate="false" >
> >
> >> name="success"
> > path="/module1/Home.jsp"
> > contextRelative="true"
> > redirect="true" />
> >
> > 
> > ...
> >
> > Here is my link on the originating jsp (in default module):
> > ...
> >  > key="label.module1"/>
> > ...
> >
> > Here is the form in the new module that references the action:
> > ...
> > 
> > ...
> >
> > Here is the action in the module1 config file:
> > ...
> >  >   path="/DomainSearch"
> >   name="SearchForm"
> >   type="com.qualcomm.bds.struts.SampleAppSearchAction"
> >   unknown="false"
> >   validate="true"
> >   input="/module1/Home.jsp" >
> >
> >> name="success"
> > path="/module1/List.jsp"
> > contextRelative="true" />
> >
> >  > key="errors.generic"
> > type="java.lang.Exception"/>
> >
> > 
> > ...
> >
> > -
> > 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 implementing modules...

2004-03-11 Thread Daniel
take out the redirect attribute.

Abraços
Daniel S.

- Original Message - 
From: "Liu, Anne I" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, March 11, 2004 5:08 PM
Subject: RE: help implementing modules...


> I don't know if this will help, but you have to prepend the module name
into
> your URL.
>
> Thus, your link should look like
>
> 
>
> I've found the short section in the struts the most helpful when dealing
> with modules
>
>
http://jakarta.apache.org/struts/userGuide/configuration.html#dd_config_modu
> les
>
> > -Original Message-
> > From: Damm, Gary [SMTP:[EMAIL PROTECTED]
> > Sent: Thursday, March 11, 2004 1:56 PM
> > To: [EMAIL PROTECTED]
> > Subject: help implementing modules...
> >
> > I've successfully used Struts for several applications and have been
> > very happy with it.  I am getting ready to use it for a larger project
> > and would like to use modules but I'm having some problems.
> >
> > It appears that when I attempt to switch from the default module to a
> > new module (module1) it never actually recognizes the new module.  When
> > I attempt to go to a page in the new module that references an action
> > that is defined in the new module action mappings I consistently get the
> > following error.  I have looked through the documentation and browsed
> > the list archive and still can not figure out what I'm doing wrong.  Any
> > help appreciated.
> >
> > Also, if anyone knows a good book that documents modules well I'd like
> > to know (Struts In Action and Jakarta Struts have little information on
> > modules).
> >
> > The error:
> > ...
> > [2004/03/11 11:23:07] Cannot retrieve mapping for action /DomainSearch
> > javax.servlet.jsp.JspException: Cannot retrieve mapping for action
> > /DomainSearch
> > at
> > org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:810)
> > at
> > org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
> > at
> > org.apache.strutsel.taglib.html.ELFormTag.doStartTag(ELFormTag.java:324)
> > at _module1._home__jsp._jspService(_home__jsp.java:448)
> > ...
> >
> > Here is my web.xml where I define the module:
> >
> > ...
> > 
> > config/module1
> > /WEB-INF/struts-config-module1.xml
> > 
> > ...
> >
> > Here is my forward to the page in module1:
> > ...
> >  >   path="/Module1HomeLink"
> >   type="com.qualcomm.bds.struts.SampleAppSuccessAction"
> >   unknown="false"
> >   validate="false" >
> >
> >> name="success"
> > path="/module1/Home.jsp"
> > contextRelative="true"
> > redirect="true" />
> >
> > 
> > ...
> >
> > Here is my link on the originating jsp (in default module):
> > ...
> >  > key="label.module1"/>
> > ...
> >
> > Here is the form in the new module that references the action:
> > ...
> > 
> > ...
> >
> > Here is the action in the module1 config file:
> > ...
> >  >   path="/DomainSearch"
> >   name="SearchForm"
> >   type="com.qualcomm.bds.struts.SampleAppSearchAction"
> >   unknown="false"
> >   validate="true"
> >   input="/module1/Home.jsp" >
> >
> >> name="success"
> > path="/module1/List.jsp"
> > contextRelative="true" />
> >
> >  > key="errors.generic"
> > type="java.lang.Exception"/>
> >
> > 
> > ...
> >
> > -
> > 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: [OT] Database password

2004-03-11 Thread Daniel Henrique Alves Lima
   Guillermo, we're also using DBCP.

   Our approach is to use our own Properties subclass. This subclass 
can read (and "decrypt") a previously encrypted property file (using a 
2-way dummy encryption algorithm)...
   I don't know if this is the best way but it works for us :-)


 
 
 

 
  
Guillermo Meyer wrote:

Hi:
Our Struts application is currently in production. This applciation uses
an Oracle Database (we are using DBCP from jakarta).
We access this database through url, user a password and we need to
"hide" the production database password. The password is stored in a
configuration file and is in plain text.
Have you got some "best practices" in this scenario? How are your Java
Applications get connected to production databases and how is the
database password protected?
If we encrypt the password with 3DES, how should the key be protected?
Cheers.
Guillermo.
NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las 
personas direccionadas en el mail y puede contener informacion (i)de propiedad 
exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier 
opinion en el contenido, es exclusiva de su autor y no representa necesariamente la 
opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion 
esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna 
por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha 
recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo 
inmediatamente junto con todas las copias del mismo, notificando al remitente. No 
debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus 
partes si usted no es el destinatario. Muchas gracias.
 



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


Re: AW: textarea

2004-03-11 Thread Daniel Henrique Alves Lima


I think that "post" is the default but i'm not sure...

as as wrote:

Andreas,

Thanks for the quick reply.
I am using struts form tag as follows.
wondering ,syntax wise, how I can mention form method as GET...in this tag.
Thanks in advance,
Sam.
 



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


Re: map-backed action forms - form params not loaded ?

2004-03-11 Thread Daniel Henrique Alves Lima
Raghu, i think this .html is wrong. It must be like :





Please, try it.

Raghu Havaldar wrote:

I do not have a problem while displaying those properties. However, 
when a form (which has a bunch of
params like the one below) is submitted, the ActionForm's setValue 
method is not called.

e.g. This is plain html, no jsp.




Have you used a map-backed action form to capture params from a 
submitted form ?
Have observed lots of folks having this problem.

thanks,
raghu


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


Re: textarea

2004-03-11 Thread Daniel Henrique Alves Lima
 You must be carefull. You can don't see the whole text (because the \n 
characteres).
Are you using an java IDE to debug your source ? If this is true, try to 
write the contents of your property in your log file...

as as wrote:

Hi,



I am generatinga textare on my jsp with this:





BUt if i enter a large peice of text in the textarea and save it (try to save it) in my bean, its not getting the whole chunck of data (like a paragraph or a page)>

ANything wrong i may be doing? how to fix it...

Thanks in advance





-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.
 



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


Re: Cookies And Session Problems

2004-03-10 Thread Daniel Henrique Alves Lima
Ciaran, Brian is right.

Using IE, you can get a different session if you try to execute a new 
instance of IE (do not use "Open a new window"). But you must be 
carefull because even the links in Windows' startup menu can just "Open 
a new window" (instead starts a new IE instance).

When you are using Netscape/Mozilla, try to use 2 different profiles 
(again, "Open a new Window" will make Netscape or Mozilla share the 
stored cookies).

I hope this helps you.

Brian Lee wrote:

It looks like your two browser sessions are sharing the same memory 
used to store cookies. So your application server treats requests from 
both browsers as in the same session (since they send the same 
jsessionid cookie). In IE you used to be able to correct his by 
checking "launch in new process" in Tools|Internet Options, but I no 
longer see this in IE 6.0.2800.1106

If you open your site in IE and in Mozilla at the same time you will 
have separate sessions.

BAL




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


Re: map-backed action forms - form params not loaded ?

2004-03-10 Thread Daniel Henrique Alves Lima
   How do look like the properties in your form ? Something like this :



   ?

   Are the other properties (non map-backed) ok ?

Raghu Havaldar wrote:

Hi,

Am using Struts 1.1, WinXP.

Trying to use map-backed action forms to load a dynamic list of params 
from a
form. When the form is submitted, the params are not loaded in the 
action form.
Am following the guidelines as speced in the Struts docs.

Here's a snippet:
public ParamsForm extends ActionForm {
   private Map params = new HashMap();
   public void setValue(String key, Object value) {
  params.put(key, value);
   }
   public Object getValue(String key) {
  return params.get(key);
   }
}
Have pored over the mailing list archivers. Folks seem to have gotten 
this working.

Any pointers ?

thanks,
raghu
-
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 ,action path

2004-03-09 Thread Daniel Henrique Alves Lima
 The exception is been generated when .jsp is rendered (and not when you
submit the form), hum ?
Try to enable struts debug log (in your log4j config file) and try to
check the package/name of your action (in struts-config.xml)...


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



Re: help ,action path

2004-03-09 Thread Daniel Henrique Alves Lima
 Sorry, my mistake.
When you use "view source" of your browser, how does the html code look
like ?


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



Re: help ,action path

2004-03-09 Thread Daniel Henrique Alves Lima
Please, try


or


You can also do a "view source" and look the html generated by tag





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



Re: Iterating List

2004-03-09 Thread Daniel Henrique Alves Lima
How about this ?


  

Ramadoss Chinnakuzhandai wrote:

finally I got the following working..




-Ramadoss
 



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


Re: Newbie Q

2004-03-09 Thread Daniel Henrique Alves Lima
I don't know if your construction is possible (i think it is). But try 
to use  :


Link Text
Kunal H. Parikh wrote:

Hi All!

Can someone tell me as to how do I call  inside 
Example:
">Link
Text
I investigated a little abt nested tags, but I don't think that it is
applicable here.
TIA,

Kunal



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

2004-03-09 Thread Daniel Henrique Alves Lima
Try  
(http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate) 
and  
(http://jakarta.apache.org/struts/userGuide/struts-bean.html#write).

Look at mail archive 
(http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]). 

I think somebody has been sent a question like yours.

I hope this helps you...

Ramadoss Chinnakuzhandai wrote:

I need to iterate and display collection object "List" containing objects of type "String" in my JSP, I know that if the collection is of type Array I can index and get all the objects but  is there anyway I can iterate this List object and disply its String objects in my JSP(without having to convert the list to Array).

Thanks for your help

-Ramadoss

-
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: Getting values from two different beans in the same form

2004-03-09 Thread Daniel Henrique Alves Lima
   I don't know if a got it...You can use nested beans inside your 
ActionForm, like:

FirstBean -> has get/set name and get/set id
SecondBean -> has get/set version
MyActionForm -> has get/set firstBean and secondBean

   You can do :


  
  Hi,

I have a question on using two beans in same form.
I get the followig error:
javax.servlet.jsp.JspException: No getter method for property name of bean testModule
basically I am trying to access name and id of bean1 and version of bean2 to show in 
the same one form...
is this possible..
samples appreciated.
thanks much,
Sam
-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
 



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


Re: people using action form field

2004-03-09 Thread Daniel Henrique Alves Lima
document.forms[0].action='somethig.do' works to me...

to change a field with name "action", i guess you must do something like 
document.forms[0].action.value

Slattery, Tim - BLS wrote:

If you use a field called "action" in the form, how can you 
change the form action with javascript. When I try to set the 
document.form.action it tries to set the field instead of the 
action for the form. Is there any other way to change the 
action for the form?
   



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


Re: Problems with UTF-8 and forms

2004-03-09 Thread Daniel Henrique Alves Lima
You can try this also: http://jakarta.apache.org/tomcat/faq/misc.html#utf8


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 
Monday, March 01, 2004 3:47 AM
To: Struts Users Mailing List
Subject: Re: Problems with UTF-8 and forms

On 03/01/2004 12:29 AM Jon Bohm wrote:
 

BUT if I rewrite my custombean's getValue method it all works fine 
(except for swedish uppercase letters):

public String getValue()
{
   return new String( value.getBytes(), "UTF-8");
}
  


Still shouldn't be necessary.

 

Apache Tomcat/5.0.12
Java 1.4.2_01-b06
Struts 1.1 (I think - how do I check?)
Windows XP (I know, I'm a Linuxdude gone bad)
  




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


Re: Problems with UTF-8 and forms

2004-03-09 Thread Daniel Henrique Alves Lima
   I don't know if this will help but try to search "charset encoding" 
at tomcat maillist archive. You will find some tips in there.
   Take a look at http://tagunov.tripod.com/i18n/i18n.html (try to 
contact Anton, if you want).
  

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 01, 2004 3:47 AM
To: Struts Users Mailing List
Subject: Re: Problems with UTF-8 and forms

On 03/01/2004 12:29 AM Jon Bohm wrote:
 

BUT if I rewrite my custombean's getValue method it all works fine 
(except for swedish uppercase letters):

public String getValue()
{
   return new String( value.getBytes(), "UTF-8");
}
   

Still shouldn't be necessary.

 

Apache Tomcat/5.0.12
Java 1.4.2_01-b06
Struts 1.1 (I think - how do I check?)
Windows XP (I know, I'm a Linuxdude gone bad)
   

Open up struts.jar in winzip or something and view META-INF/MANIFEST.mf 
- check implementation-version.

So what does the debugging say at the end of your JSPs? Is your response 
UTF-8 or iso- encoded? I bet it says the page content-type is still 
iso-8859.

How are you setting your struts controller parameter (in struts-config.xml):


 



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


Re: collection of strings (newbie question)

2004-03-09 Thread Daniel H. F. e Silva
Hi all,

  Other possibility is to check whether 'myBean' exists in some scope. 

Cheers,
 Daniel Silva.


--- Daniel Henrique Alves Lima <[EMAIL PROTECTED]> wrote:
>Have you import logic taglibs ?
> 
> steve hazelwood wrote:
> 
> >I have an action that creates a bean. That bean has a
> >property myStrings that returns a collection of String
> >objects.
> >
> >On a jsp, I want to list the strings. If my jsp has
> >this:
> >
> > >property="myStrings">
> >  
> >
> >
> >Then I get an exception "Cannot find bean myId in any
> >scope".
> >
> >I can understand that cos myId is a String not a bean.
> >What should I use instead of bean:write ?
> >
> >Steve
> >
> >
> >
> > 
> > 
> > 
> >___
> >Yahoo! Messenger - Communicate instantly..."Ping" 
> >your friends today! Download Messenger Now 
> >http://uk.messenger.yahoo.com/download/index.html
> >
> >-
> >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]
> 


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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



Re: collection of strings (newbie question)

2004-03-09 Thread Daniel Henrique Alves Lima
  Have you import logic taglibs ?

steve hazelwood wrote:

I have an action that creates a bean. That bean has a
property myStrings that returns a collection of String
objects.
On a jsp, I want to list the strings. If my jsp has
this:

 

Then I get an exception "Cannot find bean myId in any
scope".
I can understand that cos myId is a String not a bean.
What should I use instead of bean:write ?
Steve



	
	
		
___
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

-
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: Cookies And Session Problems

2004-03-09 Thread Daniel Henrique Alves Lima
I think that i've found the problem. Please, look below :

Ciaran Hanley wrote:

Hi thanks for your reply,

I am using form based authentication. Cookies are enabled. I am storing all
session information using request.getSession() for example:
request.getSession().getServletContext().setAttribute("user", loggedUser);

stores the user bean in the session.

   Ciaran, you must use request.getSession().setAttribute( 
"user",loggedUser );

   When you use

request.getSession().getServletContext().setAttribute("user", loggedUser);

	you're putting your bean at application scope...



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


Re: Cookies And Session Problems

2004-03-09 Thread Daniel Henrique Alves Lima
I think that i've found the problem. Please, look below :

Ciaran Hanley wrote:

Hi thanks for your reply,

I am using form based authentication. Cookies are enabled. I am storing all
session information using request.getSession() for example:
request.getSession().getServletContext().setAttribute("user", loggedUser);

stores the user bean in the session.

   Ciaran, you must use request.getSession().setAttribute(
"user",loggedUser );
   When you use

request.getSession().getServletContext().setAttribute("user", loggedUser);

	you're putting your bean at application scope...





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


RE: [Suggestion] struts-user-newbie list

2004-03-08 Thread Daniel H. F. e Silva
Hi Andrew,

  Good point.
  Freedom of choice is very appreciated and is one the axioms of open-source community 
;-)
  By the way, I'd like to invite all newbies and even Struts gurus to join us at 
#struts_users IRC
channel at irc.darkmyst.org. There you can get help and meet some of the coolest guys 
in Struts
world (myself included ;-)). You can, at least, have fun there!

Cheers,
 Daniel Silva.




--- Andrew Petro <[EMAIL PROTECTED]> wrote:
> 
> My hope was that differentiating the lists Struts might make the email load
> more tractable for everyone.
> 
> Struts gurus might very well look at a new list for newbies and choose not
> to subscribe.  I don't see this as a problem.  Struts gurus helping newbies
> is a wonderful thing, but we're all volunteers here and if the gurus would
> prefer not to be on the newbie list, they should be empowered to make that
> decision.
> 
> It is true that differentiating the lists might lower the threshold for
> newbie effort prior to newbie posts.  However, the existing infrastructure
> for encouraging everyone to think, read, Google, etc. before posting would
> still be in place and could apply equally to the struts-user-newbies list.
> 
> However, separating out a newbies list would allow newbies to helped by
> those Struts gurus who are most generous, patient, or have whatever other
> attributes that make them want to help newbies, while not annoying other
> Struts subscribers who are less interested in this.  This accommodation
> might help to preserve the friendly and supportive character of the list for
> newbies even as Struts continues to grow.
> 
> What I think differentiating the lists would do is empower subscribers to
> separate out the two streams and manage them independently.  It feels to me
> like there really are two simultaneous streams of messages on this list.  
> 
> When things get crazy at work I could choose to fail to keep up with the
> struts-user-newbie list and delete the messages unread without feeling that
> I was risking something I'd need to know.  Or, for that matter, when things
> get crazy at work I could choose to come home and see if there's someone to
> be helped out on the struts-user-newbie list, letting the more demanding
> struts-user material go until things settle down again.  I don't know for
> sure how people would use the ability to differentiate, but I think volume
> on the list is sufficient that it would be worth giving subscribers this
> ability.
> 
> >   My point is: will Struts gurus that participate this list subscribe to
> > one more list? I think
> > they are too busy for increasing their email load a bit more.
> >   Newbies could get a better help if, before posting to this list, they
> > did homework: i mean, read
> > Struts docs, Google, etc. I'm not sure about this number, it is just a
> > guessing, but based on my
> > experience in this list, 95% of the questions are already answered. You
> > just have to find that
> > answer, and that is what Google is for.
> > 
> >   My two cents.
> > 
> > Cheers,
> >  Daniel Silva.
> > 
> > 
> > 
> > --- Daniel Henrique Alves Lima <[EMAIL PROTECTED]> wrote:
> > > It sounds good to me !
> > >
> > > Andrew Petro wrote:
> > >
> > > >Incidentally, have there been any thoughts on this list of
> > differentiating
> > > >out a struts-user-newbie list from the main struts-user list?
> > > >
> > > >I think it's wonderful to have a welcoming place for newbies to post
> > > >questions, but I think it might also be useful to be able to
> > differentiate
> > > >opportunities to help out newbies / be helped as a newbie from
> > > >opportunities to ask more difficult questions / discuss more advanced
> > > >features of the framework.
> > > >
> > > >My two cents.
> > > >
> > > >
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Search - Find what youre looking for faster
> > http://search.yahoo.com
> > 
> > -
> > 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]
> 


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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



Re: [Suggestion] struts-user-newbie list

2004-03-08 Thread Daniel H. F. e Silva
Hi,

  My point is: will Struts gurus that participate this list subscribe to one more 
list? I think
they are too busy for increasing their email load a bit more.
  Newbies could get a better help if, before posting to this list, they did homework: 
i mean, read
Struts docs, Google, etc. I'm not sure about this number, it is just a guessing, but 
based on my
experience in this list, 95% of the questions are already answered. You just have to 
find that
answer, and that is what Google is for.
  
  My two cents.

Cheers,
 Daniel Silva.



--- Daniel Henrique Alves Lima <[EMAIL PROTECTED]> wrote:
> It sounds good to me !
> 
> Andrew Petro wrote:
> 
> >Incidentally, have there been any thoughts on this list of differentiating
> >out a struts-user-newbie list from the main struts-user list?  
> >
> >I think it's wonderful to have a welcoming place for newbies to post
> >questions, but I think it might also be useful to be able to differentiate
> >opportunities to help out newbies / be helped as a newbie from
> >opportunities to ask more difficult questions / discuss more advanced
> >features of the framework.
> >
> >My two cents.
> >  
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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



Multi-page session forms

2004-03-07 Thread Daniel Henrique Alves Lima
   Hi, everybody.

   Is there a pattern for multi-page session forms ? How should i 
proceed when using multi-page forms (like wizards) ? Must the fields be 
repeated (as input hidden) in all pages ? When (exactly) 
ActionForm.reset() will be called for forms like this ?

   Thanks in advance.

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


Re: Struts starter

2004-03-07 Thread Daniel Henrique Alves Lima
Frank, please, correct me if i'm wrong:

You have a Java Bean (validUser) and an ActionForm (PersonalDetailsForm) 
and you want to "transfer" property values from validUser to 
PersonalDetailsForm. Is it right ?

If the name of these properties are the same, you can use 
BeansUtil.copyProperties(dest,src) (from commons) to copy the values. 
Remember that the PersonalDetailsForm is also a bean (so you can direct 
set the values in it)...

Frank Burns wrote:

Hi,
I'm in the middle of working with my first application using Struts and desperately 
need some help.
I've read nearly all of Ted Husted's "Struts In Action" book and browsed the mailing 
list archives but have not found a solution for what I want to do.
I mention this to let you know that I have already tried hard, unsuccessfully, to find 
an answer to what seems to me to be a basic requirement.
However, I may be struggling with my own misunderstanding!
HERE'S THE BACKGROUND

I have a session bean (validUser) and I want to use its properties to initially populate a 
"PersonalDetails" form.
Then I want to use the validate() method of the related ActionForm 
(PersonalDetailsForm) to check the newly submitted details and, if failing validation, 
redisplay them in the PersonalDetails form, so that the user can correct them.
HERE'S THE QUESTION:

Where and how do I "initialize" (prepopulate) the form fields with the properties from the validUser bean, but then enable them to be populated with the information entered by the user when the form fails validation?

HERE'S WHAT I'VE TRIED

I've tried using  tags in the form, but they only seem to accept values from either the default form bean or from a specified bean -- so that seems only to a give a single source for populating the fields.

Thanks,

Frank.





 



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


[Suggestion] struts-user-newbie list

2004-03-07 Thread Daniel Henrique Alves Lima
It sounds good to me !

Andrew Petro wrote:

Incidentally, have there been any thoughts on this list of differentiating
out a struts-user-newbie list from the main struts-user list?  

I think it's wonderful to have a welcoming place for newbies to post
questions, but I think it might also be useful to be able to differentiate
opportunities to help out newbies / be helped as a newbie from
opportunities to ask more difficult questions / discuss more advanced
features of the framework.
My two cents.
 



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


Re: Problem with Map-backed ActionForm and Key value

2004-03-07 Thread Daniel Henrique Alves Lima
Try

<% String propertyName = "value(" + myId + ")"; %>


Brian Boyle wrote:

Hi!,
Thanks for the quick response.
I have already tried declaring myId as String myId = 
value.getCandId();. I then put myId as an argument in   but the key value is still being taken literally as <%=myId%>.

I don't know why it should be doing this because shouldn't you just be 
able to pass in an argument as long as it is of type String?

Brian



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


Re: 1 request & 2 forms

2004-03-06 Thread Daniel Henrique Alves Lima
   Solved !
   I don't know why but when i use multipart-form i get an error while 
populating the second form (like the case of Guillermo). Then i've 
removed enctype from html:form and everything works !

**Case 2** source.jsp -> AAction (AForm) -> BAction (BForm) -> 
destiny.jsp (BForm)

   Where AAction is only a org.apache.struts.actions.ForwardAction...

Thanks !



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


Re: 1 request & 2 forms

2004-03-06 Thread Daniel Henrique Alves Lima
Ok :-)

   I have 2 .jsp files (source.jsp and destiny.jsp). Between these two, 
i put an action (let's call it BAction). Either destiny.jsp and B action 
were expecting a BForm. So :

   **Case 1** source.jsp -> BAction (BForm) -> destiny.jsp (BForm)

   Now, i want to insert a new action (AAction) between source.jsp and 
BAction. My AAction will use a AForm, like :

   **Case 2** source.jsp -> AAction (AForm) -> BAction (BForm) 
-> destiny.jsp (BForm)

   But i want to struts automatic fills the properties of AForm and 
BForm with the parameters from my http request.
   I don't know why but, at case 2, when BAction receives BForm, its 
properties have just null values...

   Any glue ? I think i will use BeanUtils to fill the properties of 
the second form (B form)...

Thanks !

Geeta Ramani wrote:

Sorry, that wasn't how I understood your question.. and i'm not sure I *do*
understand your question now either.. would you explain your problem and what you
are trying to do once again..?
Daniel Henrique Alves Lima wrote:

 

Yes, i got a error.

I've just added a "org.apache.struts.actions.ForwardAction" (to struts
initializes and populates the session scoped form -> named A) between
the .jsp file (which contains the button) and a previous existent action
(the one which receives a new request scoped form -> named B). Now, the
attributes of B form are empty (i'm getting null values)...
Any idea ?

Geeta Ramani wrote:

   

I have never done this but i don't see why not.  When you press your submit
button on your jsp, an Action is called, right?  You can do whatever you
want in that execute method would be my guess.  So if you feel like saving
one form in session scope and another in in request attribute before you
forward to your new page, i don't see why you shouldn't be able to..  Do you
envision a problem?
Geeta



 

-
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: 1 request & 2 forms

2004-03-06 Thread Daniel Henrique Alves Lima
Yes, i got a error.

I've just added a "org.apache.struts.actions.ForwardAction" (to struts 
initializes and populates the session scoped form -> named A) between 
the .jsp file (which contains the button) and a previous existent action 
(the one which receives a new request scoped form -> named B). Now, the 
attributes of B form are empty (i'm getting null values)...

Any idea ?

Geeta Ramani wrote:

I have never done this but i don't see why not.  When you press your submit
button on your jsp, an Action is called, right?  You can do whatever you
want in that execute method would be my guess.  So if you feel like saving
one form in session scope and another in in request attribute before you
forward to your new page, i don't see why you shouldn't be able to..  Do you
envision a problem?
Geeta

 



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


1 request & 2 forms

2004-03-06 Thread Daniel Henrique Alves Lima
Hi.

Can i use the struts mechanism to fill 2 *different* action forms from 1 
http request ?
I've a button in a .jsp page. When the user to press this button, i need 
to save a session scoped form before forward to a new page (the new page 
uses another form). Is is possible ?

Thanks.

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


Re: redirects / actionErrors

2004-03-05 Thread Daniel Henrique Alves Lima
Ok, but i think you will lose your request attributes (because redirect 
will generate a new request from your browser)...Session or application 
attributes will be preserved.

mucus snot wrote:

Hi,

I am intending to use a redirect rather than a forward.

For me, it adds clarity for the user, and also if they refresh the 
page, they may get something unexpected.

Al

-
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: redirects / actionErrors

2004-03-05 Thread Daniel Henrique Alves Lima
   Hi,

   I don't know if i could understand your doubt (correct me if i'm 
wrong) but you must "forward" to your .jsp page and not "redirect"...

   If you have a global forward (in your struts-config.xml) like



   the request will be "forwarded" to the .jsp resource. But if you have



   the request will "redirected" (then you will "lose" the attributes 
in your request)

mucus snot wrote:

Hi,

I am using action errors as a means of passing messages to the request:

e.g.

in Action, execute method...

errors.add(ActionErrors.GLOBAL_ERROR, new 
ActionError("message.to.user"));
saveErrors(request, errors);
return mapping.findForward(Constants.REDIRECT_KEY);

But if I redirect from this action to another forward that is also an 
action, the actionError is out of scope.

I would be interested to know if
(a) this is good practice - to forward to another forward (it seems to 
work for me)
(b) there is an easy way to carry the actionError forward within 
storing in the session, and saving it in the redirected request.

Hope I'm making sense,

Thanks, al 




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


Re: Problem in iterating

2004-03-04 Thread Daniel Henrique Alves Lima
If the bean is an ActionForm, you must use the name of the form in the 
struts-config.xml.
If your bean is only a plain Java Bean, you must add it to request, 
session, page or application scopes (using request.setAttribute() or 
session.setAttribute, for instance)...

Vishal Arora wrote:

it's still giving same error

can not find WBSInfo  bean in any scope.

one thing i want to clarify like in iterate tag
id= can be any name
name=bean in whose set method  i have set my arraylist
and property= arraylist
is it right



 



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


Re: Pls help on Javascript

2004-03-04 Thread Daniel Henrique Alves Lima
You can find a validator example inside the struts-1.1 .tgz: 
struts-validator.war. Install it under Weblogic and check the validations...

sougata wrote:

HI Paul
Thanks for the reply.can u pls let me know how to do it in weblogic.Can u
pls send me a small example.
Thanks
Sougata
-Original Message-
From: Paul Stanton [mailto:[EMAIL PROTECTED]
Sent: Friday, March 05, 2004 10:38 AM
To: Struts Users Mailing List
Subject: Re: Pls help on Javascript
you can use a struts plugin called validator.. or you can write for
yourself. with validator you have to write your validation in xml.
-
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: JSF RI Final is out!

2004-03-04 Thread Daniel Joshua
>1.0 *final* version

Why are there '*'s around the word 'final' ?


Regards,
Daniel


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Friday, 05 March, 2004 2:03 AM
To: Struts Users Mailing List
Subject: RE: JSF RI Final is out!


Quoting Jitender Kumar C <[EMAIL PROTECTED]>:

> Just a small doubt...
> Is this a new release?
> sorry if I put a wrong query...
>

The main JavaServer Faces page on the web site is still not updated (talking
to
our web admins about it now), but the download page does indeed point at the
1.0 *final* version of JavaServer Faces.

Craig

> -Original Message-
> From: Christian Bollmeyer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 04, 2004 3:15 PM
> To: Struts Users Mailing List
> Subject: JSF RI Final is out!
>
>
> http://java.sun.com/j2ee/javaserverfaces/download.html
>
> -- Chris
>
> -
> 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]



success mapping to other module...

2004-03-04 Thread Daniel
How can I make the succes forward to go to other module like this:





It's doesn't work, I don't know if it possible, I created one action forward and set 
the success forward for this action forward and doesn't work too, the error at the 
internet explorer is : The request resource (Servlet action is not available) is not 
available.


abraços
Daniel S. 


RE: Multiple Forms

2004-03-02 Thread Daniel Czaban
It was an bug, I solved at
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22462

Thanks!!!


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



Multiple Forms

2004-03-02 Thread Daniel Czaban
I am working on a web project in which there is a need to submit two
forms from a same html file. 

Does anybody have such experience as submitting two forms separately?

Thanks!



Cannot retrieve mapping for action

2004-03-02 Thread Daniel
I have 2 modules moduleA and moduleB, and when I try to execute the action of muduleB 
this message open:

Cannot retrieve mapping for action inside my module, I need use relativepath inside my 
actionsmappings forwards on modules , because if i try use inside the action return 
new ActionForward(mapping.getInput()) its ok, but if I try to use one forward with the 
same path of input actionmapping i have this error.


obrigado
Daniel S.

Actions with Modules

2004-03-01 Thread Daniel
I have 2 modules (moduloA,moduloB), and I'm use SwitcAction, when I call page1.jsp 
from moduloB form it's ok, but doesn't work page1jsp action , I think the problem is 
just path, when I change module the  can't find actions.


obrigado
Daniel S.

RE: java.lang.NullPointerException struts form is null

2004-03-01 Thread Daniel Kalcevich
Try sending an empty email to
[EMAIL PROTECTED] 

Daniel 

-Original Message-
From: Tarik El Berrak [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 01, 2004 9:02 AM
To: Struts Users Mailing List
Subject: Re: java.lang.NullPointerException struts form is null

hi
excuse me, can you tell me can i unsubscribe from this mailig list
thanks a lot
- Original Message - 
From: "Daniel Kalcevich" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, March 01, 2004 5:40 PM
Subject: RE: java.lang.NullPointerException struts form is null


Try changing the "name" attribute in your config file to be
"TeacherAddForm" instead of "teacherAddForm".  

HTH.

Daniel 

-Original Message-
From: as as [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 01, 2004 8:29 AM
To: [EMAIL PROTECTED]
Subject: java.lang.NullPointerException struts form is null

Hi,
 
Struts form is giving null in my  action class .execute().Below are my
files.Hep appreciated.Thanks
 

import java.io.IOException;

import java.util.List;

import javax.servlet.ServletException;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;

import org.apache.struts.action.ActionForm;

import org.apache.struts.action.ActionForward;

import org.apache.struts.action.ActionMapping;



/**

* * @struts.action

* path="/addTeacher"

* name="teacherAddForm"

* scope="request"

* validate="false"

* * @struts.action-forward

* name="success"

* path="/teachers.jsp"

* * @struts.action-forward

* name="failure"

* path="/error.jsp"

*/

public final class TeacherAddAction extends Action {

/**

* @param actionmapping The ActionMapping

* @param actionform The ActionForm object

* @param httpservletrequest The httpservletrequest of the incoming
request

* @param httpservletresponse The httpservletresponse corresponding to
the request

* @param ActionForward The return path 

*/

public ActionForward execute(

ActionMapping mapping,

ActionForm actionform,

HttpServletRequest request,

HttpServletResponse response)

throws IOException, ServletException {

System.out.println("In TeacherAddAction:");

TeacherAddForm teacherAddForm = (TeacherAddForm) actionform;

if (teacherAddForm == null) teacherAddForm = new TeacherAddForm();

else 

System.out.println("teacherAddForm is not null");

try {

Teacher teacher= null;

teacher.setLast(teacherAddForm.getLast());

**

Thanks!



-
Do you Yahoo!?
Get better spam protection with Yahoo! Mail

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

2004-03-01 Thread Daniel
1-This tag is free for comercial applications 
2-At JDBC provider example, there is a select statement inside param tag
into xml file, there is a possibitity of this select statment will be
created inside my java code and xml file read it?
3-How can I make for get pa parameter value and pass this value for other
JDBC dropdown ???

obrigado
Daniel S.



- Original Message -
From: "Guillermo Meyer" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Saturday, February 28, 2004 10:24 AM
Subject: RE: DropDowns


Take a look at http://providers.sourceforge.net/ and see ComboSelectTag.
This tag allows you to create 2 or more dependant drop down lists using
Struts and javascript. With this tag, you do not need to reload the page
in the onchange of the first select.

Cheers.
Guillermo.

-Original Message-
From: Daniel [mailto:[EMAIL PROTECTED]
Sent: Sábado, 28 de Febrero de 2004 10:19 a.m.
To: Struts Users Mailing List
Subject: DropDowns


Whats the best way for implement this situation:

On the window I have 2 dropdown, the second depends of the first
dropdown value, then I'll back to the class action with the first
dropdown value for populate the second. After choice the value at second
dropdown, I'll qualify for sending this informations to data base.

How many action I need for to implement this ? I'll need one action for
the first dropdown (at onchange event submit the form???), other action
for the second dropdown and other for to send all informations to
database ?

Some one have a example for help-me ??

obrigado
Daniel S.

NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a
las personas direccionadas en el mail y puede contener informacion (i)de
propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto
profesional. Cualquier opinion en el contenido, es exclusiva de su autor y
no representa necesariamente la opinion de Interbanking S.A. El acceso no
autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking
S.A no asumira responsabilidad ni obligacion legal alguna por cualquier
informacion incorrecta o alterada contenida en este mensaje. Si usted ha
recibido este mensaje por error, le rogamos tenga la amabilidad de
destruirlo inmediatamente junto con todas las copias del mismo, notificando
al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar
este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas
gracias.



-
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: java.lang.NullPointerException struts form is null

2004-03-01 Thread Daniel Kalcevich
Try changing the "name" attribute in your config file to be
"TeacherAddForm" instead of "teacherAddForm".  

HTH.

Daniel 

-Original Message-
From: as as [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 01, 2004 8:29 AM
To: [EMAIL PROTECTED]
Subject: java.lang.NullPointerException struts form is null

Hi,
 
Struts form is giving null in my  action class .execute().Below are my
files.Hep appreciated.Thanks
 

import java.io.IOException;

import java.util.List;

import javax.servlet.ServletException;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;

import org.apache.struts.action.ActionForm;

import org.apache.struts.action.ActionForward;

import org.apache.struts.action.ActionMapping;



/**

* * @struts.action

* path="/addTeacher"

* name="teacherAddForm"

* scope="request"

* validate="false"

* * @struts.action-forward

* name="success"

* path="/teachers.jsp"

* * @struts.action-forward

* name="failure"

* path="/error.jsp"

*/

public final class TeacherAddAction extends Action {

/**

* @param actionmapping The ActionMapping

* @param actionform The ActionForm object

* @param httpservletrequest The httpservletrequest of the incoming
request

* @param httpservletresponse The httpservletresponse corresponding to
the request

* @param ActionForward The return path 

*/

public ActionForward execute(

ActionMapping mapping,

ActionForm actionform,

HttpServletRequest request,

HttpServletResponse response)

throws IOException, ServletException {

System.out.println("In TeacherAddAction:");

TeacherAddForm teacherAddForm = (TeacherAddForm) actionform;

if (teacherAddForm == null) teacherAddForm = new TeacherAddForm();

else 

System.out.println("teacherAddForm is not null");

try {

Teacher teacher= null;

teacher.setLast(teacherAddForm.getLast());

**

Thanks!



-
Do you Yahoo!?
Get better spam protection with Yahoo! Mail

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



SwitchAction

2004-03-01 Thread Daniel
My SwitchAction doesn't work, in my struts-congig.xml I put this:



at my struts-config-comer.xml I have this:

 
 

 


and type this on internet explorer:
http://localhost:8080/TopitSGI/goToComer.do?prefix=/comer&page=/pesqClientes.do


and the result is: The requested resource (/goToComer.do) is not available

What I'm forget ??????

Obrigado
Daniel S.






Modules....

2004-02-28 Thread Daniel
How can I execute one action (action popupCli)on the other module 
(struts-config-comer.xml), I have one jsp file (cadUsu.jsp) and this jsp file need to 
use one action (popupCli) of other struts module (struts-config-comer.xml)  

obrigado
Daniel S.


DropDowns....

2004-02-28 Thread Daniel
Whats the best way for implement this situation:

On the window I have 2 dropdown, the second depends of the first dropdown value, then 
I'll back to the class action with the first dropdown value for populate the second. 
After choice the value at second dropdown, I'll qualify for sending this informations 
to data base.

How many action I need for to implement this ? I'll need one action for the first 
dropdown (at onchange event submit the form???), other action for the second dropdown 
and other for to send all informations to database ?

Some one have a example for help-me ??

obrigado
Daniel S.

how to set selectedIndex at html:select

2004-02-27 Thread Daniel
How can change the "selectedIndex" of dropdown values



obrigado
Daniel S.

Struts menu Question

2004-02-26 Thread Daniel
I know, this list is not struts-menu list, but ..

at the struts menu example (permissions menu) at SetPermissionsAction.java there is 
this line:  
String[] menus = request.getParameterValues("menus");



I'd like to know just where they put the menus attribute in a session ??????



thanks

Daniel S.


RE: Nested nest Tag

2004-02-25 Thread Daniel, Gillian
Sorry to bother you again, but I have another stumbling block.  Although
I can get the details from the LocDTO with 

 
  

The problem is with this line.  taskTitle is an attribute of LocDTO but
not SccDTO.  When I submit my form, obviously an object of type SccDTO
is created, since that is in the nested:nest tag, and the property
taskTitle does not get set.  

  

Is there a way I can force the jsp to sometimes submit an LocDTO rather
than the SccDTO??

Thanks again,
Gillian Daniel

-Original Message-
From: Daniel, Gillian 
Sent: 25 February 2004 16:27
To: Struts Users Mailing List
Subject: RE: Nested nest Tag

Thanks very much for the advice, I tried it and it did work.  I had
tried before but it didn't work, but I tried again and it did work, so
thanks for prompting me to try again.
Something must have been wrong the first time.

Thanks again,
Gillian

-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED] 
Sent: 25 February 2004 16:23
To: 'Struts Users Mailing List'
Subject: RE: Nested nest Tag

Have you tried using the LocDTO properties? I think it will just work -
Struts uses bean utils which looks at the object you are trying to
operate
on, rather than the type it is declared as.

Paul

> -Original Message-----
> From: Daniel, Gillian [mailto:[EMAIL PROTECTED]
> Sent: 25 February 2004 14:31
> To: [EMAIL PROTECTED]
> Subject: Nested nest Tag
> 
> 
> Hi there, I am using Struts 1.1 and Java SE 1.4.2.02 and Java EE 1.4
> 
>  
> 
> I have an object called SccDTO.java which is extended by many objects,
> but I will use LocDTO,java as the example here.
> 
>  
> 
> In my SccBean.java - which extends the ValidatorForm - I have 
> getter and
> setter methods for a SccDTO object.
> 
>  
> 
> I am using 
> 
>
> 
>  
> 
> This is fine, but I actually sometimes want to access methods in the
> LocDTO, and sometimes from the other objects which extend the SccDTO.
> 
>  
> 
> Now I realise that the SccDTO has no getter and setter methods for the
> LocDTO methods, so this is not going to work, but is there a 
> way around
> this?
> 
>  
> 
> Any help would be much appreciated, 
> 
> Gillian Daniel
> 
> 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver
this message to anyone. In such case, you should destroy this message,
and notify us immediately. If you or your employer does not consent to
Internet email messages of this kind, please advise us immediately.
Opinions, conclusions and other information expressed in this message
are not given or endorsed by my Company or employer unless otherwise
indicated by an authorised representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from
being transmitted via electronic mail attachments we cannot guarantee
that attachments do not contain computer virus code.  You are therefore
strongly advised to undertake anti virus checks prior to accessing the
attachment to this electronic mail.  Axios Systems Ltd grants no
warranties regarding performance use or quality of any attachment and
undertakes no liability for loss or damage howsoever caused.


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



treeview

2004-02-25 Thread Daniel
I need make a treeview of some information retrived from database and make a dual list 
with this treeview, someone knows where there is some example or something like this.

Obrigado
Daniel S.

RE: Nested nest Tag

2004-02-25 Thread Daniel, Gillian
Thanks very much for the advice, I tried it and it did work.  I had
tried before but it didn't work, but I tried again and it did work, so
thanks for prompting me to try again.
Something must have been wrong the first time.

Thanks again,
Gillian

-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED] 
Sent: 25 February 2004 16:23
To: 'Struts Users Mailing List'
Subject: RE: Nested nest Tag

Have you tried using the LocDTO properties? I think it will just work -
Struts uses bean utils which looks at the object you are trying to
operate
on, rather than the type it is declared as.

Paul

> -Original Message-----
> From: Daniel, Gillian [mailto:[EMAIL PROTECTED]
> Sent: 25 February 2004 14:31
> To: [EMAIL PROTECTED]
> Subject: Nested nest Tag
> 
> 
> Hi there, I am using Struts 1.1 and Java SE 1.4.2.02 and Java EE 1.4
> 
>  
> 
> I have an object called SccDTO.java which is extended by many objects,
> but I will use LocDTO,java as the example here.
> 
>  
> 
> In my SccBean.java - which extends the ValidatorForm - I have 
> getter and
> setter methods for a SccDTO object.
> 
>  
> 
> I am using 
> 
>
> 
>  
> 
> This is fine, but I actually sometimes want to access methods in the
> LocDTO, and sometimes from the other objects which extend the SccDTO.
> 
>  
> 
> Now I realise that the SccDTO has no getter and setter methods for the
> LocDTO methods, so this is not going to work, but is there a 
> way around
> this?
> 
>  
> 
> Any help would be much appreciated, 
> 
> Gillian Daniel
> 
> 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver
this message to anyone. In such case, you should destroy this message,
and notify us immediately. If you or your employer does not consent to
Internet email messages of this kind, please advise us immediately.
Opinions, conclusions and other information expressed in this message
are not given or endorsed by my Company or employer unless otherwise
indicated by an authorised representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from
being transmitted via electronic mail attachments we cannot guarantee
that attachments do not contain computer virus code.  You are therefore
strongly advised to undertake anti virus checks prior to accessing the
attachment to this electronic mail.  Axios Systems Ltd grants no
warranties regarding performance use or quality of any attachment and
undertakes no liability for loss or damage howsoever caused.


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



optionsCollection ...

2004-02-25 Thread Daniel
Someone have one example of html:optionsCollection  with html:select.


obrigado

Daniel S.




Nested nest Tag

2004-02-25 Thread Daniel, Gillian
Hi there, I am using Struts 1.1 and Java SE 1.4.2.02 and Java EE 1.4

 

I have an object called SccDTO.java which is extended by many objects,
but I will use LocDTO,java as the example here.

 

In my SccBean.java - which extends the ValidatorForm - I have getter and
setter methods for a SccDTO object.

 

I am using 

   

 

This is fine, but I actually sometimes want to access methods in the
LocDTO, and sometimes from the other objects which extend the SccDTO.

 

Now I realise that the SccDTO has no getter and setter methods for the
LocDTO methods, so this is not going to work, but is there a way around
this?

 

Any help would be much appreciated, 

Gillian Daniel



expanding <%=...%>

2004-02-24 Thread Daniel Lipofsky
In the JSP below, <%=p1%> will expand the way I expect.
But <%=p2> does not.  Does anyone know why and how to
fix it?  Using HTML-EL is not a good option because my
real case uses custom tags that extend the HTML taglib.

<%@ taglib uri="struts-html"  prefix="html" %>

<% String foobar = "FooBar", p1 = "popupSrcForm", p2 = "Form"; %>




Thanks,
Dan


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



How populate a form

2004-02-20 Thread Daniel
How can I populate a form fields (bean/jsp) inside the action, this action is a 
someQueryAction and forward for a edit record page with all form fields values with 
results values of database query.


obrigado
Daniel S.

populate a form

2004-02-19 Thread Daniel
Situation:
I have a datagrid (displaytag), and I make a link on the colum ID of my database;
When I click on this link , I'll execute a action with a ID parameter (correct ??), 
and query the data base and show the edit page with the result values of the query.


How can I pass aparameter for a action ??
What the correct/best way do populate a form with result values of some query inside 
the action ??


obrigado 
Daniel S.

RE: Mroe then one resource message file

2004-02-19 Thread Daniel Lipofsky
See
http://www.systemmobile.com/articles/strutsMessageResources.html 

> Does anybody know of a way to define more than one default 
> message resources in struts 1.1.


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



Resource properties

2004-02-19 Thread Daniel
Threre is a way for test if my resource properties file is "in memory" , because my 
application can't read any key of that file, and I made other application (for test), 
I used the way and works ok.
I'm use easyStruts an eclipse and I have this message: Faltal error on loading 
resource.org.eclipse.core.internal.resources.ResourceException, and I verify the 
.easystrutsplugin file and now I don't have this message anymore but still don't read 
the keys...

Abraços
Daniel S.

siple question about forward

2004-02-19 Thread Daniel
If I put the path of imput in the action forward it's work ok, 
return mapping.findForward("sucesso"), 

but if I use the same path on the input value and use 

return (new ActionForward(mapping.getInput())), the page is not show.





Abraços

Daniel S.


Mroe then one resource message file

2004-02-19 Thread Daniel
Does anybody know of a way to define more than one default message 
resources in struts 1.1.


Re: 2 combo Box (drop down list)....

2004-02-19 Thread Daniel
I'll need a Action, for query data base..., and use a javascript for
"execute" this action ??? Help me , for the inicial way for this.

thanks
Daniel S.

- Original Message -
From: "Mark Lowe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 9:36 AM
Subject: Re: 2 combo Box (drop down list)


That tag lib guillermo suggested, or writing your own javascript like i
suggested is the way to do it then ..



On 19 Feb 2004, at 13:34, Daniel wrote:

> I used iframe, some time ago at one project but I was not using
> struts,tiles
> with iframe it's work very well, but don't have many advantages of
> Struts,
> tiles...,  I'd like to use the popup like exemple of
> http://www.mattkruse.com/javascript/popupwindow/ (the last example),
> How can
> I populate dinamic values for that listBox without "refresh" all the
> window,
> the solution of the listbox is the same of popup, populate one think
> on the
> "back ground", without don't come all the page again.
>
> thanks
> Daniel S.
>
> - Original Message -
> From: "Guillermo Meyer" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Thursday, February 19, 2004 9:10 AM
> Subject: RE: 2 combo Box (drop down list)
>
>
> You can use ComboSelectTag from http://providers.sourceforge.net/
>
> -Original Message-
> From: Paul-J Woodward [mailto:[EMAIL PROTECTED]
> Sent: Jueves, 19 de Febrero de 2004 09:09 a.m.
> To: Struts Users Mailing List
> Subject: Re: 2 combo Box (drop down list)
>
>
> If you don't want to submit the form then this has to be done client
> side
> with Javascript, you will have to know all of the possible values of
> the
>
> 2nd box for each of the possible values of the 1st. Otherwise it can be
> done fairly easily using an action.
>
> Paul
> 
> Global Equity Derivatives Technology
> Deutsche Bank [/]
> 
>
>
>
>
> "Daniel" <[EMAIL PROTECTED]>
> 19/02/2004 09:05
> Please respond to "Struts Users Mailing List"
>
>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> cc:
> Subject:    2 combo Box (drop down list)
>
>
> How can I make two combo box, work sincronized, when I choice on value
> the
> other will be populate based on the value or the first, there is a way
> to
> make this without "refresh" all page, just the second combo box. Using
> Struts,Tiles... , someone have one example of this thing.
>
>
>
> Abraços
> Daniel S.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> NOTA DE CONFIDENCIALIDAD
> Este mensaje (y sus anexos) es confidencial, esta dirigido
> exclusivamente a
> las personas direccionadas en el mail y puede contener informacion
> (i)de
> propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto
> profesional. Cualquier opinion en el contenido, es exclusiva de su
> autor y
> no representa necesariamente la opinion de Interbanking S.A. El acceso
> no
> autorizado, uso, reproduccion, o divulgacion esta prohibido.
> Interbanking
> S.A no asumira responsabilidad ni obligacion legal alguna por cualquier
> informacion incorrecta o alterada contenida en este mensaje. Si usted
> ha
> recibido este mensaje por error, le rogamos tenga la amabilidad de
> destruirlo inmediatamente junto con todas las copias del mismo,
> notificando
> al remitente. No debera utilizar, revelar, distribuir, imprimir o
> copiar
> este mensaje ni ninguna de sus partes si usted no es el destinatario.
> Muchas
> gracias.
>
>
>
> -
> 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: 2 combo Box (drop down list)....

2004-02-19 Thread Daniel
I used iframe, some time ago at one project but I was not using struts,tiles
with iframe it's work very well, but don't have many advantages of Struts,
tiles...,  I'd like to use the popup like exemple of
http://www.mattkruse.com/javascript/popupwindow/ (the last example), How can
I populate dinamic values for that listBox without "refresh" all the window,
the solution of the listbox is the same of popup, populate one think on the
"back ground", without don't come all the page again.

thanks
Daniel S.

- Original Message -
From: "Guillermo Meyer" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 9:10 AM
Subject: RE: 2 combo Box (drop down list)


You can use ComboSelectTag from http://providers.sourceforge.net/

-Original Message-
From: Paul-J Woodward [mailto:[EMAIL PROTECTED]
Sent: Jueves, 19 de Febrero de 2004 09:09 a.m.
To: Struts Users Mailing List
Subject: Re: 2 combo Box (drop down list)


If you don't want to submit the form then this has to be done client
side
with Javascript, you will have to know all of the possible values of the

2nd box for each of the possible values of the 1st. Otherwise it can be
done fairly easily using an action.

Paul

Global Equity Derivatives Technology
Deutsche Bank [/]





"Daniel" <[EMAIL PROTECTED]>
19/02/2004 09:05
Please respond to "Struts Users Mailing List"


To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
cc:
Subject:2 combo Box (drop down list)


How can I make two combo box, work sincronized, when I choice on value
the
other will be populate based on the value or the first, there is a way
to
make this without "refresh" all page, just the second combo box. Using
Struts,Tiles... , someone have one example of this thing.



Abraços
Daniel S.



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

NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a
las personas direccionadas en el mail y puede contener informacion (i)de
propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto
profesional. Cualquier opinion en el contenido, es exclusiva de su autor y
no representa necesariamente la opinion de Interbanking S.A. El acceso no
autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking
S.A no asumira responsabilidad ni obligacion legal alguna por cualquier
informacion incorrecta o alterada contenida en este mensaje. Si usted ha
recibido este mensaje por error, le rogamos tenga la amabilidad de
destruirlo inmediatamente junto con todas las copias del mismo, notificando
al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar
este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas
gracias.



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



2 combo Box (drop down list)....

2004-02-19 Thread Daniel
How can I make two combo box, work sincronized, when I choice on value the other will 
be populate based on the value or the first, there is a way to make this without 
"refresh" all page, just the second combo box. Using Struts,Tiles... , someone have 
one example of this thing.



Abraços
Daniel S.

Tiles and ActionMessage

2004-02-18 Thread Daniel
Someone know if there are some problem with tiles and messages(errors) I'm using at 
Action file (just code parts ) :

  ActionMessages messages = new ActionMessages();


  ActionMessage message = new ActionMessage(e.getMessage()); //at the catch
  messages.add(ActionMessages.GLOBAL_MESSAGE,message);//at the catch

//out of try catch

  if (!messages.isEmpty()) { 

 saveMessages(request,messages); 

 return (mapping.findForward(mapping.getInput()));
  }

   else {

return mapping.findForward("sucesso");

 }


and ate the jsp file :








but the error message don't show, I made one test without tiles and work ok with the 
same 
code, what should be ?


thanks
Daniel S.


Re:

2004-02-17 Thread Daniel
Sorry, but still dosn't work can you help-me ???

my source code is:
in execute method:

ActionMessages messages = new ActionMessages();

HttpSession session = (HttpSession)request.getSession();



try{


   LoginBO loginBO = new LoginBO("conexao");

   loginBO.eUsuarioValido(usuario,senha);

}catch(Exception e){

ActionMessage message = new ActionMessage(e.getMessage());


messages.add(Globals.ERROR_KEY,message);


}


if(!messages.isEmpty()){

saveMessages(request,messages);

return (new ActionForward(mapping.getInput()));

}else

return mapping.findForward("success");


}

###

in my jsp page:

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>





http://easystruts.sf.net).">

 















senha : 

usuario : 













thanks

Daniel S.


- Original Message -
From: "Matthias Wessendorf" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, February 17, 2004 11:28 AM
Subject: RE: 


> hi daniel
>
> use this:
> 
>
>
> 
>
> cheers,
>
> -Original Message-
> From: Daniel [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 17, 2004 3:30 PM
> To: Struts Users Mailing List
> Subject: 
>
>
> I'm using ActionMessages class and ActionMessage for "manipulate" my
> errors and show it in the  at jsp file but the message
> don't show , I was using the ActionErrors and ActionError and was ok, no
> problems. How can I make to solve it.
>
> cheers
> Daniel S.
>
>
> -
> 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]



struts-user@jakarta.apache.org

2004-02-17 Thread Daniel
I'm using ActionMessages class and ActionMessage for "manipulate" my errors and show 
it in the  at jsp file but the message don't show , I was using the 
ActionErrors and ActionError and was ok, no problems. How can I make to solve it.

cheers
Daniel S.

Work with java script and struts

2004-02-17 Thread Daniel
I downloaded the Struts version 1.8 2003/12/10 01:04:10 form jakarta..., and now I'm 
have some troubles with my javaScripts because don't have name at tag  . I'm was using the Struts 1.1 with  and it was work 
ok, What's wrong, what I need to fix this 


cheers
Daniel S.

DataGrid...

2004-02-16 Thread Daniel
I am looking for  data grid(paging / navigation, sorting and filtering) for integrate 
with myapp (based on struts, without EJB) and tested "HTMLTable - Table framework for 
Struts" (http://htmltable.yuriy-zubarev.com/jsp/index.jsp) and displaytag( 
http://displaytag.sourceforge.net/), someone know whats the better or know another 
free (for comercial applications). 


abraços
Daniel S.

Re: Popup window

2004-02-16 Thread Daniel
Muito obrigado (so much thanks) Jim Theodoridis.

- Original Message -
From: "Jim Theodoridis" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, February 16, 2004 11:05 AM
Subject: Re: Popup window


> Hi
>
> This is the chooseAuthor.jsp. When U choose an author then
> javascript sets the values of id and name which are properties of the
common
> form
> Common form used from the page addDocumentAuthor.jsp
> where u want to choose the Author
>
>  top.opener.document.commonForm.id.value = id;
>  top.opener.document.commonForm.name.value = name;
>
> i hope this helps.
>
>
> -- chooseAuthor. jsp 
>
> <%@ page contentType="text/html; charset=UTF-8" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>
> <%@ page import="gr.tera.alternative.commons.Constants" %>
>
> 
>   function setAuthor(id,name) {
> top.opener.document.commonForm.id.value = id;
>  top.opener.document.commonForm.name.value = name;
> top.window.close();
>   }
> 
>
>
> 
> 
> 
>   href="<%=request.getContextPath()%>/tiles/layouts/css/default.css"
> type="text/css">
>
> 
>
>  marginheight="0">
>
> <%
>String SLATE = "#DDEEFE";
>String WHITE = "#FF";
>String HEADER="#AAB6C6";
>String bgcolor = null;
>String letters[] =
>
{"%","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R"
> ,"S","T","U","V","W","X","Y","Z"};
>  %>
>
> 
>  
>  
>type="java.lang.String" >
> styleClass="LETTER"><%=currentChar%>
>   
>  
> 
>
> 
>
> 
>
>type="gr.tera.alternative.bo.AuthorBO"
>   name="<%=Constants.AUTHORS_KEY%>"
>   indexId="index"  >
>
> <%
>if((index.intValue() % 2) == 0) {
>   bgcolor = WHITE;
>  } else {
>   bgcolor = SLATE;
>  }
> %>
>
>   
> <%= index.intValue()+1 %>
> 
>/>','')" class="LETTER">
>
>   
>  
>   
> 
> 
> 
>
>
> 
> 
>
>
> addDocumentAuthor.jsp--
>
> <%@ page contentType="text/html; charset=UTF-8" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>
> <%@ page import="gr.tera.alternative.commons.Constants" %>
> 
>
> 
>
>
>  type="gr.tera.alternative.bo.DocumentBO"
> name="<%=Constants.DOCUMENT_KEY%>" />
>
>name="document"
>   property="category"
>   type="gr.tera.alternative.bo.CategoryBO" />
>
>name="document"
>   property="kind"
>   type="gr.tera.alternative.bo.KindBO" />
>
>  bgcolor="#E7EFE9">
>  
>    
>  
>   
>   
>  />
> 
>  
>   
> 
> 
>  
>key="document.category"/>
> 
> 
>  
>   
>  />
> 
>  
>
>align="center" >
>  name="document"
>  property="authors"
>  type="gr.tera.alternative.bo.AuthorBO"
>  indexId="index">
>
> <%=index.intValue()+1 %>
>  property="name" filter="false" />
> 
>  delete
> 
> 
>  update
> 
>
>
>
>   
>
> 
> 
>
>
> 
> 
>  
>   
> 
>   
>readonly="true"/>choose
> Author
>
>
>   
> 
>  
>   
>   
>
> 
> 
>   
>
>   
>  
>  
>   
>
> 
>  
>  
>
> 
>   
>  
> 
> 
>
> - Original Message -
> From: "Daniel" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, February 16, 2004 4:24 PM
> Subject: Popup window
>
>
> There are some example of creating a popup window, for select (of datagrid
> for example )one value and come back to the window with the value selected
> with Struts.
>
> tnks
> Daniel S.
>
>
>
> -
> 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]



Popup window

2004-02-16 Thread Daniel
There are some example of creating a popup window, for select (of datagrid for example 
)one value and come back to the window with the value selected with Struts.

tnks
Daniel S.

ActionForward(mapping.getInput()) ....

2004-02-16 Thread Daniel
I'm using Tiles for manager the layout of my application and it's a example of my 
geralLogin.jsp page, and works without problem except when I have a exception and get 
the mapping.getInmput() value for return tho the same page (login.jsp) with 
ActionErrors etc... at  LoginAction.java. When this happen the login.jps don't show 
the images, css and other things about the page, show just the  , 
 , , . The problem is just the images and 
css.

Example of geralLogin.jsp:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>













Example of my struts-config.xml:










RE: perform vs execute

2004-02-13 Thread Daniel Kalcevich

The only lift you get by using the execute() is better exception
handling (i.e. Global Exceptions).  Other than that, it is the same as
perform().

Daniel 

-Original Message-
From: srinivasan krishnamurthy [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 13, 2004 2:51 PM
To: [EMAIL PROTECTED]
Subject: perform vs execute

What is the difference between the perform and execute
method in struts.I know perform is deprecated in 1.1
but do we get any lift by using execute?

__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



Problem with

2004-02-13 Thread Daniel
I'm try to use this:

Esqueci a senha

,and when I open de Internet Expore the "hint" of this link have the jsessionid value, 
ex.:(javascript:eSenha();jsessionid=123456), and the link fail, but if I refresh 
the browser it's ok , don't have the jsessionid after sSenha() anymore, and all is 
good. How can I solve this 



tnks

Daniel S.


RE: NEWBIE: difficulties getting simple no bean page working...

2004-02-12 Thread Daniel Kalcevich

I was thinking more of something like this:




But hey, whatever works. :-)

Daniel



-Original Message-
From: Timothy Stone [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 12, 2004 10:22 AM
To: Struts Users Mailing List
Subject: Re: NEWBIE: difficulties getting simple no bean page working...

Daniel Kalcevich wrote:

> If you do not want to use a FormBean and your action solely calls a
> success page, maybe you could use the Forward Action build into
Struts.
> Then it would do a forward directly to the JSP page.
> 

Daniel,

Thanks. So I edited my struts-config.xml:

 > Step 4. Update struts-config.xml
 >
 >  
 >type="webAppDev.SearchAction1"
 >  name="noBean"
 >  scope="request"
 >  input="/webAppDev/strutsSearch.jsp"
 > forward="/webAppDev/SearchEngines">
 >  
 >  
 >  
 >

And it started working. I assume this is what you described.

However, what's wrong with the first attempt? I have been pouring over 
the archives, the how-tos, and the documentation. My syntax appears 
correct, it is even shown in examples as a working action-mappings
element.

I really would like to understand this. Blindly leaving the problem 
means I may face it again without the context, of "why?".

Many thanks,
Tim



> 
> -Original Message-
> From: Timothy Stone [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 12, 2004 9:15 AM
> To: [EMAIL PROTECTED]
> Subject: NEWBIE: difficulties getting simple no bean page working...
> 
> List,
> 
> I'm a Struts newbie with a lot of general hours in Tomcat. I want to 
> advance my development with Struts 1.1 and Model 2.
> 
> In an applied Struts scenario I have performed the following:
> 
> Followed closely the suggestions for integrating Struts into an
existing
> 
> web application. I did do one thing that deviated, I moved all of the 
> Struts TLDs into a subdirectory of WEB-INF (tlds/) per my usual 
> development/deployment practice (I did correct the web.xml to reflect 
> this move.)
> 
> However, I'm having a helluva time getting a very simple application
to 
> use Struts (I applying the Struts model to a development sandbox I
use).
> 
> Step 1. Add servlet and servlet-mapping to web app web.xml
> 
>  
>  action
>  
>  org.apache.struts.action.ActionServlet
>  
>  
>  config
>  
>/WEB-INF/struts-config.xml
>  
>  
>  1
>  
>  ...
> 
> 
>  
>  action
>  *.do
>  
> 
>  ...
> 
> Step 2. Create the form for input
> 
> strutsSearch.html:
> 
> ...
> 
>  ...
> 
> ...
> 
> Step 3. Create the Action subclass
> 
> package webAppDev;
> 
> import javax.servlet.http.*;
> import org.apache.struts.action.*;
> 
> public class SearchAction1 extends Action {
>  public ActionForward execute( ActionMapping mapping, Action form,
>HttpServletRequest request,
>HttpServletResponse response )
>  throws Exception {
>  return( mapping.findForward( "success" ) );
>  }
> }
> 
> Step 4. Update struts-config.xml
> 
>  
>type="webAppDev.SearchAction1"
>  name="noBean"
>  scope="request"
>  input="/webAppDev/strutsSearch.jsp">
>  
>  
>  
> 
> Step 5. Test
> 
> http://localhost:8080/webAppDev/strutsSearch.jsp
> 
> [click submit]
> 
> http://localhost:8080/webAppDev/action/search1.do loads but returns an

> empty page.
> 
> My success mapping "/webAppDev/SearchEngines" should read some request

> parameters and further redirect to a Search Engine, i.e. Google. It 
> works otherwise without Struts.
> 
> What am I doing wrong? I must be too close. Everything seems to be 
> configured correctly. A typo? A config?
> 
> Many thanks in advance for any suggestions,
> Tim
> 
> 
> -
> 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: multiple struts-config files

2004-02-12 Thread Daniel Kalcevich
The advantage (from what I have read and seen) is geared more towards
team development.  Having multiple struts configuration files allows you
to modularize the areas of your app, so that people aren't stepping on
each others toes with new changes.  Another advantage of multiple config
files is to separate your app.  For example, you could have one config
file that contains all actions the users access, and one config file
that has all actions for admin functions of your app.  

Now with regards to the other questions, I am not exactly sure whether
or not you could call an action from a different config file.  I want to
think yes, because otherwise it would defeat the purpose of allowing
multiple config files.  Can someone who uses two config file confirm
that when struts loads, that both config files get loaded together and
can reference each others parts?

HTH,

Daniel 

-Original Message-
From: koen boutsen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 12, 2004 9:40 AM
To: [EMAIL PROTECTED]
Subject: multiple struts-config files

Hi
I've read some mails about multiple struts-config files, but still have
some questions:
-what's the advantage of using multiple struts-config files in one
application ?  Is it better for performance ?
-how can I call a forward or action in my second struts-config from
within a jsp ?
-can I call a forward or action in one struts-config from within another
struts-config ?

Any help is very appreciated
Koen




Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default
.asp?SRC=lycos10

-
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: NEWBIE: difficulties getting simple no bean page working...

2004-02-12 Thread Daniel Kalcevich
If you do not want to use a FormBean and your action solely calls a
success page, maybe you could use the Forward Action build into Struts.
Then it would do a forward directly to the JSP page.

Daniel Kalcevich
SCJP
Software Development Analyst I
Mercury Insurance Group - IT, Web Agency Systems
[EMAIL PROTECTED]
(714) 671-6607




-Original Message-
From: Timothy Stone [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 12, 2004 9:15 AM
To: [EMAIL PROTECTED]
Subject: NEWBIE: difficulties getting simple no bean page working...

List,

I'm a Struts newbie with a lot of general hours in Tomcat. I want to 
advance my development with Struts 1.1 and Model 2.

In an applied Struts scenario I have performed the following:

Followed closely the suggestions for integrating Struts into an existing

web application. I did do one thing that deviated, I moved all of the 
Struts TLDs into a subdirectory of WEB-INF (tlds/) per my usual 
development/deployment practice (I did correct the web.xml to reflect 
this move.)

However, I'm having a helluva time getting a very simple application to 
use Struts (I applying the Struts model to a development sandbox I use).

Step 1. Add servlet and servlet-mapping to web app web.xml

 
 action
 
 org.apache.struts.action.ActionServlet
 
 
 config
 
   /WEB-INF/struts-config.xml
 
 
 1
 
 ...


 
 action
 *.do
 

 ...

Step 2. Create the form for input

strutsSearch.html:

...

 ...

...

Step 3. Create the Action subclass

package webAppDev;

import javax.servlet.http.*;
import org.apache.struts.action.*;

public class SearchAction1 extends Action {
 public ActionForward execute( ActionMapping mapping, Action form,
   HttpServletRequest request,
   HttpServletResponse response )
 throws Exception {
 return( mapping.findForward( "success" ) );
 }
}

Step 4. Update struts-config.xml

 
 
 
 
 

Step 5. Test

http://localhost:8080/webAppDev/strutsSearch.jsp

[click submit]

http://localhost:8080/webAppDev/action/search1.do loads but returns an 
empty page.

My success mapping "/webAppDev/SearchEngines" should read some request 
parameters and further redirect to a Search Engine, i.e. Google. It 
works otherwise without Struts.

What am I doing wrong? I must be too close. Everything seems to be 
configured correctly. A typo? A config?

Many thanks in advance for any suggestions,
Tim


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



hibernate-struts example -- where is it?

2004-02-12 Thread Tarkenton, Daniel S.
Hello all.  Long time struts user here, newbie to hibernate.  I found a link
on the hibernate.org site to a struts-hibernate example written by Ted
Husted.  I thought this would be a great example for me since I really
learned a lot from the Struts in Action book.

 

Well the link was to http://struts.sourceforge.net/#welcome but I could not
find the struts-hibernate example there.  I can't find it anywhere.  Is this
still around, and where can I get it?

Thanks!



iterate over list of maps

2004-02-06 Thread Daniel Lipofsky
I want to iterate over a list where each object in the
list is a map, and print values from the map.  The problem,
of course, is Map is not a bean - no getters and setters.
Do I have to wrap each map in a bean, or is there a
more clever approach.

(I am pretty much stuck with list:iterate, not c:forEach,
because I am actually using a specialize tag that extends
list:iterate).

Thanks,
Dan

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



RE: tag inside tag

2004-02-04 Thread Daniel Ruiz
hi,

u can use html-el library or jsp:attribute if your server supports jsp2..


[]´s Daniel Ruiz


-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 4 de fevereiro de 2004 10:54
To: Struts Users Mailing List; Rahul Mohan
Subject: Re:  tag inside  tag


As Max pointed out, the reason you're still seeing "html:text" could be
because
you haven't included the appropriate taglib directive:

<%@ taglib prefix="html"
   uri="http://jakarta.apache.org/struts/tags-html"; %>

And you might try this instead of your scriptlet:


  ...




Or use Struts-EL:

<%@ taglib prefix="html-el"
   uri="http://jakarta.apache.org/struts/tags-html-el"; %>


  ...



Quoting Rahul Mohan <[EMAIL PROTECTED]>:

>
> thanks scott
>
> The problem is not with quotes as I am getting the following code  in the
> final html;
>
>   name="w_CustomerWin"
>  property ="wca_Name"
>  maxlength="256"
>  size="256"
>  style="width:100;height:22;position:absolute;top:20;left:56;display:none"
>  />
>
> note that this is present in the final html...i.e the  is not
> getting translated to html
>
> anyways I have tried using sngle quotes instead of double quotes...but
> still
> it doesnt work
>
> any idea?
>
> - Original Message -
> From: "Glenn, Scott" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, February 04, 2004 2:42 PM
> Subject: RE:  tag inside  tag
>
>
> > Might be your nested quotes . try using different quote characters
to
> define the nested string ie.
> >
> > style='<%=pageContext.findAttribute("styleVar").toString()%>'
> >
> > S.
> >
> > > -Original Message-
> > > From: Rahul Mohan [mailto:[EMAIL PROTECTED]
> > > Sent: 04 February 2004 09:09
> > > To: Struts Users Mailing List
> > > Subject: Re:  tag inside  tag
> > >
> > >
> > > Hi Max,
> > >
> > > Thanks for the reply...
> > >
> > > I have found a work around for the problem...but it looks wierd!!
> > >
> > > These are the steps I performed:
> > >
> > > 1. I am setting the styleVar as follows:
> > >
> > > 
> > > 
> > > some JSTL conditional stmts
> > > 
> > > 
> > >
> > > 2. Then I retrieve the value using the following scriptlet:
> > >
> > >  <% String str = pageContext.findAttribute("styleVar").toString();
> %>
> > >
> > > 3. Now I can use the value of str inside my  tag as
follows:
> > >
> > >   > >  name="Customer"
> > >  property ="Name"
> > >  maxlength="256"
> > >  size="256"
> > >  style="<%=str%>"
> > >/>
> > >
> > > The wierd part is that if I put
> > >
> > >
> style="<%=pageContext.findAttribute("styleVar").toString()%>"
> > >
> > > inside the  tag it wont work!!!
> > >
> > > Can anybody tell me why it is so?? I am stumped!
> > >
> > > thank you all...
> > > rahul
> > >
> > > - Original Message -
> > > From: "Max Cooper" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
> "Rahul
> > > Mohan" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, February 04, 2004 1:45 PM
> > > Subject: Re:  tag inside  tag
> > >
> > >
> > > > Two issues may be at work here:
> > > >
> > > > 1. It isn't valid to have a JSP tag render an attribute value for
> > > another
> > > > JSP tag. This might work instead, depending on the scope of
styleVar:
> > > >
> > > >   > > >  name="Customer"
> > > >  property ="Name"
> > > >  maxlength="256"
> > > >  size="256"
> > > >  style="<%=styleVar%>"
> > > >  />
> > > >
> > > > 2. Are you missing the <%@ taglib %> thingy for the html taglib in
> your
> > > JSP?
> > > >
> > > > -Max
> > > >
> > > > - Original Message 

No action instance for path /...

2004-02-03 Thread Daniel
How can I fix this message ??? 
SEVERE: No action instance for path /wellcome could be created



my  struts-config.xml is:





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













 




















































and when i tri to access on the browser: http://localhost:8080/appTeste/wellcome.do 
this error apper:
SEVERE: No action instance for path /wellcome could be created


AW: Tomcat 3.3.1 and Struts 1.1

2004-01-29 Thread Daniel Richter
Thanks a lot Geeta,that confirms my assumption that the problem is not my
implementation, but Tomcat 3.3.1
I hope my provider will update the server soon.

yours sincerly Daniel

-Ursprüngliche Nachricht-
Von: Geeta Ramani [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 29. Januar 2004 14:29
An: Struts Users Mailing List
Betreff: Re: Tomcat 3.3.1 and Struts 1.1


Daniel:

A fwe months ago I wanted to move to Struts 1.1 and found that unless you
upgraded
tomcat to 4 or above, at least one fundamental thing would not work.  I
forget the
details of my exact problem, but my situation was the same as yours: I
wanted to make
struts 1.1 work on Tomcat 3.3.1.   I remember searching for a solution and I
found that
heavyweights like Ted and Craig had thrown their hands in the air and stated
that the
solution was to upgrade tomcat.  Sorry i don't remember the deatils, else I
could point
you to Ted's note about this.. But i do remember clearly that struts 1.1 and
tomcat 3.*
don't work well together..

Hope this helps,
Geeta

Daniel Richter wrote:

> Hi, I have a Problwm with using Struts 1.1 within Tomcat 3.3.1
> On my local computer I use Tomcat 4.1.28 and my application works well,
but
> on my providers server I get the following stacktrace:
>
> Während der Abarbeitung Ihrer Anfrage ist ein Fehler aufgetreten.
>   javax.servlet.ServletException: Error - tag.getAsString : component
> context is not defined. Check tag syntax
> at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:460)
> at base_1._jspService(base_1.java:614)
> at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at
> org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
> at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
> at org.apache.tomcat.core.Handler.service(Handler.java:235)
> at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
> 7)
> at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
> at
>
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp12Int
> erceptor.java:221)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
> at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:516)
> at java.lang.Thread.run(Thread.java:484)
>
> It seems that this older version of struts cannot handle the tiles
> definitions from Struts 1.1
> Is it because of the Tomcat version? Is there anything I can do against
it?
> My provider don't want to update Tomcat yet, so is there anything else I
can
> do?
>
> Daniel
>
> -
> 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]



Tomcat 3.3.1 and Struts 1.1

2004-01-29 Thread Daniel Richter
Hi, I have a Problwm with using Struts 1.1 within Tomcat 3.3.1
On my local computer I use Tomcat 4.1.28 and my application works well, but
on my providers server I get the following stacktrace:

Während der Abarbeitung Ihrer Anfrage ist ein Fehler aufgetreten.
  javax.servlet.ServletException: Error - tag.getAsString : component
context is not defined. Check tag syntax
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:460)
at base_1._jspService(base_1.java:614)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp12Int
erceptor.java:221)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
at java.lang.Thread.run(Thread.java:484)


It seems that this older version of struts cannot handle the tiles
definitions from Struts 1.1
Is it because of the Tomcat version? Is there anything I can do against it?
My provider don't want to update Tomcat yet, so is there anything else I can
do?

Daniel


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



Problems with Struts 1.1 and Tomcat 3.3.1/JDK 1.3

2004-01-28 Thread Daniel Richter
It seems Struts 1.1 and Tomcat 3.3.1 have a problem in working together. See
the following URL for the stacktrace:
http://holiday.riesengebirge-online.com
This is my providers server. On my own computer I use Tomcat 4.1.28 / JDK
1.4 and it works fine. What is the problem?

Daniel


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



RE: bean:write question

2004-01-26 Thread Daniel Lipofsky
Or replacing all newlines with "".
Either should work, but  might look nicer.

This is not a struts issue ... just a basic
fact of how HTML works.
- Dan

> -Original Message-
> From: Hien Q Nguyen [mailto:[EMAIL PROTECTED]
> Sent: Saturday, January 24, 2004 4:30 PM
> To: Struts Users Mailing List
> Subject: Re: bean:write question
> 
> 
> how about wrapping your content inside the  tag?
> 
> 
> On Jan 24, 2004, at 11:37 AM, Allen Jordan wrote:
> 
> > Hello all,
> > I am trying to display a file name and the contents of the file in a
> > jsp. My formbean  object contains 2 Strings (filename and contents).
> > The problem I am having is the file contents are displayed in one
> > continues string, without line breaks. Is there anyway to do this
> > without using "iterate"?
> > Thanks all.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



RE: bean:write and apostrophes

2004-01-22 Thread Daniel Lipofsky
No, that doesn't fix it.  It needs to be encoded.
It just needs to be encoded as "Dan\'s Test"
or even as "Dan\'s" but not as "Dan's".
The problem is that the brower converts '
back to a single quote early on in the game,
and then the single quote prematurely ends the string I
am trying to pass to the Javascript method, which
causes a Javascript exception.
Thanks,
Dan

> -Original Message-
> From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 22, 2004 4:39 PM
> To: 'Struts Users Mailing List'
> Subject: RE: bean:write and apostrophes
> 
> 
> Dan,
> Try using the filter="false" attribute of the bean:write tag. 
> That will
> disable the encoding of characters that are sensitive to HTML.
> 
> 
> -Richard
> 
> -Original Message-
> From: Daniel Lipofsky [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, January 22, 2004 4:18 PM
> To: [EMAIL PROTECTED]
> Subject: bean:write and apostrophes
> 
> 
> If I use 
> to write out the value "Dan's Test"  I get "Dan's".
> But this is giving me problems with Javascript.
> 
> THIS FAILS:
> Dan's Test
> 
> BUT THIS WORKS:
> Dan's Test
> 
> But I don't know how to get the second form.
> I can reverse the single quotes and double quotes
> in javascript - then it works for the test case above
> but fails for strings with double quotes.
> 
> Has anyone solved this problem?
> I am using IE 6.0 as my browser as struts 1.1.
> Here is the full test cases:
> 
> <% session.setAttribute("x","Dan's Test"); %>
> <% session.setAttribute("y","The \"other\" test"); %>
> ')">x1  href="javascript:alert('')">y1  href='javascript:alert("")'>x2  href='javascript:alert("")'>y2
> 
> Thanks,
> Dan
> 
> 
> 
> -
> 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]



  1   2   3   4   5   6   >