• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

htm, javascript & jsp together???

 
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
https://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!
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Gail Schlentz
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, Bear. I think it will do better as a .jsp. I'll cruise on over to that forum.
 
reply
    Bookmark Topic Watch Topic
  • New Topic