This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Ivann Ivanoff

Greenhorn
+ Follow
since Oct 09, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ivann Ivanoff

Guys, I solved this broblem. My implementation isn't perfect, but he works!

Bean: Test1.java

14 years ago
JSF
Thanks A. Dusi !

With pleasure would look at a similar working code, (code must work with database) !!!
14 years ago
JSF
Hi All,
Why my code doesn't works? After code execution on JSP page I get empty selectOneMenu. Please help me!

Page: test1.jsp:

<html>

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<f:view>
<head>
<link href="styles.css" rel="stylesheet" type="text/css"/>
<title>

</title>
</head>
<body>
<h:form >

<h:selectOneMenu value="#{test1.value}">
<f:selectItems value="#{test1.values}" />
</h:selectOneMenu>

</h:form>
</body>
</f:view>
</html>

Bean: Test1.java


faces-config.xml:

<managed-bean>
<managed-bean-name>test1</managed-bean-name>
<managed-bean-class>com.va.epms.dept.Test1</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
14 years ago
JSF
Good day to all!

I have some web-application(build in Struts), this application good working with MySQL database, but our customers want to use this application with MSSQL database. And i change only datasource in struts-config.xml! My struts-config.xml:
<data-sources>
<data-source key="t3" type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="minCount" value="" />
<set-property property="password" value="" />
<set-property property="maxCount" value="" />
<set-property property="user" value="sa" />
<set-property property="driverClassName" value="com.microsoft.jdbc.sqlserver.SQLServerDriver" />
<set-property property="description" value="t3" />
<set-property property="url" value="jdbc:sqlserver://localhost:1433;DatabaseName=t3" />
<set-property property="autoCommit" value="false" />
<set-property property="readOnly" value="false" />
<set-property property="loginTimeout" value="" />
</data-source>
</data-sources>

i starting application and try to login (logins and passwords saved in database), but Tomcat writing this error:
type Status report
message Servlet action is not available
description The requested resource (Servlet action is not available) is not available.

What here it is not correct? Prompt please
15 years ago