how to use javascript variable value in jsp?

JSP using bean values?

  • Hi guys, I'm new to JSP, and I've figured out how to use a bean to set a value and get a value. But the problem I'm having is, I set the bean value on page A, and I'm getting it on page B. by getting, it display the value correctly for me. But I can't manipulate/use the value for further processing. This is what I have: <jsp:useBean id="InputCheck" class="check.checkForm" scope="application" /> <jsp:getProperty name="InputCheck" property="check" /> <% if (check.equals("1")){ out.println("Message") } %> How can I use the value I retrieve from the bean? Thanks guys

  • Answer:

    10 x the bean number is <% out.println(check*10); %>

Need Help at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.