Solved

Setting String values?

Posted on 2004-07-30
1
202 Views
Last Modified: 2010-04-01
The following page works:
--------------------------------------------------------------------------------
<%@ page language="java" contentType="text/html" %>


<jsp:useBean
      id="userInfo"
      class="test.UserInfoBean">
      <jsp:setProperty name="userInfo" property="*" />
</jsp:useBean>

<html>
<head>
      <title>test.jsp</title>
</head>

<body>

You hit the test page!!!!

<jsp:getProperty name="userInfo" property="emailAddrFormatted" /> <br>

<jsp:getProperty name="userInfo" property="passwordFormatted" />

</body>
</html>
--------------------------------------------------------------------------------

So, how would I set the String values (below) correctly within the same page? I can't seem to get it to work.

String email = <jsp:getProperty name="userInfo" property="emailAddrFormatted" />;

String password = <jsp:getProperty name="userInfo" property="passwordFormatted" /> ;

0
Comment
Question by:nickl1
1 Comment
 
LVL 27

Accepted Solution

by:
rrz earned 125 total points
ID: 11684556
>So, how would I set the String values (below) correctly within the same page?
I am confused. What you are asking ?
Maybe
<%
     String email = userInfo.getEmailAddrFormatted();
     String password = userInfo.getPasswordFormatted();
%>
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
library class in java 1 92
caughtSpeeding java challenge 16 136
equalIsNot  challenge 43 138
main method of string class 3 110
Read about the ways of improving workplace communication.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question