struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pablo Vázquez Blázquez <pvazq...@denodo.com>
Subject Re: Java Script in JSP pages
Date Wed, 23 Jan 2008 12:54:41 GMT
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="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 <antonio.petrelli@gmail.com>
> wrote:
>
>   
>> 2008/1/23, naveen k <naveenk.btech@gmail.com>:
>>     
>>>     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: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message