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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

prototype framework with ajax in struts 2 'jsp

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
We have a basic HTML page which links in the prototype.js file and our own editinplace.js.
i want to a strut2' jsp page which links in the prototype .js and our own editinplace.js
Please forward me if any examples there.
follows code base HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Edit-in-Place with Ajax</title>
<link href="editinplace.css" rel="Stylesheet" type="text/css" />
<script src="prototype.js" type="text/javascript"></script>
<script src="editinplace.js" type="text/javascript"></script>
</head>
<body>
<h1>Edit-in-place</h1>
<p id="desc">Dashing through the snow on a one horse open sleigh.</p>
</body>
</html>
My code:
<%@ 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>

How to edit with strut2' jsp code in editinplace.js

I don't struture of prototype framework

please forward me as soon as possible

Regards
Seshagiri
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please do not post duplicate threads, and also that your post goes into the most appropriate forum. Your question is not an Object Relational Mapping question.

I am going to close this thread.

Try the Javascript or JSP forum. But delete your other dup, if it wasn't already moved to that forum. You can delete your own threads by clicking the edit icon above your first post in that thread and then checking off the delete checkbox.

Thanks

Mark
 
If somebody says you look familiar, tell them you are in porn. Or in these tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
    Bookmark Topic Watch Topic
  • New Topic