Re: JSF is the beginning of the end of Struts !!!

2005-07-27 Thread Pedro Salgado
+1 for that answer. Pedro Salgado On 27/07/2005 08:15, "Tamas Szabo" <[EMAIL PROTECTED]> wrote: > I wouldn't bet on PHP being more popular than Java webapps. > > I think that there will be more smaller Java webapps if there were much > support for them a

Re: JSF is the beginning of the end of Struts !!!

2005-07-27 Thread Pedro Salgado
very similar to iBatis with no complexity at all. In conclusion, good ideas/implementations can and should be re-used but with they must be thought on the correct context and implemented exploring the strengths/advantages of the new language/technology and, sometimes, with a lot of creativity.

Re: Struts vs .NET???

2005-07-03 Thread Pedro Salgado
2 more Struts sites to add to the list (http://wiki.apache.org/struts/StrutsWebLinks): http://www.iberia.com/ https://caixadirecta.cgd.pt/ (bank) Of course I cannot be sure but it sure seems like it :) PS On 03/07/2005 09:44, "Jesse Alexander (KBSA 21)" <[EMAIL PROTECTED]> wrote: > -Origin

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Pedro Salgado
t has been 2 years) he usually retrieved the BOs from the model/persistence layer and then created view objects (POJOs). I remind him mixing this data on an ActionForm. Pedro Salgado > > Most people I think agree with the idea of a single object communicating > between the control and th

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Pedro Salgado
Well, your option 1) matched the #2 and 2) matched the #4 :) Pedro Salgado > #1 Prefer not to use action forms at all > #2 For input data only (usually collected from HTML form) > #3 For output only (to be used in JSP) > #4 Same form for input and output > #5 One form for inp

Re: [POLL] What do you use action forms for?

2005-05-12 Thread Pedro Salgado
So you use #2? :) Pedro Salgado On 12/05/2005 14:40, "Vic Cekvenich (netsql)" <[EMAIL PROTECTED]> wrote: > Some of you needs a struts mentor ;-) > > You use display any bean or collection in struts, if it's RO, you don't > use formBeans and you use

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Pedro Salgado
ava bean and always register it on a specific name (for example "view") either on the request or session scope? In the end you have something like ${view.property} on your jsp file. It is true that you might not be able to easily use but with JSTL you can reduce this disadvantage. Ped

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Pedro Salgado
xclusively in request or session attributes as necessary, but never the > form; I believe this complicates and misuses the conception of a form. I also agree with you. I even created some small package to make my own "viewbeans

Re: How to add your own validation + make use of existing validator

2005-01-25 Thread Pedro Salgado
On 25/1/05 8:49 am, "Manisha Sathe" <[EMAIL PROTECTED]> wrote: > finally i could figure it out as > > ActionErrors errors = super.validate(...) ( i am new to java too) > > With this i could get the server side validation + my own validation. > > The same thing i want to do it for Javascript val

Re: Servlet.log()

2005-01-14 Thread Pedro Salgado
yclasslogger.layout=org.apache.log4j.PatternLayout log4j.appender.myclasslogger.layout.ConversionPattern=%d{ABSOLUTE} - %p %c - %m%n This will solve all logging problems in every class, if you replicate the same behaviour. Pedro Salgado > I have already search information about this and the Struts home page > refers this too. However

Re: help : paging in struts view

2005-01-14 Thread Pedro Salgado
On 14/1/05 9:50 am, "sachin" <[EMAIL PROTECTED]> wrote: > hi all , > > how to achieve paging in struts views ? > http://displaytag.sourceforge.net ? > so that all the records can be viewed by prevoius , next links > There are function available in ASP , PHP .. > If something of that type is

Re: Java IDE's

2005-01-13 Thread Pedro Salgado
use Intellij IDEA... +++ 1 simple and doesn't get in the way 2 ant/junit integration 3 because it is really really good --- 1 $500 personal license (compared with $0 eclipse) - if you don¹t want to spend money... well it is not for you. Pedro Salgado On 13/1/05 11:26 am, &quo

