File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes can I do java script like the following Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "can I do java script like the following" Watch "can I do java script like the following" New topic
Author

can I do java script like the following

kay lin
Ranch Hand

Joined: May 20, 2004
Posts: 132
i All:
Could someone take a look at the the following?





will this work? please let me know
thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
Have you tried it?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 23621

You need to add quotes around the parens to make it a string.

Since you are in a JSP, you don't need to use a scriptlet to output static things (like <script> tags.)

Please don't crosspost the same question in multiple forums.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Certs: SCEA Part 1, Part 2 & 3 & Core Spring 3, OCAJP
 
IntelliJ Java IDE
 
subject: can I do java script like the following
 
Threads others viewed
write javascript function in java ?
can I do java script like the following
Famous "Object expected"error,Wishing Browser Independent
embedded js file in doGet
Dynamic page content using out.flush()
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com