• 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

prototype framework with ajax that is using struts 2 in jsp

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I will go to using prototype framework with ajax in struts 2 with jsp.
i developed jsp pages follows structure.
\mypopprojectWAR\webapp\WEB-INF\pages.
but i am keeping js folder in
\mypopprojectWAR\webapp\WEB-INF\js\
jsp file:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title>Create New PoP</title>
<!-- Prototype -->
<link href="/WEB-INF/js/editinplace.css" rel="Stylesheet" type="text/css" />
<script src="/WEB-INF/js/prototype-1.6.0.2.js" type="text/javascript"></script>
<script src="/WEB-INF/js/editinplace.js" type="text/javascript"></script>
</head>
<body>
<s:actionerror />
<s:form action="createPoP">
<p id="desc">Edit</p>
<p><strong>Note:</strong> This example uses an inert client-side
script.</p>

</s:form>
</body>
</html>

But is not working of prototype and ajax in jsp

please give solution with code

please give the suggestion how to implement above frameworks

Regards
Seshagiri
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The contents of the WEB-INF directory aren't visible over HTTP. You need to place your JavaScript somewhere else.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic