Re: Form submission and javascript

2004-12-13 Thread Daniel H A Lima
Hi Ryan.

Have you tried 

Javascript:toChildWindow('ProcessMainAction.do','doDataProcess',
document.forms[0], 'myChildWindow',200, 400)

instead of 

Javascript:toChildWindow('ProcessMainAction.do','doDataProcess',
'this.form', 'myChildWindow',200, 400)

?

I think that the property form is only available to
form elements (like inputs, radios and buttons).

 --- Ryan julius [EMAIL PROTECTED] escreveu: 
 Hello,
  
 I am trying to submit a form to an action, with the
 resulting page displayed in a child window.
  
 script  LANGUAGE=JavaScript
 TYPE=text/javascript
 function toChildWondow(actionName, methodeAppelee,
 form, nomFenetre, largeur, hauteur ) {
  var windowFeatures =

scrollbars=yes,resizable=no,width=+largeur+,height=+hauteur;
  var sUrl =

'%=request.getContextPath()%'+/+nomAction+?dispatch=+methodeAppelee;
  alert(sUrl : +sUrl);
  popUp =
 window.open(,nomFenetre,windowFeatures);
  alert(document.form : +form);
  popUp = window.open(,nomFenetre,windowFeatures);
  form.target='nomFenetre';   
  form.action='sUrl';   
  form.submit();   
  popUp.focus();
 }
 /script
 html:form action=/ProcessMainAction.do
 name=processMainForm
 type=com.inet.form.ProcessMainForm
html:link

href=Javascript:toChildWindow('ProcessMainAction.do','doDataProcess',
 'this.form', 'myChildWindow',200, 400)
   html:img page=/icones/idClient.gif
 width=26 height=25 border=0/ 
/html:link
 /html:form 
 ==
 ==
 html:form action=/ProcessChildAction.do
 name=processChildForm
 type=com.inet.form.ProcessChildForm
html:link

href=Javascript:toChildWindow('ProcessChildAction.do','doDataProcess',
 'this.processChildForm', 'myChildWindow',200, 400)
   html:img page=/icones/idClient.gif
 width=26 height=25 border=0/ 
/html:link
 /html:form 
 
 
 I have the following error on form.submit(); This
 object can not manage this property or mathod
 Please tell me what is wrong with that Javascript. 
 What is the easy way of submitting a form and
 display the forwarded page to a child window.
 Thanks.
 
   
 -
  Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace
 de stockage pour vos mails !
 Créez votre Yahoo! Mail
 
   Avec Yahoo! faites un don et soutenez le Téléthon
! 





___ 
Yahoo! Mail - Agora com 250MB de espaço gratuito. Abra 
uma conta agora! http://br.info.mail.yahoo.com/

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



Re: Submit with a link

2004-05-05 Thread Daniel H A Lima
Cacau, you must use a javascript function to submit
your form. You can render a link like :

a href=#
onclick=javascript:forms[0].submit();return true/

or using html:link


 --- cacau_braga [EMAIL PROTECTED] escreveu: 
thanks... but my problem is with the atributtes of
 form, like codUf, operacao, that parameteres don´t
 go
 to the action when i use the html:link.
 
 Do you know, how do i submit that parameters ?
 
 Regards,
 
  Henrique, are u a brazilian ? - eu sou (i am.)
 
  

__
 Acabe com aquelas janelinhas que pulam na sua tela.
 AntiPop-up UOL - É grátis!
 http://antipopup.uol.com.br/
 
 
 

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

__

Yahoo! Messenger - Fale com seus amigos online. Instale agora! 
http://br.download.yahoo.com/messenger/

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



Re: No getter method for property p of bean b - getP is public in b's super class

2004-04-22 Thread Daniel H A Lima
Assure the type of the object inside the searched
contexts. Don't you have differents attributes (with
distincts classes) in each context: A bean in page
scope, a different one in request scope, another in
session scope, and so on ? Try to use scope attribute
when using bean:write...


 --- [EMAIL PROTECTED] escreveu:  Hi Daniel - I am
sure I am using the latest classes.
 
 Also I have tested what you suggested. If I only put
 in
 
 getDealNumber %=b.getDealNumber%br
 
 I can see the property value displayed properly. But
 if I use bean:write,
 then the same error happens.
 

  

__

Yahoo! Messenger - Fale com seus amigos online. Instale agora! 
http://br.download.yahoo.com/messenger/

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



Re: Problem with Data Source Definition

2004-04-20 Thread Daniel H A Lima
 --- Johannes Wolfgang Woger [EMAIL PROTECTED]
escreveu:  
 
 Daniel Henrique Alves Lima wrote:
 
  I've a problem with dbcp but it was different: I
 was declaring my ds 
  in a tomcat config file but the
  .jar file (which contains the jdbc driver) was
 available only for my 
  application (in WEB-INF/lib) and not for
  the Tomcat itself :-( 
 
 if you use JNDI, all connection-related .jar should
 be in tomcat/common/lib
 

Yes, i know...It was a solved problem :-)

Wolfgang
 

__

Yahoo! Messenger - Fale com seus amigos online. Instale agora! 
http://br.download.yahoo.com/messenger/

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