RE: DynaActionForm and disabled textfield.

2003-09-29 Thread Kazda Juraj
I just want to display the information to user and also to post with
request. So disabled textfield was the way, I thought. And because we
have to implement everything for IE, I will use both disabled textfield
and hidden field now.

By the way, how can I do this: I have DynaActionForm specified in
strus-config.xml, in action I set some properties of it and then return
to source page. Now I want to display the value of one of properties as
plain text. How can I do such thing? Is it possible with with JSTL
somehow (c:out tag)?

Thank you.

-juraj.


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 27, 2003 4:16 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm and disabled textfield.

I find using a hidden field easier.

On 09/27/2003 03:25 AM Jan Van Stalle wrote:
 Hello,
 
 in IE disabled controls are not submitted (I don't know if this is
browser
 dependent); you might make a workaround by writing a small javascript
which
 enables you controls when the user submits the form.
 
 Jan
 
 Kazda Juraj [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 
Hello all,

I just have a quick question:



Is it true, that if I have

html-el: text property=id disabled=true/

it will not transfer to my DynaActionForm, so I am not able to get
it's
value in my action?

Or am I something missing?



Thank you for your comments.

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

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


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



DynaActionForm and disabled textfield.

2003-09-26 Thread Kazda Juraj
Hello all,

I just have a quick question:



Is it true, that if I have

html-el: text property=id disabled=true/

it will not transfer to my DynaActionForm, so I am not able to get it's
value in my action?

Or am I something missing?



Thank you for your comments.

-juraj.



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



RE: I webshpere Struts

2003-09-18 Thread Kazda Juraj
I'm using this architecture and everything works... What kind of JNDI name it can't 
find? Bean or Datasource? Do you really have declared in web.xml and implemented 
corresponding interfaces (ie. local reference vs local interface)?

In case of local, are you using in your code java:comp/env namespace?

-juraj.


 

-Original Message-
From: Ruben Carvalho [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 18, 2003 12:48 PM
To: Struts Users Mailing List
Subject: RE: I webshpere Struts

I've just started developing a new project using Websphere IDE but the application 
will run on Weblogic. We're using the TestServer that comes with Websphere and we're 
having the same problem with the Database access, using entity beans. Eventhough the 
server has the JNDI names configured properly, I keep getting an exception saying that 
the JNDI name can't be found. I manage to call the session beans in my web module but 
no entity beans.
 
Is there anybody using this arquitecture?
 
Thanks
 
Rben Carvalho

-Mensagem original- 
De: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] 
Enviada: qui 18-09-2003 11:29 
Para: Struts Users Mailing List 
Cc: 
Assunto: I webshpere Struts 



Is there anybody working on struts -- websphere server architecture i have few 
queries regarding deploying the complete module using JSp-- structs -- sessionbeans 
--- entitybeans --- Database architecture it's not getting deployed properly...
can anyone guide me to get the proper link on this...

thanks
abhijeet


- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 2:56 PM
Subject: RE: calls each method twice , logging everthing twice?


I had a similar bug in IE6 where I had a submit button that invoked a js
method that did some stuff and then called form.submit(). In IE5 Id only
have one submission, but in 6 it would do the submission from my call to
submit() AND do the submit buttons submit as well.

-Original Message-
From: Raju, Saravanan [mailto:[EMAIL PROTECTED]
Sent: Thursday, 18 September 2003 16:09
To: Struts Users Mailing List
Subject: RE: calls each method twice , logging everthing twice?


please check that you are not submitting the form twice using java script or
so.

one in onSubmit handler and other progrmatically using form.submit();


 Thanks,
 --
 Saravanan Raju
 Sr.Analyst
 SYNTEL (India) Ltd.
 Chennai Development Centre
 Tel: +91-44-22301101 (Board) Extn : 202
 Fax: +91-44-22300369
 e-mail :  mailto:[EMAIL PROTECTED]
 Website:  http://www.syntelinc.com
 --



 -Original Message-
 From: Andrew Hill [SMTP:[EMAIL PROTECTED]
 Sent: Thursday, September 18, 2003 12:15 PM
 To: Struts Users Mailing List
 Subject: RE: calls each method twice , logging everthing twice?

 It looks as though the browser is sending two requests for the page.

 Not familiar with tiles so am not sure about the exception your getting
 though.

 -Original Message-
 From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
 [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 18 September 2003 14:26
 To: Struts Users Mailing List
 Subject: calls each method twice , logging everthing twice?


 hi,
 we are using jdeveloper as ide , and struts as framework ,,
 I dont know when it is started but in debug mode it calls each method
 twice
 (calls action class execute method twice ) and struts gives followig
 message
 after calling my first action class (loginAction)  ,,
 it seccessfull execute and fiinds mapping for the login,,
 but gives the following message while sending response to the client,
 is there anybody encountered with this problem ?

 here is the STRUTS log info, as you can see it does processActionForward
 twice

 [INFO] RequestProcessor - -Processing a 'POST' for path '/Login'
 [INFO] RequestProcessor - -Processing a 'POST' for path '/Login'
 processActionForward(/pages/bireysel/common/welcome.jsp, false)
 processActionForward(/pages/bireysel/common/welcome.jsp, false)


 ERROR on the browser:

 java.lang.NullPointerException
 org.apache.struts.tiles.ComponentDefinition
   

Initializing of DynaValidatorForm.

2003-06-06 Thread Kazda Juraj
Hello everyone,

this was several times on the list, but I lost myself in all mail
archives. What doesn't work for me is this:

One of my action returns list of records. Every record is actually a
link to other action, which should have to display a form with this
records details to edit. What I need, is to fill this form with data.
The link sends a parameter with record ID and action should ask for data
from the source and fill a form with them.

Here's my code  config:

  form-beans
form-bean name=editRecForm type=sk.jerryk.EditRecForm
form-property name=idrec type=java.lang.Integer/
form-property name=name type=java.lang.String/
form-property name=desc type=java.lang.String/
/form-bean
  /form-beans

  action path=/listRec type=sk.jerryk.ListRecsAction
forward name=listRec path=list.recs /
  /action

  action path=/showRec type=sk.jerryk.ShowRecAction
scope=request
forward name=showRec path=edit.rec /
  /action

  action path=/editRec type=sk.jerryk.EditRecAction
name=editRecForm validate=true input=edit.rec
forward name=editRec path=edit.rec /
  /action

All paths are tiles definitions.

  
-- snippet from sk.jerryk.ShowRecAction.execute(...) --
  ModuleConfig moduleConfig =
(ModuleConfig)request.getAttribute(Globals.MODULE_KEY);
  FormBeanConfig config =
moduleConfig.findFormBeanConfig(editRecForm);
  DynaActionFormClass dynaClass =
DynaActionFormClass.createDynaActionFormClass(config);
  DynaValidatorForm dvf = (DynaValidatorForm) dynaClass.newInstance();
  dvf.set(name, new String(Hello));

  request.setAttribute(editRecForm, db);
  forward = mapping.findForward(showRec);
  return (forward);
-- end snippet --

-- snippet from tile edit.rec --
html:form action=editRole method=post
table
tr
tdbean:message key=editRec.name//td
td
html:text property=name /
/td
/tr
tr
tdbean:message key=editRec.desc//td
td
html:textarea property=desc rows=5
cols=20 /
/td
/tr
tr
td colspan=2
html:hidden property=idrec /
html:submit value=Change /
/td
/tr
/table
/html:form
-- end snippet --


First, when I say that the link should goto editRec, it will never reach
the action and it goes to the input. Second, when I say that it should
go to showRec, it goes there, execute the above code, continues to
specified forward, but nothing's filled in the text box.

What should I do to make it working?

TIA and have a nice day

Best regards

-jerryk.

===
ICQ#: 135207538
===
 


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



RE: Initializing of DynaValidatorForm.

2003-06-06 Thread Kazda Juraj
Hi Tibor,

You mean, that I need to add scope=request to showRec action too? When I add it, I 
have to add also name=editRecForm and then, after I click on the link targeting the 
showRec action, it will throw an exception:

  com.ibm.ws.webcontainer.webapp.WebAppErrorReport: No input attribute for mapping 
path /showRole

(I'm using WebSphere Studio 5 and it's Test Environment)

Ok, I add input attribute, and then it ignore all the action, goes directly to the 
defined input, so nothing is filled in...

I don't understand what's going on...

Have you any idea?

-jerryk.



-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 06, 2003 3:56 PM
To: Struts Users Mailing List
Subject: Re: Initializing of DynaValidatorForm.

Kazda Juraj rta:

  action path=/listRec type=sk.jerryk.ListRecsAction
forward name=listRec path=list.recs /
  /action

  action path=/showRec type=sk.jerryk.ShowRecAction
scope=request
forward name=showRec path=edit.rec /
  /action

  action path=/editRec type=sk.jerryk.EditRecAction
name=editRecForm validate=true input=edit.rec
forward name=editRec path=edit.rec /
  /action
  

The forms are not in the same context.

Tib




-
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: Very simple and URGENT Tag question - Please Help

2003-06-04 Thread Kazda Juraj
Hi Renato,

hard to say when you don't write what kind of error you got. Exception?
Or nothing shown?

Dont't you forget to add bean to context (session, request,...)?

And, maybe it's typo, but... don't you forget quotes in value attribute?
c:out value=${mybean.item[ind]}/


-juraj.



-Original Message-
From: Renato Romano [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 5:33 PM
To: 'Struts Users Mailing List'
Subject: Very simple and URGENT Tag question - Please Help

I have a bean with an indexed property, that is myBean.getItem(int i). I
can't find a way to access that property, using struts, struts-el nor
jstl. I tried the following:

c:out value=${mybean.item[ind]}/

Where ind is the indexId attribute of an ordinary logic:iterate struts
tag. (and c is the prefix for the core jstl tag downloaded from jakarta)
Where Am I wrong ?
Thanks

Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_



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