This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
Similar Threads
Is stylesheet not visible to Struts
struts action class
prototype framework with ajax in struts 2 'jsp
relative path confusion
Images are not coming in JSP pages