This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

prototype framework with ajax that is using struts 2 in jsp  RSS feed

 
seshagiri veerla
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!