Please help! More nested tag trouble with DynaValidatorForm!

2002-11-30 Thread Seth Milder
I am new to Struts, so I hope this is not a dumb question, but I am 
trying to use DynaValidatorForm with the nested:text tags. The trouble 
occurs when the HTML is generated. The JSP looks like this:
!
!-- Address --
nested:root name=userSession
	nested:nest property=user
		nested:nest property=address	
		
		bean:message key=user.address.label /:
	nested:text property=label size=32/
			
 /nested:nest
   /nested:nest
/nested:root
!

The resulting HTML is this:

!
 Address Label: input type=text name=user.address.label size=32 
value=
!

The trouble is that DynaValidatorForm does not like the dots in the name 
attribute even though I have the entry

!
 form-property name=user.address.label 
type=java.lang.String/
!


in the right way in struts-config.xml. In the logs, I get:

	user.address.label=NULL


even though it is not null in the request and an NPE is also generated:



java.lang.NullPointerException
	at org.apache.struts.util.RequestUtils.forwardURL(RequestUtils.java:1223)
.
.
.


Does anyone have a workaround? Am I doing some stupid thing here?

Thanks!

--
Seth Milder
Department of Physics and Astronomy
MS 3f3
George Mason University
Fairfax, VA
http://www.mrseth.org
--
How can you prove whether at this moment we are sleeping, and all our 
thoughts are a dream; or whether we are awake, and talking to one 
another in the waking state? -- Plato


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: Please help! More nested tag trouble with DynaValidatorForm!

2002-11-30 Thread Gemes Tibor
2002-11-30, szo keltezssel Seth Milder ezt rta:
 Does anyone have a workaround? Am I doing some stupid thing here?

The dot separator is for subbeans' properties. It follows the commons
beanutils' PropertyUtils notation.

http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils/PropertyUtils.html

Hth

Tib


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Replicating Website

2002-11-30 Thread Chad Shryock



Hello,

I am trying to 
create a self-replicating website. Example: User A signs up to become a member 
of the website. He fills out a questionnaire. He then has a semi-custom website. 
(http://www.somesite.com/userA/). 
But the userA directory is a virtual directory. How do I do this. I could pay 
and buy a CGI/Perl program to do it, but I would like to build one myself on 
Java and Struts. If someone would point me in the right direction of where to 
look, that would be greatly appreciated.

Thanks,
Chad 
Shryock.


smime.p7s
Description: application/pkcs7-signature


Re: Replicating Website

2002-11-30 Thread David M. Karr
 Chad == Chad Shryock [EMAIL PROTECTED] writes:

Chad Hello,

Chad  

Chad I am trying to create a self-replicating website. Example: User A signs up 
to become a member of the website. He fills out a
Chad questionnaire. He then has a semi-custom website. 
(http://www.somesite.com/userA/). But the userA directory is a virtual
Chad directory. How do I do this. I could pay and buy a CGI/Perl program to do 
it, but I would like to build one myself on Java and
Chad Struts. If someone would point me in the right direction of where to look, 
that would be greatly appreciated.

Well, you might be able to use the pathInfo of the servlet request to contain
the information specific to the user.  You could then use the pathInfo to load
the custom information specific to that user, and then forward to the page that
displays the customized information.

This would take some experimentation to find a strategy that really works.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]