el_deguito
Grünschnabel
Hallo ihr zwei,
sorry, ohne Code könnt ihr mir nur geringfügig weiterhelfen.
Ich benutze das Lomboz-Eclipse. Meine tlds sind alle unter WEB-Inf/lib.
Hier mein Code in der JSP-Datei, welche ich nur zum Testen der EL benutze:
Und hier der Inhalt meines web.xml - Files:
Soweit ich dass sehe habe ich alles richtig einrichtet. Könnt ihr mir vielleicht sowas wie eine kurze Checkliste durchgeben, die man befolgen muss um die Expression Language zum laufen zu kriegen. Ich hab leider keine Ahnung mehr wo ich noch schauen soll. Hab schon dutzende Tutorials durchstöbert, aber meine EL-Teile werden nicht interpretiert.
Danke schonmal im Voraus für Eurer Bemühungen.
Gruss
El_deguito

sorry, ohne Code könnt ihr mir nur geringfügig weiterhelfen.
Ich benutze das Lomboz-Eclipse. Meine tlds sind alle unter WEB-Inf/lib.
Hier mein Code in der JSP-Datei, welche ich nur zum Testen der EL benutze:
Code:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="pharmaservices.css" rel="stylesheet" type="text/css">
<title>Test</title>
</head>
<jsp:useBean id="searchBean" class="de.fau.ontodrug.DrugSearch" scope="session"/>
<jsp:useBean id="TMUtil" class="de.fau.ontodrug.TMUtil" scope="session"/>
<jsp:setProperty name="searchBean" property="packageName"/>
<jsp:setProperty name="searchBean" property="processed"/>
<jsp:setProperty name="searchBean" property="searchCase"/>
<body>
<%-- header area --%>
<jsp:include page="header.jsp" />
<%-- end header area --%>
<%-- navigation area --%>
<jsp:include page="navigation.jsp" />
<%-- end navigation area --%>
<%-- beginn form --%>
<div id="Input">
<form>
Arzneimittel: <input type="text" name="packageName" value="Bitte eintragen">
<label><input name="searchCase" type="radio" value="Nebenwirkung" checked> Nebenwirkung</label>
<label><input name="searchCase" type="radio" value="Kontraindikation"> Kontraindikation</label>
<input type="submit" value=" Suchen "/>
<input type="hidden" name="processed" value="true"/>
</form>
</div>
<br>
<%-- end form --%>
<c:forEach var="i" begin="1" end="10" step="1">
<c:out value="${i}" />
<br />
</c:forEach>
RemoteHost: <c:out value="${pageContext.session.remoteHost}"/><br>
<c:if test="${searchBean.packageName}">
<c:out value="Hello"/>
</c:if>
<c:out value="Hello"/>
<%-- beginn output area --%>
<% if (searchBean.isProcessed()&
(searchBean.getPackageName()!= null) &
(searchBean.getSearchCase()!= null)) {
%>
<div id="Main">
<div id="Titel">
<jsp:getProperty name="searchBean" property="packageName"/>
</div>
<br>
<div id="Inhalt">
<div id="Titel">
<%=searchBean.getSearchCase()%>
</div>
<%=searchBean.querySideEffects()%>
<% } %>
</div>
</div>
<%-- end output area --%>
<%-- beginn footer area --%>
<jsp:include page="footer.jsp" />
<%-- end footer area --%>
</body>
</html>
Und hier der Inhalt meines web.xml - Files:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<web-app>
<display-name>TopicMaps</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
<taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
<taglib-location>/WEB-INF/c-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/sql.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri>
<taglib-location>/WEB-INF/sql-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
<taglib-location>/WEB-INF/x.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri>
<taglib-location>/WEB-INF/x-rt.tld</taglib-location>
</taglib>
</web-app>
Soweit ich dass sehe habe ich alles richtig einrichtet. Könnt ihr mir vielleicht sowas wie eine kurze Checkliste durchgeben, die man befolgen muss um die Expression Language zum laufen zu kriegen. Ich hab leider keine Ahnung mehr wo ich noch schauen soll. Hab schon dutzende Tutorials durchstöbert, aber meine EL-Teile werden nicht interpretiert.
Danke schonmal im Voraus für Eurer Bemühungen.
Gruss
El_deguito
