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 htm, javascript & jsp together??? 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 "htm, javascript & jsp together???" Watch "htm, javascript & jsp together???" New topic
Author

htm, javascript & jsp together???

Gail Mikels
Ranch Hand

Joined: May 07, 2001
Posts: 633
I have a .htm file that I have to alter to go to a database and verify a user before the form even loads. I'd thought of using a jsp to get the already-logged-in user from the session, then checking the db there. I'd also thought of using the body tag's on-loadTag to somehow call the jsp, but I can't get any of it working. Is there some way to call the jsp from my .htm file?


Gail Mikels
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
I am not the best person to answer this but this is what little I know
You can acess jsp through an applet/object tag and change parameters.. there is a discussion on it here:
http://www.coderanch.com/t/113648/HTML-JavaScript/set-applet-ID-your-html
you can use the o tag to change these things, I know zip about jsp, so that is why I do not know a real answer!
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50674

To me it makes no sense to "call" a JSP from an html page. Anything you could do with the JSP you can do by making the entire page a JSP without resorting to trickery.
So, why could you not get your JSP working in the first place?
hth,
bear
P.S. You might want to peruse the JSP forum for help on getting your JSP up and running.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Gail Mikels
Ranch Hand

Joined: May 07, 2001
Posts: 633
Thanks, Bear. I think it will do better as a .jsp. I'll cruise on over to that forum.
 
IntelliJ Java IDE
 
subject: htm, javascript & jsp together???
 
Threads others viewed
displaying file in iframe
JSP/Servlet - clarification needed
Where do i place the .class files?
passing parameter from html page to an application
How can I get the URL of request?
IntelliJ Java IDE