?
Solved

Setting String values?

Posted on 2004-07-30
1
Medium Priority
?
214 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 28

Accepted Solution

by:
rrz earned 375 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month13 days, 9 hours left to enroll

801 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