Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Parameter in Bean variable  RSS feed

Steppenwolf Knipser
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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="" prefix="h" %>
<%@ taglib uri="" prefix="f" %>

<title>Meine eigenen JSF - Test</title>


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

Only for testing<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"/>
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!

Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!