Re: AJAX query

2007-05-18 Thread Kavita Mehta
thanks ..it was the previous case only .




Frank W. Zammetti [EMAIL PROTECTED] 
05/16/2007 07:11 PM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts Users Mailing List user@struts.apache.org
cc

Subject
Re: AJAX query






When you say your updating it using AJAX, do you mean you are making 
an AJAX request and putting the results into oamHeaderDateTimeInfo?  Or 
do you mean you are making an AJAX request who's response is generated 
by this JSP?  If the former, then it makes perfect sense: userData() is 
a server-side function and would absolutely not be executed again... if 
the later, we may need further details to know because it certainly 
appears that it should be working as you expect.

Frank

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of Practical Ajax Projects With Java Technology
  (2006, Apress, ISBN 1-59059-695-1)
and JavaScript, DOM Scripting and Ajax Projects
  (2007, Apress, ISBN 1-59059-816-4)
Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!

Kavita Mehta wrote:
 I have a code in JSP file 
 span id=oamHeaderDateTimeInfo%= userDate() %/span
 
 and I'm updating it using AJAX . but surprisingly, the control doesnt go 

 to this userDate() function again ..due to which my date time is not 
 gettingupdated .
 Pls help.
 
 
 Thanks
 Kavita
 
 
 
 
 
*DISCLAIMER*
 
 This message and/or attachment(s) contained here are confidential, 
proprietary to HUGHES SYSTIQUE and its customers. 
 Contents may be privileged or otherwise protected by law. The 
information is solely intended for the entity it is 
 addressed to. If you are not the intended recipient of this message, it 
is strictly prohibited to read, forward, 
 print, retain, copy or disseminate this message or any part of it. If 
you have received this e-mail in error, 
 please notify the sender immediately and delete the message.
 
 

 
 
 
 
 
 
 No virus found in this incoming message.
 Checked by AVG Free Edition. 
 Version: 7.5.467 / Virus Database: 269.7.1/805 - Release Date: 5/15/2007 
10:47 AM

-- 

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





*DISCLAIMER*

This message and/or attachment(s) contained here are confidential, proprietary 
to HUGHES SYSTIQUE and its customers. 
Contents may be privileged or otherwise protected by law. The information is 
solely intended for the entity it is 
addressed to. If you are not the intended recipient of this message, it is 
strictly prohibited to read, forward, 
print, retain, copy or disseminate this message or any part of it. If you have 
received this e-mail in error, 
please notify the sender immediately and delete the message.





Re: AJAX query

2007-05-16 Thread Frank W. Zammetti
When you say your updating it using AJAX, do you mean you are making 
an AJAX request and putting the results into oamHeaderDateTimeInfo?  Or 
do you mean you are making an AJAX request who's response is generated 
by this JSP?  If the former, then it makes perfect sense: userData() is 
a server-side function and would absolutely not be executed again... if 
the later, we may need further details to know because it certainly 
appears that it should be working as you expect.


Frank

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of Practical Ajax Projects With Java Technology
 (2006, Apress, ISBN 1-59059-695-1)
and JavaScript, DOM Scripting and Ajax Projects
 (2007, Apress, ISBN 1-59059-816-4)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

Kavita Mehta wrote:
I have a code in JSP file 
span id=oamHeaderDateTimeInfo%= userDate() %/span


and I'm updating it using AJAX . but surprisingly, the control doesnt go 
to this userDate() function again ..due to which my date time is not 
gettingupdated .

Pls help.


Thanks
Kavita




*DISCLAIMER*

This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers. 
Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is 
addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward, 
print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, 
please notify the sender immediately and delete the message.









No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.7.1/805 - Release Date: 5/15/2007 10:47 AM


--

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



Re: Ajax query

2006-07-31 Thread Thomas Joseph
Hi,

I am not that very experienced in Ajax, but what I feel that It is up to you 
how you produce the HTML code that you are or are not violating the MVC.

If your action class produces html, it voilates, but if it can forward to a JSP 
that generates the bare HTML all that is required for that particuar AJAX 
request, it will not be voilating MVC.

Hope others will also agree with me.?

Thanks and Regards,
Thomas Joseph 

Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 | India 
www.kottsoftware.com 

This email (including any attachments) is subject to copyright, the information 
in it is confidential, and it is legally privileged. Use of this email or of 
any information in it other than by the addressee is unauthorized and unlawful. 
If you are not the intended recipient of the mail, kindly intimate the author 
of the mail and delete the same. 


  - Original Message - 
  From: Patil, Sheetal 
  To: Struts Users Mailing List 
  Sent: Monday, July 31, 2006 3:50 PM
  Subject: Ajax query


  hello friends,
  i have one query with Ajax. in struts we separate model-view-controller,
  even that's struts purpose. 
  but now a days i am using Ajax, and i seen most of the examples are
  producing html code or data to display and sending it to client.
  but i think this is violating M-V-C pattern as it is directly producing
  data and sending to client.
  so please tell me if my thinking is right or worst.
  thanks in advance
  Shital Patil

  Sp

   


Re: Ajax query

2006-07-31 Thread mcmoisei
I use Ajax transparently with Struts using AjaxAnywhere.

You app doesn't change and you don't violate the MVC pattern.
http://sourceforge.net/projects/ajaxanywhere

I don't remember if the examples provide a Struts example.

Check it out,
MC


 -- Original message --
From: Patil, Sheetal [EMAIL PROTECTED]
 hello friends,
 i have one query with Ajax. in struts we separate model-view-controller,
 even that's struts purpose. 
 but now a days i am using Ajax, and i seen most of the examples are
 producing html code or data to display and sending it to client.
 but i think this is violating M-V-C pattern as it is directly producing
 data and sending to client.
 so please tell me if my thinking is right or worst.
 thanks in advance
 Shital Patil
 
 Sp
 
  
 



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