you could...
but the
request.getParameter(String parameterName)
method returns a String.
All you would need to do is:
String sLoginName = request.getParameter("name");
Joseph Karau
Kingland Systems
[EMAIL PROTECTED]
507-536-3629
AIM: jkara3629
-----Original Message-----
From: Richard Diaz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 1:47 PM
To: [EMAIL PROTECTED]
Subject: how do I make a new class name = a variable?
I'm taking the paramater from the previous page and moving it into the
sLogingName varible.
Then I try to create an Account Bean using the name of the variable... can I
do this?
<%
String sLogingName = new String (request.getParameter("name"));
%>
<jsp:useBean id=LogingName scope="session" class="Account"/>
<%
etc...
thanks!
Rich
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets