Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 23rd, 2004, 09:40 AM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to elsylo
Default jsp, mysql, cocoon and many other problems ;o)

hi!
i'm a real newby here. i'm coding java for a few years but my new project really kills me.
i need to write a forum with jsp, in a cocoon framework, with the forum data in mysql respectively postgreSQL.
but i'm really stuck in the beginning.. i dont get any reply from the db with this (and no error- nothing in fact *g*)

<?xml version="1.0" encoding="iso-8859-1" ?>
<html xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:sql="http://java.sun.com/jsp/jstl/sql"
    xmlns:fn="http://java.sun.com/jsp/jstl/functions" >

<head>

<title>Arschlochfickenseite</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
</head>
<body>

<sql:setDataSource dataSource='jdbc:mysql://localhost/eule,com.mysql.jdbc.Driver,root,test'
                        scope='session' var="books"/>



<!--

<sql:setDataSource dataSource='jdbc:mysql://localhost/eule,com.mysql.jdbc.Driver,root,test'
                        scope='session'/>

<sql:setDataSource
    var = "books"
    driver="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost/eule"
    user="root"
    password="test"/>

<sql:query var="hurebabylons">
   SELECT * FROM admin
</sql:query>

<sql:query>
   <c:out value='SELECT * FROM admin'/>
</sql:query>
-->

<sql:transaction dataSource="books">

<!--
<sql:query var="books" >
  <c:out value='SELECT * FROM admin'/>
</sql:query>
-->

<sql:update var="books">
    <c:out value="INSERT into admin values ('user','pwd');"/>
</sql:update>

</sql:transaction>

<!--
<table width="200" border="1">
<th>Admin</th>
<th>Password</th>
  <c:forEach items="${books.name}" var="row">
  <tr>
    <td> <c:out value=" ${row.name}"/> </td>
    <td> <c:out value=" ${row.title}"/> </td>
</tr>
</c:forEach>
</table>
-->
   <br></br>
   <br></br>
</body>
</html>

i tried all the things commented but nothing worked..
thank u for your help.. i'm really kind of stuck..
thank u, bye
sylvia
technical university of vienna






Similar Threads
Thread Thread Starter Forum Replies Last Post
JSP-n-MySQL simple example anshul BOOK: Beginning JavaServer Pages 1 April 12th, 2006 05:31 AM
java/jsp and MySQL harshika Java Databases 2 August 2nd, 2005 02:07 AM
MySql, JSP, javaBeans! help! doori JSP Basics 2 June 2nd, 2005 06:17 AM
JSP-n-MySQL anshul JSP Basics 0 May 31st, 2005 02:21 AM
JSP + MYsql MAK_NUST Java Databases 5 October 27th, 2004 05:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.