aspose file tools*
The moose likes JSP and the fly likes prototype framework with ajax  that is using struts 2 in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "prototype framework with ajax  that is using struts 2 in jsp" Watch "prototype framework with ajax  that is using struts 2 in jsp" New topic
Author

prototype framework with ajax that is using struts 2 in jsp

seshagiri veerla
Greenhorn

Joined: Mar 15, 2008
Posts: 16
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
The contents of the WEB-INF directory aren't visible over HTTP. You need to place your JavaScript somewhere else.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: prototype framework with ajax that is using struts 2 in jsp