IP address of the user in xforms

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

IP address of the user in xforms

srikanth.prodigy

Hello All,

 

How can we know the IP address of the user who visits the website using xforms

 

Thanks,

Srikanth A.

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: IP address of the user in xforms

Hank Ratzesberger

Srikanth,


On Jun 18, 2009, at 8:04 AM, Srikanth A wrote:

How can we know the IP address of the user who visits the website using xforms

Use the request generator


the remote-addr element.  There is also an x-???? header that
gets added when your xforms calls a pipeline, so you can know 
"internal" requests.

--Hank

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: IP address of the user in xforms

srikanth.prodigy

Hello  Hank,

 

I have called the xpl  in xforms-model construct-done

The browser is in loading state for a long time

It did not display the page

Please the attachment with this mail

 

Thanks,

Srikanth A

 


From: Hank Ratzesberger [mailto:[hidden email]]
Sent: Thursday, June 18, 2009 9:12 PM
To: [hidden email]
Subject: [ops-users] Re: IP address of the user in xforms

 

 

Srikanth,

 

 

On Jun 18, 2009, at 8:04 AM, Srikanth A wrote:

How can we know the IP address of the user who visits the website using xforms

Use the request generator

 

 

the remote-addr element.  There is also an x-???? header that

gets added when your xforms calls a pipeline, so you can know 

"internal" requests.

 

--Hank

 

Hank Ratzesberger

NEES@UCSB

Institute for Crustal Studies,

University of California, Santa Barbara

805-893-8042

 

 

 

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

