Solved

Setting String values?

Posted on 2004-07-30
1
205 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java cyclic graphs 15 212
unit test DAO layer 1 139
Market Place not working in Eclipse Luna 2 118
login jsp example 24 65
This article describes how to reset your Windows 10 password when you've forgotten it.
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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