Solved

Setting String values?

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now