Select tag

2001-08-29 Thread s k m

Hi all

How do I disply a desired value, while populating the select tag?
I'm using the tag like this...

html:select property=grouptype
html:options collection=allgroups property=key
labelProperty=value/
/html:select

It is showing me the dropdown box with the values in collection 'grouptype' but the 
requirement is to show the specific value while screen is displayed.

Sandeep mahajan

 






Image display problem

2001-08-25 Thread s k m

Hi Friends,

We are facing a problem with image display using JSP. When the page is being displayed 
for the first time then the images are being displayed correctly. However when the 
same page is being displayed again (after a validation failure) the images are not 
being displayed. The same is the problem when other pages are being displayed (e.g. 
checking logon and moving to the user page).  Currently our folder structure is

approot
approot/jsp
approot/jsp/images

and the image is specified as img src=images/abc.gif. We tried moving the images 
folder to the root and specifying the path from the root as in /images/abc.gif. 
However the images are still not being displayed.

What we have observed is that when the validation fails then the image is accessed 
from the path /approot/images whereas in the normal case the image is accessed from 
/jsp/images.

Does anybody know why this happens ? Any help will be appreciated. 

TIA
Sandeep


 






Most Urgent - html:select tag

2001-08-24 Thread s k m

Hi all...
Please, inform me how to implement html:select tag?
I'm stuck up there.
Please, help.

Sandeep

 






Re: RE: Most Urgent - html:select tag

2001-08-24 Thread s k m

Hi jay...
Thank you for your urgent reply.
i'm trying out , but confused.
will u please, send one example?

sandeep

On Sat, 25 Aug 2001 Jay Patel wrote :
Short answer:

  html:select property=designId
html:options collection=designs 
property=id
labelProperty=name/
  /html:select

Long answer can be found at http://jakarta.apache.org

Jay Patel
972-701-9773
972-849-0373 Mobile
[EMAIL PROTECTED]
 


-Original Message-
From: s k m [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 24, 2001 2:10 PM
To: [EMAIL PROTECTED]
Subject: Most Urgent - html:select tag


Hi all...
Please, inform me how to implement html:select tag?
I'm stuck up there.
Please, help.

Sandeep

 




 






Re: Re: Most Urgent - html:select tag

2001-08-24 Thread s k m

Hi Supriya..
thank you..
will u please send me one example on it? how to iterate it?

Sandeep

On Sat, 25 Aug 2001 SUPRIYA MISRA wrote :
Hi Sandeep --Hope this helps
html:select property=facCd

   html:options
collection=FACILITY
property=facCd
   labelProperty=facDes
 /
  /html:select


From: s k m [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Most Urgent - html:select tag
Date: 24 Aug 2001 19:09:43 -

Hi all...
Please, inform me how to implement html:select tag?
I'm stuck up there.
Please, help.

Sandeep







-
_
Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp



 






Re: RE: RE: Most Urgent - html:select tag

2001-08-24 Thread s k m

Hi Jay,

this will add only text which will be displyed in drop down box. how do I set values 
for it?
i ve hash table from which i want to keep keys as values and hashtable values as 
displyed text in drop down box.

Sandeep

On Sat, 25 Aug 2001 Jay Patel wrote :
From the subscription.jsp of the struts-example:

%-- In real life, these would be loaded from a 
database --%
%
  java.util.ArrayList list = new java.util.ArrayList();
  list.add(new org.apache.struts.webapp.example.LabelVal-
ueBean(IMAP
Protocol, imap));
  list.add(new org.apache.struts.webapp.example.LabelVal-
ueBean(POP3
Protocol, pop3));
  pageContext.setAttribute(serverTypes, list);
%

html:select property=type
  html:options collection=serverTypes 
property=value
labelProperty=label/
/html:select

Iteration is done by the tag, so don't worry. Each 
element of the collection
will be looked up, from each object in the collection, 
two properties will
be looked up; namely value and label ( in above example 
). You may have
different properties that you may want to look-up.


Previous example I sent you *was* a real code I am 
using.

Jay Patel
972-701-9773
972-849-0373 Mobile
[EMAIL PROTECTED]
 


-Original Message-
From: s k m [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 24, 2001 2:24 PM
To: [EMAIL PROTECTED]
Subject: Re: RE: Most Urgent - html:select tag


Hi jay...
Thank you for your urgent reply.
i'm trying out , but confused.
will u please, send one example?

sandeep

On Sat, 25 Aug 2001 Jay Patel wrote :
Short answer:

  html:select property=designId
html:options collection=designs
property=id
labelProperty=name/
  /html:select

Long answer can be found at http://jakarta.apache.org

Jay Patel
972-701-9773
972-849-0373 Mobile
[EMAIL PROTECTED]
 


-Original Message-
From: s k m [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 2:10 PM
To: [EMAIL PROTECTED]
Subject: Most Urgent - html:select tag


Hi all...
Please, inform me how to implement html:select tag?
I'm stuck up there.
Please, help.

Sandeep

 




 




 






Thanxs from Sandeep

2001-08-24 Thread s k m

Hi Jay,

Many many many thanxs. Thanxs to u we crossed a hurdle. Many more hurdles are to be 
crossed, but then my spirits are up.

Thanxs once again.

I would surely be in touch with U.

Regards,

Sandeep Mahajan
 Team