S
simplengrichard
Hi!
We are currently developing an web application using the Jakarta
Struts framework (1.3). Since a lot of our forms involve date fields,
we used a javascript datepicker, a calendar displayed in a separate
window and the date picked is reflected on the textfield on the
original page. The javascript is located in an external js file.
When we access the page directly, as in localhost:8080/website/pages/
page.jsp, there is no problem. The datepicker works correctly.
However, if the page is accessed through a forward action localhost:
8080/website/ForwardToAction.do, a javascript error occurs. the
datepicker does not display in a new window. I viewed the error
console of firefox and its says that it is not defined. I do not know
what seems to be the problem. I am not sure but I was thinking that
because the page is accessed through a forward action then the html
head of the jsp page (where the script declaration for the javascript
is located) is not read. Thank you for your help.
We are currently developing an web application using the Jakarta
Struts framework (1.3). Since a lot of our forms involve date fields,
we used a javascript datepicker, a calendar displayed in a separate
window and the date picked is reflected on the textfield on the
original page. The javascript is located in an external js file.
When we access the page directly, as in localhost:8080/website/pages/
page.jsp, there is no problem. The datepicker works correctly.
However, if the page is accessed through a forward action localhost:
8080/website/ForwardToAction.do, a javascript error occurs. the
datepicker does not display in a new window. I viewed the error
console of firefox and its says that it is not defined. I do not know
what seems to be the problem. I am not sure but I was thinking that
because the page is accessed through a forward action then the html
head of the jsp page (where the script declaration for the javascript
is located) is not read. Thank you for your help.