Re: Java Script in JSP pages

2008-01-24 Thread Alexandru BARBAT
Hi,

I think it is better to use like this:

script type=text/javascript src='html:rewrite
page=/Calendar/calendarDateinput.js/'/script

in the browser will appear (the absolute path):

script type=text/javascript
src='/yourContextName/Calendar/calendarDateinput.js'/script




- Original Message - 
From: Randy Burgess [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, January 23, 2008 6:37 PM
Subject: Re: Java Script in JSP pages


 Try this.

  script type=text/javascript src=Calendar/calendarDateInput.js
  /script

 You need to check your file paths and understand relative links in your
web
 application. If that isn't it then you will have to figure it out. The
 syntax is correct.

 Regards,
 Randy Burgess
 Sr. Web Applications Developer
 Nuvox Communications



  From: naveen k [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List user@struts.apache.org
  Date: Wed, 23 Jan 2008 14:27:34 +0300
  To: Struts Users Mailing List user@struts.apache.org
  Subject: Re: Java Script in JSP pages
 
  Thanks for ur reply.
  I have Jason's Calendar code which run  calendar.js script.
  I need to set that in my JSP page i could not da that.
 
  I have done the same thing in html page.
 
  I was trying to do like this
 
  %@ page language=java pageEncoding=UTF-8%
 
  %@ taglib uri=http://jakarta.apache.org/struts/tags-bean;
prefix=bean %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-html;
prefix=html %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-logic;
prefix=logic
  %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-tiles;
prefix=tiles
  %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-template;
  prefix=template %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-nested;
  prefix=nested %
 
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
  html:html locale=true
head
  html:base /
   script type=text/javascript
src=/Calendar/calendarDateInput.js
/script
 
/head
 
body
   html:form action=/Action
  p align=centerfont size=5 color=blackMaster/font/p
  div align=center
center
table
 tr
td align=right
  Effective from Date
/td
td align=left
script DateInput('orderdate', true, 'DD-MON-')/script
  !-- html:text property=effectiveDateFrom size=30
  maxlength=30/ --
/td
  /tr
 
/table
/center
  /div/html:form
/body
  /html:html
 
  Except that calendar every thing is seen in that Jsp page.
  I didnot understand where the problem lies.
 
  Naveen.
 
 
  On Jan 23, 2008 2:19 PM, Antonio Petrelli [EMAIL PROTECTED]
  wrote:
 
  2008/1/23, naveen k [EMAIL PROTECTED]:
  I am in a development of struts web application.
I need to use java script in a jsp page. but i could not do that.
   cant we use java script in jsp pages?
  If possible how would i do that?
 
  You can put Javascript in your JSP page, what's your problem?
 
  Antonio
 
  -
  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: Java Script in JSP pages

2008-01-24 Thread naveen k
sorry friend this was also not working.

Naveen

On Jan 24, 2008 3:07 PM, Alexandru BARBAT [EMAIL PROTECTED] wrote:

 Hi,

 I think it is better to use like this:

 script type=text/javascript src='html:rewrite
 page=/Calendar/calendarDateinput.js/'/script

 in the browser will appear (the absolute path):

 script type=text/javascript
 src='/yourContextName/Calendar/calendarDateinput.js'/script




 - Original Message -
 From: Randy Burgess [EMAIL PROTECTED]
 To: Struts Users Mailing List user@struts.apache.org
 Sent: Wednesday, January 23, 2008 6:37 PM
 Subject: Re: Java Script in JSP pages


  Try this.
 
   script type=text/javascript src=Calendar/calendarDateInput.js
   /script
 
  You need to check your file paths and understand relative links in your
 web
  application. If that isn't it then you will have to figure it out. The
  syntax is correct.
 
  Regards,
  Randy Burgess
  Sr. Web Applications Developer
  Nuvox Communications
 
 
 
   From: naveen k [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List user@struts.apache.org
   Date: Wed, 23 Jan 2008 14:27:34 +0300
   To: Struts Users Mailing List user@struts.apache.org
   Subject: Re: Java Script in JSP pages
  
   Thanks for ur reply.
   I have Jason's Calendar code which run  calendar.js script.
   I need to set that in my JSP page i could not da that.
  
   I have done the same thing in html page.
  
   I was trying to do like this
  
   %@ page language=java pageEncoding=UTF-8%
  
   %@ taglib uri=http://jakarta.apache.org/struts/tags-bean;
 prefix=bean %
   %@ taglib uri=http://jakarta.apache.org/struts/tags-html;
 prefix=html %
   %@ taglib uri=http://jakarta.apache.org/struts/tags-logic;
 prefix=logic
   %
   %@ taglib uri=http://jakarta.apache.org/struts/tags-tiles;
 prefix=tiles
   %
   %@ taglib uri=http://jakarta.apache.org/struts/tags-template;
   prefix=template %
   %@ taglib uri=http://jakarta.apache.org/struts/tags-nested;
   prefix=nested %
  
   !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
   html:html locale=true
 head
   html:base /
script type=text/javascript
 src=/Calendar/calendarDateInput.js
 /script
  
 /head
  
 body
html:form action=/Action
   p align=centerfont size=5 color=blackMaster/font/p
   div align=center
 center
 table
  tr
 td align=right
   Effective from Date
 /td
 td align=left
 script DateInput('orderdate', true,
 'DD-MON-')/script
   !-- html:text property=effectiveDateFrom size=30
   maxlength=30/ --
 /td
   /tr
  
 /table
 /center
   /div/html:form
 /body
   /html:html
  
   Except that calendar every thing is seen in that Jsp page.
   I didnot understand where the problem lies.
  
   Naveen.
  
  
   On Jan 23, 2008 2:19 PM, Antonio Petrelli [EMAIL PROTECTED]
   wrote:
  
   2008/1/23, naveen k [EMAIL PROTECTED]:
   I am in a development of struts web application.
 I need to use java script in a jsp page. but i could not do that.
cant we use java script in jsp pages?
   If possible how would i do that?
  
   You can put Javascript in your JSP page, what's your problem?
  
   Antonio
  
   -
   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: Java Script in JSP pages

2008-01-24 Thread Antonio Petrelli
2008/1/24, naveen k [EMAIL PROTECTED]:

 sorry friend this was also not working.


Why don't you contact Jason's calendar developers then?
Stop this thread, it's off-topic here.

Antonio


Re: Java Script in JSP pages

2008-01-24 Thread Alexandru BARBAT
:) ok

So my advice is to write in browser
http://yourserver:port/context/calendarDateinput.js

and hit enter.. if popup download window appear with that js file it means
the problem is elsewhere not in jsp-struts.

- Original Message - 
From: naveen k [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, January 24, 2008 2:58 PM
Subject: Re: Java Script in JSP pages


 sorry friend this was also not working.

 Naveen

 On Jan 24, 2008 3:07 PM, Alexandru BARBAT [EMAIL PROTECTED] wrote:

  Hi,
 
  I think it is better to use like this:
 
  script type=text/javascript src='html:rewrite
  page=/Calendar/calendarDateinput.js/'/script
 
  in the browser will appear (the absolute path):
 
  script type=text/javascript
  src='/yourContextName/Calendar/calendarDateinput.js'/script
 
 
 
 
  - Original Message -
  From: Randy Burgess [EMAIL PROTECTED]
  To: Struts Users Mailing List user@struts.apache.org
  Sent: Wednesday, January 23, 2008 6:37 PM
  Subject: Re: Java Script in JSP pages
 
 
   Try this.
  
script type=text/javascript src=Calendar/calendarDateInput.js
/script
  
   You need to check your file paths and understand relative links in
your
  web
   application. If that isn't it then you will have to figure it out. The
   syntax is correct.
  
   Regards,
   Randy Burgess
   Sr. Web Applications Developer
   Nuvox Communications
  
  
  
From: naveen k [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
Date: Wed, 23 Jan 2008 14:27:34 +0300
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: Java Script in JSP pages
   
Thanks for ur reply.
I have Jason's Calendar code which run  calendar.js script.
I need to set that in my JSP page i could not da that.
   
I have done the same thing in html page.
   
I was trying to do like this
   
%@ page language=java pageEncoding=UTF-8%
   
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean;
  prefix=bean %
%@ taglib uri=http://jakarta.apache.org/struts/tags-html;
  prefix=html %
%@ taglib uri=http://jakarta.apache.org/struts/tags-logic;
  prefix=logic
%
%@ taglib uri=http://jakarta.apache.org/struts/tags-tiles;
  prefix=tiles
%
%@ taglib uri=http://jakarta.apache.org/struts/tags-template;
prefix=template %
%@ taglib uri=http://jakarta.apache.org/struts/tags-nested;
prefix=nested %
   
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html:html locale=true
  head
html:base /
 script type=text/javascript
  src=/Calendar/calendarDateInput.js
  /script
   
  /head
   
  body
 html:form action=/Action
p align=centerfont size=5 color=blackMaster/font/p
div align=center
  center
  table
   tr
  td align=right
Effective from Date
  /td
  td align=left
  script DateInput('orderdate', true,
  'DD-MON-')/script
!-- html:text property=effectiveDateFrom size=30
maxlength=30/ --
  /td
/tr
   
  /table
  /center
/div/html:form
  /body
/html:html
   
Except that calendar every thing is seen in that Jsp page.
I didnot understand where the problem lies.
   
Naveen.
   
   
On Jan 23, 2008 2:19 PM, Antonio Petrelli
[EMAIL PROTECTED]
wrote:
   
2008/1/23, naveen k [EMAIL PROTECTED]:
I am in a development of struts web application.
  I need to use java script in a jsp page. but i could not do
that.
 cant we use java script in jsp pages?
If possible how would i do that?
   
You can put Javascript in your JSP page, what's your problem?
   
Antonio
   
  
 -
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]



[OT] Re: Java Script in JSP pages

2008-01-24 Thread Dave Newton
--- Martin Gainty [EMAIL PROTECTED] wrote:
 Dojo uses registerModulePath to associate the package with the folder e.g.
 script
 dojo.registerModulePath(foo, tests/_base/_loader/744/foo);
 dojo.require(foo.bar);
 
 will properly locate packagename.javascript file you were looking for

Dojo? He's using http://calendar.moonscript.com/dateinput.cfm, AFAICT.

d.

 
 M-
 - Original Message -
 From: Alexandru BARBAT [EMAIL PROTECTED]
 To: Struts Users Mailing List user@struts.apache.org
 Sent: Thursday, January 24, 2008 8:10 AM
 Subject: Re: Java Script in JSP pages
 
 
  :) ok
 
  So my advice is to write in browser
  http://yourserver:port/context/calendarDateinput.js
 
  and hit enter.. if popup download window appear with that js file it
 means
  the problem is elsewhere not in jsp-struts.
 
  - Original Message -
  From: naveen k [EMAIL PROTECTED]
  To: Struts Users Mailing List user@struts.apache.org
  Sent: Thursday, January 24, 2008 2:58 PM
  Subject: Re: Java Script in JSP pages
 
 
   sorry friend this was also not working.
  
   Naveen
  
   On Jan 24, 2008 3:07 PM, Alexandru BARBAT [EMAIL PROTECTED]
 wrote:
  
Hi,
   
I think it is better to use like this:
   
script type=text/javascript src='html:rewrite
page=/Calendar/calendarDateinput.js/'/script
   
in the browser will appear (the absolute path):
   
script type=text/javascript
src='/yourContextName/Calendar/calendarDateinput.js'/script
   
   
   
   
- Original Message -
From: Randy Burgess [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, January 23, 2008 6:37 PM
Subject: Re: Java Script in JSP pages
   
   
 Try this.

  script type=text/javascript
 src=Calendar/calendarDateInput.js
  /script

 You need to check your file paths and understand relative links in
  your
web
 application. If that isn't it then you will have to figure it out.
 The
 syntax is correct.

 Regards,
 Randy Burgess
 Sr. Web Applications Developer
 Nuvox Communications



  From: naveen k [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List user@struts.apache.org
  Date: Wed, 23 Jan 2008 14:27:34 +0300
  To: Struts Users Mailing List user@struts.apache.org
  Subject: Re: Java Script in JSP pages
 
  Thanks for ur reply.
  I have Jason's Calendar code which run  calendar.js script.
  I need to set that in my JSP page i could not da that.
 
  I have done the same thing in html page.
 
  I was trying to do like this
 
  %@ page language=java pageEncoding=UTF-8%
 
  %@ taglib uri=http://jakarta.apache.org/struts/tags-bean;
prefix=bean %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-html;
prefix=html %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-logic;
prefix=logic
  %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-tiles;
prefix=tiles
  %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-template;
  prefix=template %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-nested;
  prefix=nested %
 
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
  html:html locale=true
head
  html:base /
   script type=text/javascript
src=/Calendar/calendarDateInput.js
/script
 
/head
 
body
   html:form action=/Action
  p align=centerfont size=5
 color=blackMaster/font/p
  div align=center
center
table
 tr
td align=right
  Effective from Date
/td
td align=left
script DateInput('orderdate', true,
'DD-MON-')/script
  !-- html:text property=effectiveDateFrom size=30
  maxlength=30/ --
/td
  /tr
 
/table
/center
  /div/html:form
/body
  /html:html
 
  Except that calendar every thing is seen in that Jsp page.
  I didnot understand where the problem lies.
 
  Naveen.
 
 
  On Jan 23, 2008 2:19 PM, Antonio Petrelli
  [EMAIL PROTECTED]
  wrote:
 
  2008/1/23, naveen k [EMAIL PROTECTED]:
  I am in a development of struts web application.
I need to use java script in a jsp page. but i could not do
  that.
   cant we use java script in jsp pages?
  If possible how would i do that?
 
  You can put Javascript in your JSP page, what's your problem?
 
  Antonio
 

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


   
  -
 To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Java Script in JSP pages

2008-01-24 Thread Martin Gainty
following up on You need to check your file paths and understand relative
links in your web application.

Dojo uses registerModulePath to associate the package with the folder e.g.
script
dojo.registerModulePath(foo, tests/_base/_loader/744/foo);
dojo.require(foo.bar);

will properly locate packagename.javascript file you were looking for

M-
- Original Message -
From: Alexandru BARBAT [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, January 24, 2008 8:10 AM
Subject: Re: Java Script in JSP pages


 :) ok

 So my advice is to write in browser
 http://yourserver:port/context/calendarDateinput.js

 and hit enter.. if popup download window appear with that js file it means
 the problem is elsewhere not in jsp-struts.

 - Original Message -
 From: naveen k [EMAIL PROTECTED]
 To: Struts Users Mailing List user@struts.apache.org
 Sent: Thursday, January 24, 2008 2:58 PM
 Subject: Re: Java Script in JSP pages


  sorry friend this was also not working.
 
  Naveen
 
  On Jan 24, 2008 3:07 PM, Alexandru BARBAT [EMAIL PROTECTED]
wrote:
 
   Hi,
  
   I think it is better to use like this:
  
   script type=text/javascript src='html:rewrite
   page=/Calendar/calendarDateinput.js/'/script
  
   in the browser will appear (the absolute path):
  
   script type=text/javascript
   src='/yourContextName/Calendar/calendarDateinput.js'/script
  
  
  
  
   - Original Message -
   From: Randy Burgess [EMAIL PROTECTED]
   To: Struts Users Mailing List user@struts.apache.org
   Sent: Wednesday, January 23, 2008 6:37 PM
   Subject: Re: Java Script in JSP pages
  
  
Try this.
   
 script type=text/javascript src=Calendar/calendarDateInput.js
 /script
   
You need to check your file paths and understand relative links in
 your
   web
application. If that isn't it then you will have to figure it out.
The
syntax is correct.
   
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
   
   
   
 From: naveen k [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List user@struts.apache.org
 Date: Wed, 23 Jan 2008 14:27:34 +0300
 To: Struts Users Mailing List user@struts.apache.org
 Subject: Re: Java Script in JSP pages

 Thanks for ur reply.
 I have Jason's Calendar code which run  calendar.js script.
 I need to set that in my JSP page i could not da that.

 I have done the same thing in html page.

 I was trying to do like this

 %@ page language=java pageEncoding=UTF-8%

 %@ taglib uri=http://jakarta.apache.org/struts/tags-bean;
   prefix=bean %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-html;
   prefix=html %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-logic;
   prefix=logic
 %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-tiles;
   prefix=tiles
 %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-template;
 prefix=template %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-nested;
 prefix=nested %

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 html:html locale=true
   head
 html:base /
  script type=text/javascript
   src=/Calendar/calendarDateInput.js
   /script

   /head

   body
  html:form action=/Action
 p align=centerfont size=5
color=blackMaster/font/p
 div align=center
   center
   table
tr
   td align=right
 Effective from Date
   /td
   td align=left
   script DateInput('orderdate', true,
   'DD-MON-')/script
 !-- html:text property=effectiveDateFrom size=30
 maxlength=30/ --
   /td
 /tr

   /table
   /center
 /div/html:form
   /body
 /html:html

 Except that calendar every thing is seen in that Jsp page.
 I didnot understand where the problem lies.

 Naveen.


 On Jan 23, 2008 2:19 PM, Antonio Petrelli
 [EMAIL PROTECTED]
 wrote:

 2008/1/23, naveen k [EMAIL PROTECTED]:
 I am in a development of struts web application.
   I need to use java script in a jsp page. but i could not do
 that.
  cant we use java script in jsp pages?
 If possible how would i do that?

 You can put Javascript in your JSP page, what's your problem?

 Antonio

   
  -
 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

Re: Java Script in JSP pages

2008-01-24 Thread Randy Burgess
Yeah that works great with Struts 1.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



 From: Alexandru BARBAT [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List user@struts.apache.org
 Date: Thu, 24 Jan 2008 14:07:17 +0200
 To: Struts Users Mailing List user@struts.apache.org
 Subject: Re: Java Script in JSP pages
 
 Hi,
 
 I think it is better to use like this:
 
 script type=text/javascript src='html:rewrite
 page=/Calendar/calendarDateinput.js/'/script
 
 in the browser will appear (the absolute path):
 
 script type=text/javascript
 src='/yourContextName/Calendar/calendarDateinput.js'/script
 
 
 
 
 - Original Message -
 From: Randy Burgess [EMAIL PROTECTED]
 To: Struts Users Mailing List user@struts.apache.org
 Sent: Wednesday, January 23, 2008 6:37 PM
 Subject: Re: Java Script in JSP pages
 
 
 Try this.
 
  script type=text/javascript src=Calendar/calendarDateInput.js
  /script
 
 You need to check your file paths and understand relative links in your
 web
 application. If that isn't it then you will have to figure it out. The
 syntax is correct.
 
 Regards,
 Randy Burgess
 Sr. Web Applications Developer
 Nuvox Communications
 
 
 
 From: naveen k [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List user@struts.apache.org
 Date: Wed, 23 Jan 2008 14:27:34 +0300
 To: Struts Users Mailing List user@struts.apache.org
 Subject: Re: Java Script in JSP pages
 
 Thanks for ur reply.
 I have Jason's Calendar code which run  calendar.js script.
 I need to set that in my JSP page i could not da that.
 
 I have done the same thing in html page.
 
 I was trying to do like this
 
 %@ page language=java pageEncoding=UTF-8%
 
 %@ taglib uri=http://jakarta.apache.org/struts/tags-bean;
 prefix=bean %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-html;
 prefix=html %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-logic;
 prefix=logic
 %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-tiles;
 prefix=tiles
 %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-template;
 prefix=template %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-nested;
 prefix=nested %
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 html:html locale=true
   head
 html:base /
  script type=text/javascript
 src=/Calendar/calendarDateInput.js
   /script
 
   /head
 
   body
  html:form action=/Action
 p align=centerfont size=5 color=blackMaster/font/p
 div align=center
   center
   table
tr
   td align=right
 Effective from Date
   /td
   td align=left
   script DateInput('orderdate', true, 'DD-MON-')/script
 !-- html:text property=effectiveDateFrom size=30
 maxlength=30/ --
   /td
 /tr
 
   /table
   /center
 /div/html:form
   /body
 /html:html
 
 Except that calendar every thing is seen in that Jsp page.
 I didnot understand where the problem lies.
 
 Naveen.
 
 
 On Jan 23, 2008 2:19 PM, Antonio Petrelli [EMAIL PROTECTED]
 wrote:
 
 2008/1/23, naveen k [EMAIL PROTECTED]:
 I am in a development of struts web application.
   I need to use java script in a jsp page. but i could not do that.
  cant we use java script in jsp pages?
 If possible how would i do that?
 
 You can put Javascript in your JSP page, what's your problem?
 
 Antonio
 
 -
 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]



Java Script in JSP pages

2008-01-23 Thread naveen k
Hi,

I am in a development of struts web application.
  I need to use java script in a jsp page. but i could not do that.
 cant we use java script in jsp pages?
If possible how would i do that?

Naveen


Re: Java Script in JSP pages

2008-01-23 Thread Antonio Petrelli
2008/1/23, naveen k [EMAIL PROTECTED]:
 I am in a development of struts web application.
   I need to use java script in a jsp page. but i could not do that.
  cant we use java script in jsp pages?
 If possible how would i do that?

You can put Javascript in your JSP page, what's your problem?

Antonio

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




Re: Java Script in JSP pages

2008-01-23 Thread nuwan chandrasoma
Hi,

yes, you can, what is the issue you are facing?

just add the script /script tag inside your page and write your
javascript code there and just use them in your page.

Thanks,

Nuwan


On Jan 23, 2008 2:10 PM, naveen k [EMAIL PROTECTED] wrote:

 Hi,

I am in a development of struts web application.
  I need to use java script in a jsp page. but i could not do that.
  cant we use java script in jsp pages?
 If possible how would i do that?

 Naveen



Re: Java Script in JSP pages

2008-01-23 Thread naveen k
Thanks for ur reply.
I have Jason's Calendar code which run  calendar.js script.
I need to set that in my JSP page i could not da that.

I have done the same thing in html page.

I was trying to do like this

%@ page language=java pageEncoding=UTF-8%

%@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean %
%@ taglib uri=http://jakarta.apache.org/struts/tags-html; prefix=html %
%@ taglib uri=http://jakarta.apache.org/struts/tags-logic; prefix=logic
%
%@ taglib uri=http://jakarta.apache.org/struts/tags-tiles; prefix=tiles
%
%@ taglib uri=http://jakarta.apache.org/struts/tags-template;
prefix=template %
%@ taglib uri=http://jakarta.apache.org/struts/tags-nested;
prefix=nested %

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html:html locale=true
  head
html:base /
 script type=text/javascript src=/Calendar/calendarDateInput.js
  /script

  /head

  body
 html:form action=/Action
p align=centerfont size=5 color=blackMaster/font/p
div align=center
  center
  table
   tr
  td align=right
Effective from Date
  /td
  td align=left
  script DateInput('orderdate', true, 'DD-MON-')/script
!-- html:text property=effectiveDateFrom size=30
maxlength=30/ --
  /td
/tr

  /table
  /center
/div/html:form
  /body
/html:html

Except that calendar every thing is seen in that Jsp page.
I didnot understand where the problem lies.

Naveen.


On Jan 23, 2008 2:19 PM, Antonio Petrelli [EMAIL PROTECTED]
wrote:

 2008/1/23, naveen k [EMAIL PROTECTED]:
  I am in a development of struts web application.
I need to use java script in a jsp page. but i could not do that.
   cant we use java script in jsp pages?
  If possible how would i do that?

 You can put Javascript in your JSP page, what's your problem?

 Antonio

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




Re: Java Script in JSP pages

2008-01-23 Thread Antonio Petrelli
2008/1/23, naveen k [EMAIL PROTECTED]:

  script type=text/javascript src=/Calendar/calendarDateInput.js
   /script



I think that the problem is in the inclusion of the javascript file.
Anyway, this is not a Struts related problem. I suggest to use Firefox and
Firebug to track this kind of problems:
https://addons.mozilla.org/it/firefox/addon/1843

Antonio


Re: Java Script in JSP pages

2008-01-23 Thread naveen k
Right now i was using Mozilla Firefox.
Is there any problem with that?
Any way i am going to install the plugin which u have suggested me.

Naveen

On Jan 23, 2008 2:36 PM, Antonio Petrelli [EMAIL PROTECTED]
wrote:

 2008/1/23, naveen k [EMAIL PROTECTED]:
 
   script type=text/javascript
 src=/Calendar/calendarDateInput.js
/script



 I think that the problem is in the inclusion of the javascript file.
 Anyway, this is not a Struts related problem. I suggest to use Firefox and
 Firebug to track this kind of problems:
 https://addons.mozilla.org/it/firefox/addon/1843

 Antonio



Re: Java Script in JSP pages

2008-01-23 Thread naveen k
Even after i have installed the plugin, there is no result.
what would be my problem.

Naveen

On Jan 23, 2008 2:43 PM, naveen k [EMAIL PROTECTED] wrote:

 Right now i was using Mozilla Firefox.
 Is there any problem with that?
 Any way i am going to install the plugin which u have suggested me.

 Naveen


 On Jan 23, 2008 2:36 PM, Antonio Petrelli  [EMAIL PROTECTED]
 wrote:

  2008/1/23, naveen k [EMAIL PROTECTED]:
  
script type=text/javascript
  src=/Calendar/calendarDateInput.js
 /script
 
 
 
  I think that the problem is in the inclusion of the javascript file.
  Anyway, this is not a Struts related problem. I suggest to use Firefox
  and
  Firebug to track this kind of problems:
  https://addons.mozilla.org/it/firefox/addon/1843
 
  Antonio
 




Re: Java Script in JSP pages

2008-01-23 Thread Antonio Petrelli
2008/1/23, naveen k [EMAIL PROTECTED]:

 Even after i have installed the plugin, there is no result.
 what would be my problem.



Probably I've been not clear.
Your problem is not Struts-related. My suggestion to use Firebug meant that
you need to *use* it to *track* your problem and, after finding it, solve
it.
Firebug does not automagically fix your Javascript issues.

Antonio


Re: Java Script in JSP pages

2008-01-23 Thread naveen k
Hello anyone please help me out of this problem.

Naveen

On Jan 23, 2008 2:49 PM, naveen k [EMAIL PROTECTED] wrote:

 Even after i have installed the plugin, there is no result.
 what would be my problem.

 Naveen


 On Jan 23, 2008 2:43 PM, naveen k [EMAIL PROTECTED]  wrote:

  Right now i was using Mozilla Firefox.
  Is there any problem with that?
  Any way i am going to install the plugin which u have suggested me.
 
  Naveen
 
 
  On Jan 23, 2008 2:36 PM, Antonio Petrelli  [EMAIL PROTECTED]
  wrote:
 
2008/1/23, naveen k [EMAIL PROTECTED]:
   
 script type=text/javascript
   src=/Calendar/calendarDateInput.js
  /script
  
  
  
   I think that the problem is in the inclusion of the javascript file.
   Anyway, this is not a Struts related problem. I suggest to use Firefox
   and
   Firebug to track this kind of problems:
   https://addons.mozilla.org/it/firefox/addon/1843
  
   Antonio
  
 
 



Re: Java Script in JSP pages

2008-01-23 Thread naveen k
How to use this Firebug for these jsp pages to track my problem?
In what way it can help me?
Please dont think i am boring u my friend.

Naveen

On Jan 23, 2008 3:45 PM, Antonio Petrelli [EMAIL PROTECTED]
wrote:

 2008/1/23, naveen k [EMAIL PROTECTED]:
 
  Even after i have installed the plugin, there is no result.
  what would be my problem.



 Probably I've been not clear.
 Your problem is not Struts-related. My suggestion to use Firebug meant
 that
 you need to *use* it to *track* your problem and, after finding it, solve
 it.
 Firebug does not automagically fix your Javascript issues.

 Antonio



Re: Java Script in JSP pages

2008-01-23 Thread naveen k
thanks for ur reply.
But i need to use calendarDateInput.js in my code.
how can i call it from my Jsp if i remove src attribute from the script tag?

Naveen

On Jan 23, 2008 3:54 PM, Pablo Vázquez Blázquez [EMAIL PROTECTED] wrote:

 try

 script type=text/javascript
 /script

 in your funcions

 and

 script type=text/javascript src=/Calendar/calendarDateInput.js
 !-- DO NOT DELETE --
 /script



 naveen k escribió:
  Thanks for ur reply.
  I have Jason's Calendar code which run  calendar.js script.
  I need to set that in my JSP page i could not da that.
 
  I have done the same thing in html page.
 
  I was trying to do like this
 
  %@ page language=java pageEncoding=UTF-8%
 
  %@ taglib uri=http://jakarta.apache.org/struts/tags-bean;
 prefix=bean %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-html;
 prefix=html %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-logic;
 prefix=logic
  %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-tiles;
 prefix=tiles
  %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-template;
  prefix=template %
  %@ taglib uri=http://jakarta.apache.org/struts/tags-nested;
  prefix=nested %
 
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
  html:html locale=true
head
  html:base /
   script type=text/javascript
 src=/Calendar/calendarDateInput.js
/script
 
/head
 
body
   html:form action=/Action
  p align=centerfont size=5 color=blackMaster/font/p
  div align=center
center
table
 tr
td align=right
  Effective from Date
/td
td align=left
script DateInput('orderdate', true, 'DD-MON-')/script
  !-- html:text property=effectiveDateFrom size=30
  maxlength=30/ --
/td
  /tr
 
/table
/center
  /div/html:form
/body
  /html:html
 
  Except that calendar every thing is seen in that Jsp page.
  I didnot understand where the problem lies.
 
  Naveen.
 
 
  On Jan 23, 2008 2:19 PM, Antonio Petrelli [EMAIL PROTECTED]
  wrote:
 
 
  2008/1/23, naveen k [EMAIL PROTECTED]:
 
  I am in a development of struts web application.
I need to use java script in a jsp page. but i could not do that.
   cant we use java script in jsp pages?
  If possible how would i do that?
 
  You can put Javascript in your JSP page, what's your problem?
 
  Antonio
 
  -
  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]




[OT] Re: Java Script in JSP pages

2008-01-23 Thread Dave Newton
--- naveen k [EMAIL PROTECTED] wrote:
 How to use this Firebug for these jsp pages to track my problem?
 In what way it can help me?
 Please dont think i am boring u my friend.

The issue isn't that you're boring anybody, it's that you're using the
struts-user list to ask JavaScript questions which aren't even related to the
JavaScript distributed by Struts.

That you got any replies is an indication of how helpful the people here are
even when the question is wildly off-topic.

A tutorial on Firebug and JavaScript is a bit beyond the scope of the
newsgroup.

I'd try a couple of different approaches. First I'd do a sanity-check to see
if I can load the JavaScript directly from the URL bar. My guess is that you
won't be able to because you're not properly rewriting the URL of the
JavaScript in the JSP page, but that depends on how you've configured your
web application. I'd also check to see if the JavaScript is even being loaded
in your JSP page, which is closely tied to the first issue.

d.


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



Re: Java Script in JSP pages

2008-01-23 Thread Randy Burgess
Try this.

 script type=text/javascript src=Calendar/calendarDateInput.js
 /script

You need to check your file paths and understand relative links in your web
application. If that isn't it then you will have to figure it out. The
syntax is correct. 

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



 From: naveen k [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List user@struts.apache.org
 Date: Wed, 23 Jan 2008 14:27:34 +0300
 To: Struts Users Mailing List user@struts.apache.org
 Subject: Re: Java Script in JSP pages
 
 Thanks for ur reply.
 I have Jason's Calendar code which run  calendar.js script.
 I need to set that in my JSP page i could not da that.
 
 I have done the same thing in html page.
 
 I was trying to do like this
 
 %@ page language=java pageEncoding=UTF-8%
 
 %@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-html; prefix=html %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-logic; prefix=logic
 %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-tiles; prefix=tiles
 %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-template;
 prefix=template %
 %@ taglib uri=http://jakarta.apache.org/struts/tags-nested;
 prefix=nested %
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 html:html locale=true
   head
 html:base /
  script type=text/javascript src=/Calendar/calendarDateInput.js
   /script
 
   /head
 
   body
  html:form action=/Action
 p align=centerfont size=5 color=blackMaster/font/p
 div align=center
   center
   table
tr
   td align=right
 Effective from Date
   /td
   td align=left
   script DateInput('orderdate', true, 'DD-MON-')/script
 !-- html:text property=effectiveDateFrom size=30
 maxlength=30/ --
   /td
 /tr
 
   /table
   /center
 /div/html:form
   /body
 /html:html
 
 Except that calendar every thing is seen in that Jsp page.
 I didnot understand where the problem lies.
 
 Naveen.
 
 
 On Jan 23, 2008 2:19 PM, Antonio Petrelli [EMAIL PROTECTED]
 wrote:
 
 2008/1/23, naveen k [EMAIL PROTECTED]:
 I am in a development of struts web application.
   I need to use java script in a jsp page. but i could not do that.
  cant we use java script in jsp pages?
 If possible how would i do that?
 
 You can put Javascript in your JSP page, what's your problem?
 
 Antonio
 
 -
 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]