page-flow.xml (978 bytes) Download Attachment
request.xhtml (1K) Download Attachment
request.xpl (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: IP address of the user in xforms

Hank Ratzesberger
Srikanth,

Since 'request.xpl' is the model attribute of your page-flow:

<page path-info="/barcode/" view="request.xhtml" model="request.xpl"  />

You don't need to obtain it through an action element within the page.  
Instead, just refer to it in your model:

<xforms:instance id="request" src="input:data"/>


Also, you should not need to convert / serialize it, simply put an output on your pageflow:


<p:param name="data" type="input"/>
<p:param name="request" type="output"/>

<p:processor name="oxf:request">
  <p:input name="config">
    <config>
      <include>/request</include>
    </config>
  </p:input>
  <p:output name="data" ref="request"/>
</p:processor>


Hopefully that's all in order and will show in the inspector.


Cheers,
Hank

On Jun 19, 2009, at 1:01 AM, Srikanth A wrote:

Hello  Hank,

 

I have called the xpl  in xforms-model construct-done

The browser is in loading state for a long time

It did not display the page

Please the attachment with this mail

 

Thanks,

Srikanth A

 


From: Hank Ratzesberger [[hidden email]]
Sent: Thursday, June 18, 2009 9:12 PM
To: [hidden email]
Subject: [ops-users] Re: IP address of the user in xforms

 

 

Srikanth,

 

 

On Jun 18, 2009, at 8:04 AM, Srikanth A wrote:

How can we know the IP address of the user who visits the website using xforms

Use the request generator

 

 

the remote-addr element.  There is also an x-???? header that

gets added when your xforms calls a pipeline, so you can know 

"internal" requests.

 

--Hank

 

Hank Ratzesberger

NEES@UCSB

Institute for Crustal Studies,

University of California, Santa Barbara

805-893-8042

 

 

 

 

 

<page-flow.xml><request.xhtml><request.xpl>

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Re: IP address of the user in xforms

srikanth.prodigy

Hello Hank,

 

I have made changes as you said but in instance inspector the value of request instance

<null xsi:nil="true"/>

And you have said to put an output in page flow but it is  displaying an error output tag is not allowed in page-flow. xml

Please find the attachment with this mail

 

Thanks,

Srikanth A

 


From: Hank Ratzesberger [mailto:[hidden email]]
Sent: Friday, June 19, 2009 8:44 PM
To: [hidden email]
Subject: [ops-users] Re: RE: Re: IP address of the user in xforms

 

Srikanth,

 

Since 'request.xpl' is the model attribute of your page-flow:

 

<page path-info="/barcode/" view="request.xhtml" model="request.xpl"  />

 

You don't need to obtain it through an action element within the page.  

Instead, just refer to it in your model:

 

<xforms:instance id="request" src="input:data"/>

 

 

Also, you should not need to convert / serialize it, simply put an output on your pageflow:

 

 

<p:param name="data" type="input"/>

<p:param name="request" type="output"/>

 

<p:processor name="oxf:request">

  <p:input name="config">

    <config>

      <include>/request</include>

    </config>

  </p:input>

  <p:output name="data" ref="request"/>

</p:processor>

 

 

Hopefully that's all in order and will show in the inspector.

 

 

Cheers,

Hank

 

On Jun 19, 2009, at 1:01 AM, Srikanth A wrote:



Hello  Hank,

 

I have called the xpl  in xforms-model construct-done

The browser is in loading state for a long time

It did not display the page

Please the attachment with this mail

 

Thanks,

Srikanth A

 


From: Hank Ratzesberger [[hidden email]]
Sent: Thursday, June 18, 2009 9:12 PM
To: [hidden email]
Subject: [ops-users] Re: IP address of the user in xforms

 

 

Srikanth,

 

 

On Jun 18, 2009, at 8:04 AM, Srikanth A wrote:

How can we know the IP address of the user who visits the website using xforms

Use the request generator

 

 

the remote-addr element.  There is also an x-???? header that

gets added when your xforms calls a pipeline, so you can know 

"internal" requests.

 

--Hank

 

Hank Ratzesberger

NEES@UCSB

Institute for Crustal Studies,

University of California, Santa Barbara

805-893-8042

 

 

 

 

 

<page-flow.xml><request.xhtml><request.xpl>

 

--

You receive this message as a subscriber of the [hidden email] mailing list.

To unsubscribe: [hidden email]

For general help: [hidden email]

OW2 mailing lists service home page: http://www.ow2.org/wws

 

Hank Ratzesberger

NEES@UCSB

Institute for Crustal Studies,

University of California, Santa Barbara

805-893-8042

 

 

 

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

page-flow.xml (948 bytes) Download Attachment
request.xhtml (1K) Download Attachment
request.xpl (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Re: IP address of the user in xforms

Alessandro Vernet
Administrator
Srikanth,

srikanth.prodigy wrote
I have made changes as you said but in instance inspector the value of
request instance

<null xsi:nil="true"/>
The output of your request.xpl needs to be named "data" (hence the input:date in the <xforms:instance>). You'll let us know of this does the trick for you.

Alex
Reply | Threaded
Open this post in threaded view
|

RE: RE: Re: RE: Re: IP address of the user in xforms

srikanth.prodigy
Thanks Alex I'm getting the IP address into xml instance

Thanks,
Srikanth A

-----Original Message-----
From: Alessandro Vernet [mailto:[hidden email]]
Sent: Thursday, June 25, 2009 3:06 AM
To: [hidden email]
Subject: [ops-users] RE: Re: RE: Re: IP address of the user in xforms


Srikanth,


srikanth.prodigy wrote:
>
> I have made changes as you said but in instance inspector the value of
> request instance
>
> <null xsi:nil="true"/>
>

The output of your request.xpl needs to be named "data" (hence the
input:date in the <xforms:instance>). You'll let us know of this does the
trick for you.

Alex

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context:
http://www.nabble.com/IP-address-of-the-user-in-xforms-tp24095107p24193346.h
tml
Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: RE: RE: Re: RE: Re: IP address of the user in xforms

srikanth.prodigy
Hello Alex,

When I try to get the IP address inside a portlet.
In response I did not get the remote address I have attached two different
responses
Please find the attachment with this mail
Can we get the remote address inside a portlet?

Thanks,
Srikanth A

-----Original Message-----
From: Srikanth A [mailto:[hidden email]]
Sent: Thursday, June 25, 2009 9:58 AM
To: [hidden email]
Subject: [ops-users] RE: RE: Re: RE: Re: IP address of the user in xforms

Thanks Alex I'm getting the IP address into xml instance

Thanks,
Srikanth A

-----Original Message-----
From: Alessandro Vernet [mailto:[hidden email]]
Sent: Thursday, June 25, 2009 3:06 AM
To: [hidden email]
Subject: [ops-users] RE: Re: RE: Re: IP address of the user in xforms


Srikanth,


srikanth.prodigy wrote:
>
> I have made changes as you said but in instance inspector the value of
> request instance
>
> <null xsi:nil="true"/>
>

The output of your request.xpl needs to be named "data" (hence the
input:date in the <xforms:instance>). You'll let us know of this does the
trick for you.

Alex

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context:
http://www.nabble.com/IP-address-of-the-user-in-xforms-tp24095107p24193346.h
tml
Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

portlet.xml (631 bytes) Download Attachment
servlet.xml (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: RE: RE: Re: RE: Re: IP address of the user in xforms

Alessandro Vernet
Administrator
Srikanth,

srikanth.prodigy wrote
When I try to get the IP address inside a portlet.
In response I did not get the remote address I have attached two different
responses
Please find the attachment with this mail
Can we get the remote address inside a portlet?
At least according to what I see in the code, it looks like this information is not available from a portlet (see the class PortletExternalContext).

    public String getRemoteAddr() {
        // NOTE: The portlet API does not provide for this value.
        return null;
    }

Alex