:) 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="center"><font size="5" color="black">Master</font></p>
> > > > <div align="center">
> > > >   <center>
> > > >   <table>
> > > >        <tr>
> > > >           <td align="right">
> > > >             Effective from Date
> > > >           </td>
> > > >           <td align="left">
> > > >           <script> DateInput('orderdate', true,
> > 'DD-MON-YYYY')</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]

Reply via email to