Jump to content

sousuke

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About sousuke

  • Rank
    Newbie
  1. hey I've been given a web project which is Java based and I want to know how I would go aboutaccessing the web server environment variables so I can print them all out. It's for my testing, I'd like to see what variables are stored.This project is using shibboleth to protect it, here's the link for a detailed explanation.http://www.switch.ch/aai/demo/expert.htmlAs you can see with Step 13 of the Shibboleth process,Step 13:Finally, the user receives a Shibboleth session cookie and gets redirected to the resource of this demo. The attributes received from the user's Home Organization are provided by the mod_shib module to the web application as web server environment variables. Therefore, the resource could also use these attributes to further restrict access. Thanks heaps
  2. I have just figured out how to do it another using property tags and reference tags <property name = "profile"> <ref bean="profileBean"/> </property> but is there a short way to do it similarly to the way i was setting the values in the code shown in my previous post? Thanks
  3. I'm learning about setter Injection using Spring, I was wondering how do I set p:profile (highlighted in bold) to be the bean the profile bean i specified previous, the one with p:name = Chelsea ?setting the other object values was easy because the were just String and ints but i want to set a Profile object.so p:profile = ? <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <bean id="profile" class="Profile" p:name="Chelsea" p:age="20" p:height="151" p:weight="42" /> <bean id="mybean" class="Inject" p:name="Jason" p:age="24" p:address="Glaxton" p:company="CFX.net" p:email="sentris@cfx.net" [b] p:profile = [/b] /> </beans> Thanks
×
×
  • Create New...