[xwiki-users] JNDI Configuration for Jetty 5.1.5
Hi, I am using XE 1.3.2 and Mysql 5.0 with jetty 5.1.5. Can any one give a support for JNDI configuration of jetty 5.1.5 (Not jetty 6). Or is it same for both Jetty 5 & jetty 6? Can any one help? Regards, Project trainees. Again, Now, I will tell my problem in detailed!! I have create a class with some properties and through this, I can insert & display data(by using velocity and HTML). I have to fetch and insert this data into a Mysql table. I could connect to Mysql through Groovy but couldn't integrate this with Velocity. The code which I have used and the error showed is:- #foreach ($todo in $todos) <tr> #set ($todoDoc = $xwiki.getDocument($todo)) #set ($todoObj = $todoDoc.getObject("XWiki.TodoClass")) <td>[$todoObj.ID>$todo]</td> <td>[$todoObj.ProjectName>$todo]</td> <td>$todoObj.Assignee</td> <td>$todoObj.TargetDate</td> <td>$todoObj.Status</td> </tr> <% import groovy.sql.Sql db = Sql.newInstance("jdbc:mysql://localhost/test", "root", "amma123", "com.mysql.jdbc.Driver") db.execute("insert into projects (id, project, assignee, last_modified_datetime) values (${$todoObj.ID}, ${$todoObj.ProjectName}, ${$todoObj.Assignee}), ${$todoObj.Status})") %> #end Error number 4002 in 4: Error while parsing groovy page Todo.WebHome Wrapped Exception: startup failed, Script1.groovy: 5: Unknown type: SCOPE_ESCAPE at line: 5 column: 92. File: Script1.groovy @ line 5, column 92. Hopes response, Thanks, Project trainees.
participants (1)
-
project_traineesï¼ amritatech.com