aspose file tools
The moose likes JSF and the fly likes  Parameter in Bean variable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark " Parameter in Bean variable" Watch " Parameter in Bean variable" New topic
Author

Parameter in Bean variable

Steppenwolf Knipser
Greenhorn

Joined: Apr 22, 2005
Posts: 1
Hello *,

I have the following code. One parameter from the Url is read out in the field param1.
Code:javascript: x()
Code Tag - UBB Code

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

<html>
<head>
<title>Meine eigenen JSF - Test</title>
</head>
<body>

<f:view>

<h3>Demo for calulate 5% discount </h3>

Only for testing<br>
<br>
<%
String param1 = request.getParameter("param1") ;
%>

<h:form id="inputform">
Order Value<h:inputText id="eingabefeld" value="#{param.param1}"/>
<h:commandButton value="Calculate 5%" action="button"/>
</h:form>
</f:view>
</body>
</html>
javascript: x()
Code Tag - UBB Code


Normaly in the order value there is a parameter field with that code "#{SquareBean.length}" instead of the code "#{param.param1}"

My question is that I want to have the parameter from the url in the variable of my class SquareBean. The parameter is length!

Idea???
Steppenwolf
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Parameter in Bean variable
 
Similar Threads
problem with css
JSF and CSS issues
Tag doesn´t works
problem with basic jsf tags in the jsp
.jsp or .jsf