Re: commons-chain problems

2005-01-12 Thread Pedro Salgado
org.apache.commons.chain.CONFIG_WEB_RESOURCE chain-config.xml and org.apache.commons.chain.CONFIG_WEB_RESOURCE /WEB-INF/classes/chain-config.xml the same result. what is odd is that the digester doesn't parse anything and it doesn't complain

commons-chain problems

2005-01-12 Thread Pedro Salgado
(that is being copied to the WEB-INF/classes) ** web.xml (Tomcat-5.0.27) org.apache.commons.chain.CONFIG_CLASS_RESOURCE chain-config.xml org.apache.commons.chain.web.ChainListener

Re: Struts design for CRUD methods

2005-01-12 Thread Pedro Salgado
on your form-bean, forget cleaning the session and the rest stays the same. I hope I have explained myself well. Pedro Salgado On 12/1/05 10:29 am, "Mark Benussi" <[EMAIL PROTECTED]> wrote: > I have a web based application which allows the Creation, Update, Read and >

Re: populate data for edit form

2005-01-12 Thread Pedro Salgado
I think you could also try this... I think it will also work (maybe you should then switch from request.setAttribute to session.setAttribute... but I don¹t remember). Pedro Salgado - To unsubscribe, e-mail: [EMAIL

Re: populate data for edit form

2005-01-12 Thread Pedro Salgado
> > CategoryEditForm categoryEditForm = (CategoryEditForm)form; > categoryEditForm.setName("testing"); > request.setAttribute("categoryEditForm", form); > return (mapping.findForward("continue")); I think that will do

Re: Help with DynaActionForm

2005-01-10 Thread Pedro Salgado
ion input. try a simple form at first... with only one rule and see what happens. check the files on attachment ;). Pedro Salgado > > Uma > > -Original Message- > From: Pedro Salgado [mailto:[EMAIL PROTECTED] > Sent: Monday, January 10, 2005 5:29 AM > To:

Re: Help with DynaActionForm

2005-01-10 Thread Pedro Salgado
check commons-validator. declare the commons-validator plugin on your struts-config.xml. use the validator-rules to specify validation rules (basic copy paste). use the validation.xml to specify the rules that apply to which fields on a form. on your jsp use . Pedro Salgado On 10/1

Re: Tiles:insert role(s)?

2004-11-17 Thread Pedro Salgado
, Pedro Salgado Hi Robert.. I guess you could achieve the same using the controllerClass attribute and building your class.. For instance, I have this definition in the tiles-defs.xml file: --- --- And I have this controllerClass --- package com.dars

Re: Struts validation issue

2004-10-11 Thread Pedro Salgado
Have you checked if you aren't duplicating configurations on more than 1 file? (configFile1, ..., configFileN... N replaces configurations that are also present (duplicate) in 1). Are you working with modules? Is the forward pointing to a correct action? (try putting validate = false... and

Re: how to setup i18n

2004-10-11 Thread Pedro Salgado
You have to add a line to your struts-config pointing to your message-resources: (be carefull with typos) If your using fmt... for the default bundle to point to the same struts default message bundle, add this to your web.xml: javax.servlet.jsp.jstl.fmt.localizationCont

Re: Line Break Question

2004-10-11 Thread Pedro Salgado
How about: Pedro On 11/10/04 2:23 pm, "Tom Holmes Jr." <[EMAIL PROTECTED]> wrote: > I have a tag that looks like this: > > > Rather than having these two address lines on one line, I'd like to > include a line break so that I get two lines. I've tried a few things > and can't seem

Re: How work to DynaValidatorForm and java.sql.Date

2004-10-07 Thread Pedro Salgado
On 7/10/04 1:00 am, "Gabriel França Campolina" <[EMAIL PROTECTED]> wrote: > Hi Folks, > I have the problem when i submit a field text that was mapping to > java.sql.date in format dd/MM/, I received null value, what´s my > problem?? only this value I don't received the other fields(String) i >

Re: Struts and EL/JSTL

2004-09-26 Thread Pedro Salgado
On 26/9/04 5:30 pm, "Chris" <[EMAIL PROTECTED]> wrote: >> - configure your web.xml correctly to enable EL >> - use struts non-el tag libraries or any non-el tag library (jstl >>included) > > BTW, in JSTL, which one is non-el tag library? c.tld or c-rt.tld ? If you are using Tomcat5... t

Re: Struts and EL/JSTL

2004-09-26 Thread Pedro Salgado
On 26/9/04 5:30 pm, "Chris" <[EMAIL PROTECTED]> wrote: >> - configure your web.xml correctly to enable EL >> - use struts non-el tag libraries or any non-el tag library (jstl >>included) > > BTW, in JSTL, which one is non-el tag library? c.tld or c-rt.tld ? If you are using Tomcat5... t

Re: findForward nto going to correct place

2004-09-26 Thread Pedro Salgado
To forward to the "failure" page try using mapping.getInputForward(); It is better than defining a failure forward everytime and is less error-prone. Pedro Salgado On 26/9/04 4:11 pm, "Yves Sy" <[EMAIL PROTECTED]> wrote: > What do you mean &qu

Re: Struts and EL/JSTL

2004-09-26 Thread Pedro Salgado
orrectly to enable EL - use struts non-el tag libraries or any non-el tag library (jstl included) Regards, Pedro Salgado >> >> >> >> - Original Message - >> From: "David G. Friedman" <[EMAIL PROTECTED]> >> To: "Struts Users

standard-1.1.1 expression language not working

2004-09-20 Thread Pedro Salgado
Hi to everyone! I have already used taglibs before but I am having some trouble making jstl core 1.1.1 taglib to evaluate expression languages on Tomcat 5.0.27. I have all of the required libraries on WEB-INF/lib/ (jstl, standard, jdbc_2_0_stdext, xalan and xerces). Tomcat does not give any

Re: Hibernate VS ibatis, which is better?

2004-09-01 Thread Pedro Salgado
On 1/9/04 11:31 pm, "Pedro Salgado" <[EMAIL PROTECTED]> wrote: > > 1. > > I think all of you are missing one big feature of iBatis: the Dao > framework. Well this aint exactly true... David Friedman pointed that already... sorry :( > > Even though, you

Re: Hibernate VS ibatis, which is better?

2004-09-01 Thread Pedro Salgado
s, by implementing the Templates). Regards, Pedro Salgado On 1/9/04 10:04 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >> I didn't see that you could use straight sql in Hibernate > You can - that's why we went with it. We can let it do it's stu

Re: Struts 1.1

2004-06-29 Thread Pedro Salgado
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> Pedro Salgado On 04/06/29 10:46, "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]> wrote: > What is the equalant of > "-//Apache Software Foundation//DTD Commons Validator Rules >

Re: EJB + Struts + Hibernate

2004-06-27 Thread Pedro Salgado
Have you checked iBatis? www.ibatis.com Pedro Salgado On 04/06/27 12:16, "Irfandhy Franciscus" <[EMAIL PROTECTED]> wrote: > Thanks for the reply. So far I have tested my apps with JUnit and > HttpUnit using a single resin serve. and it is working fine. I am just > sc

Re: Converting Java Code in JSP to JSTL

2004-06-26 Thread Pedro Salgado
ng threadID = String.valueOf( threadID_int ); >> 7. if ( threadRows.size() == 0 ) {} >> 8. if ( previousOffset >= 0 || nextOffset >= 0 ) {} >> 9. if ( prevArticle != null ) && ( !article.equals( >> prevArticle ) ) {} The article != preArticle I am not

Re: Detecting browser close

2004-06-20 Thread Pedro Salgado
from session and the unbound method will be called. When a session times out the ApplicationContainer will be removed from session and the unbound method will be called. Pedro Salgado - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: security roles

2004-06-14 Thread Pedro Salgado
4.1.30). Pedro Salgado On 04/06/14 20:24, "Zhang, Larry (L.)" <[EMAIL PROTECTED]> wrote: > I want to define two security roles, one of which is employee and another is > manager. Employee is not able to see some resources belonging to manager. > Under J2EE standard, we ca

