Max Mohave
2013-01-08 22:15:47 UTC
Max Mohave [https://community.jboss.org/people/maxmohave] created the discussion
"Simplifying use of JSTL SQL in JBOSS"
To view the discussion, visit: https://community.jboss.org/message/789395#789395
--------------------------------------------------------------
As a TOMCAT user its easy to specify a jdbc data source.
JBOSS seems to have several ways to do this.
I would like to use Sql Server 2005 with JSP in a jboss deployment 5.1.0.GA. Something like the following from (http://docs.jboss.org/jbossweb/2.1.x/printer/jndi-datasource-examples-howto.html):
h2. Results
<c:forEach var="row" items="${rs.rows}">
 Foo ${row.foo}<br/>
 Bar ${row.bar}<br/>
</c:forEach>
 </body>
</html>
-
----------------------------------------
Can someone tell me what I need to do this. Step by Step.  1) Do we need to add a file like mssql-ds.xml to "D:\path\jboss-5.1.0.GA server\test\deploy (where I have a "test.war" file). 2) under test.war (i.e., test.war\META-INF\content.xml) should I add a file like -
--------------------
 Any guidance that can be given would be appreciated. I have tried the above approach and however, I always get parsing errors. thank you, MaX
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/789395#789395]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
"Simplifying use of JSTL SQL in JBOSS"
To view the discussion, visit: https://community.jboss.org/message/789395#789395
--------------------------------------------------------------
As a TOMCAT user its easy to specify a jdbc data source.
JBOSS seems to have several ways to do this.
I would like to use Sql Server 2005 with JSP in a jboss deployment 5.1.0.GA. Something like the following from (http://docs.jboss.org/jbossweb/2.1.x/printer/jndi-datasource-examples-howto.html):
h2. Results
<c:forEach var="row" items="${rs.rows}">
 Foo ${row.foo}<br/>
 Bar ${row.bar}<br/>
</c:forEach>
 </body>
</html>
-
----------------------------------------
Can someone tell me what I need to do this. Step by Step.  1) Do we need to add a file like mssql-ds.xml to "D:\path\jboss-5.1.0.GA server\test\deploy (where I have a "test.war" file). 2) under test.war (i.e., test.war\META-INF\content.xml) should I add a file like -
--------------------
 Any guidance that can be given would be appreciated. I have tried the above approach and however, I always get parsing errors. thank you, MaX
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/789395#789395]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]