Are you sure the value isn't getting reset before it gets to your page? I
assume no exceptions are being thrown which prevent the field from
initializing, I saw earlier you're initializing this value in the
constructor.  What happens if you just leave the value assigned from the
private instance var and have the accessor retrive that w/o the stuff in the
constructor?

> <html:image src='<%= MapForm.mapSource() %>' property="" />

>From your example, I also assume you retrieved the MapForm object from the
session in the proper scope?

-----Original Message-----
From: Das, Amar [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 4:37 PM
To: 'Struts Users Mailing List'
Subject: RE: Failing to get an answer,can it be done?




Thanks. But it is not working.
In my form bean (MapForm) I am setting the following variable
public class MapForm extends ActionForm {

  /* Map Source*/
  private String
mapSource="http://geo.tpmc.com/output/dqs_GEO2056217212.jpg";;
  .....

  public MapForm(){
        try {

                mapSource = map.getMapOutput().getURL();
        .....

Then on my jsp page I am using the following
<html:image src='<%= MapForm.mapSource() %>' property="" />

Any suggestion?

-----Original Message-----
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 3:16 PM
To: Struts Users Mailing List
Subject: RE: Failing to get an answer,can it be done?

Sure,

<html:image src='<%= formBean.url %>'/>

or wi html-el

<html:image src="${formBean.url}'/>

I haven't used the html-el lib so I'm guessing on that last one

-----Original Message-----
From: Das, Amar [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 2:24 PM
To: [EMAIL PROTECTED]
Subject: Failing to get an answer,can it be done?


Hi,

Is it possible to set the src URL of an input image tag in the action form?
For example, how can I assign a URL dynamically to the src attribute of an
input tag of type image?

<html:form ..>

<html:image src=??? />

</html:form>

Thanks

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



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

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



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

Reply via email to