Re: Controller for web services

2004-06-04 Thread Pedro Salgado
and check your framework more carefully. I found some answers in the Java development with ant sample chapter and on the Axis documentation. I will gather all together and then make a reply. (to all) Thank you for your help. Pedro Salgado On 04/05/21 15:21, "None None" <[EM

Re: Strus Web Service Enablement

2004-06-04 Thread Pedro Salgado
o a > String. > If u need for some reason to map it to a specific type, have a look at > The org.commons.beanutils.ConvertingWrapDynaBean class and see if it can > help > > > Dunno what the client would to though.. > > Regars > marco > > > > >

Re: Strus Web Service Enablement

2004-06-04 Thread Pedro Salgado
populated as a regular bean, why not make the marshaling of the xml document inside of the soap envelope? You do have the syntax that should be sent on the envelope. You just need the right bean to marshall to. (It may not be marshal but unmarshal... I get them both confused, all the time). Pedr

Controller for web services

2004-05-20 Thread Pedro Salgado
Is there any MVC implementation for web services (I am not seeing any wasy way to do that with Struts)? Thank you, Pedro Salgado - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [ot] eclipse vs. IDEA

2004-05-19 Thread Pedro Salgado
is it a > little lighter? I only used Eclipse M2 on my mac so... It has been a while :) to make a good comparison. On both cases it is better to have a lot of RAM. I find IDEA a better option to use as a development environment (it is what I use at work but I prefered the

Re: button as link

2004-05-04 Thread Pedro Salgado
e > struts-config.xml, create a class for that empty form, etc. > > Is there a simple way to solve that? > What about a button with an onclick Javascript event that redirects you to the desired Struts action passing a

Re: Way to reload struts Action classes in WebLogic8.1

2004-05-02 Thread Pedro Salgado
tions but maybe there could be some ideas that could help you: http://www.cs.wustl.edu/~corsaro/papers/RM2003/p18-moreira.pdf Anyway I think this is good stuff so... Regards, Pedro Salgado - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Security + struts

2004-05-02 Thread Pedro Salgado
owed to run between the appserver and webserver. Another possiblity is appserver business logic provide "services" to the web server that could lead to a security problem or inconsistent state. Regards, Pedro Salgado - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: One Action class but more than one functionality

2004-03-31 Thread Pedro Salgado
t,%20javax. servlet.http.HttpServletResponse,%20org.apache.struts.action.Action,%20org.a pache.struts.action.ActionForm,%20org.apache.struts.action.ActionMapping) I ran out of ideas so... you can still solve your problem with multiple actions. :) Pedro Salgado > > Thanks you all. > > -Original Mes

Re: One Action class but more than one functionality

2004-03-30 Thread Pedro Salgado
the assurance by changing BaseActionUtils, you change generic validation on all action classes (just like simply extending the base class). Pedro Salgado > Thanks. > > -Original Message- > From: Prabhat Kumar (IT) [mailto:[EMAIL PROTECTED] > Sent: terça-feira, 30 de março de

Re: One Action class but more than one functionality

2004-03-30 Thread Pedro Salgado
ams); - class RemovePerson extends BaseAction - execute() : 1st executes PersonUtils.commonCodeMethod(params); Pedro Salgado On 30/03/2004 21:12, "Menke, John" <[EMAIL PROTECTED]> wrote: > In our base action classes we have elected not to implement the execute > method mak