Loading instance from Java request or session parameter

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

Loading instance from Java request or session parameter

Stephanie Hall (TT)

Hi,

 

So I have an XML string I am getting from my servlet and I’d like to dynamically populate the guts of my instance with it.  The XML is currently accessible with “request.getParameter(“configXml”).  What I tried to do is something like:

 

<xforms:instance id="config-instance">

      <%session.getAttribute("configXml");%>

</xforms:instance>

 

However, every time I do that, I get:  “Required @src attribute, @resource attribute, or inline content for instance: config-instance”

 

Is there a way to do this that I’m missing?  It needs to run while the page is loading.   I’d rather not have to use XPL if I don’t really have to, and saving it to a file is not possible. 

 

Thanks,

Stephanie



--
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: Loading instance from Java request or session parameter

Erik Bruchez-3
Did you check this page?

http://wiki.orbeon.com/forms/how-to/load-initial-form-data

BTW I would not use a session attribute for this, but a request
attribute instead.

-Erik

On Wed, Nov 18, 2009 at 2:23 PM, Stephanie Hall (TT)
<[hidden email]> wrote:

> Hi,
>
>
>
> So I have an XML string I am getting from my servlet and I’d like to
> dynamically populate the guts of my instance with it.  The XML is currently
> accessible with “request.getParameter(“configXml”).  What I tried to do is
> something like:
>
>
>
> <xforms:instance id="config-instance">
>
>       <%session.getAttribute("configXml");%>
>
> </xforms:instance>
>
>
>
> However, every time I do that, I get:  “Required @src attribute, @resource
> attribute, or inline content for instance: config-instance”
>
>
>
> Is there a way to do this that I’m missing?  It needs to run while the page
> is loading.   I’d rather not have to use XPL if I don’t really have to, and
> saving it to a file is not possible.
>
>
>
> Thanks,
>
> Stephanie
>
> --
> 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
>
>


--
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: Loading instance from Java request or session parameter

Stephanie Hall (TT)
Hi Erik,

No, I hadn't seen that page, but it was exactly what I was looking for!  Thanks!

Stephanie
 

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]]
Sent: Wednesday, November 18, 2009 5:55 PM
To: [hidden email]
Subject: [ops-users] Re: Loading instance from Java request or session parameter

Did you check this page?

http://wiki.orbeon.com/forms/how-to/load-initial-form-data

BTW I would not use a session attribute for this, but a request attribute instead.

-Erik

On Wed, Nov 18, 2009 at 2:23 PM, Stephanie Hall (TT) <[hidden email]> wrote:

> Hi,
>
>
>
> So I have an XML string I am getting from my servlet and I'd like to
> dynamically populate the guts of my instance with it.  The XML is
> currently accessible with "request.getParameter("configXml").  What I
> tried to do is something like:
>
>
>
> <xforms:instance id="config-instance">
>
>       <%session.getAttribute("configXml");%>
>
> </xforms:instance>
>
>
>
> However, every time I do that, I get:  "Required @src attribute,
> @resource attribute, or inline content for instance: config-instance"
>
>
>
> Is there a way to do this that I'm missing?  It needs to run while the
> page is loading.   I'd rather not have to use XPL if I don't really
> have to, and saving it to a file is not possible.
>
>
>
> Thanks,
>
> Stephanie
>
> --
> 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
>
>


--
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