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
Related Q & A:
- How to Upload a JSP File to the smart FTP?Best solution by Yahoo! Answers
- How to insert data in db using jsp?Best solution by Yahoo! Answers
- Is it correct to extend a bean class and write a class which holds logic to populate the bean we extend?Best solution by stackoverflow.com
- How to print list in a jsp?Best solution by theserverside.com
- How to link websiteurl in anchor tag in jsp page?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.