Vikas C Gujjar<br />SCJP 1.4 - 100%<br />SCWCD 1.4 - 84%<br />SCBCD 1.3 - 95%
Vikas C Gujjar<br />SCJP 1.4 - 100%<br />SCWCD 1.4 - 84%<br />SCBCD 1.3 - 95%
Vikas C Gujjar<br />SCJP 1.4 - 100%<br />SCWCD 1.4 - 84%<br />SCBCD 1.3 - 95%
Originally posted by Vikas Gujjar:
Using scriptlet-expression instead of EL serves better, as unlike EL scriplet passes null values for null attributes.
Why you want null? why not empty string?
Moreover, I am unable to find where are you checking for emptiness or null?
Vikas C Gujjar<br />SCJP 1.4 - 100%<br />SCWCD 1.4 - 84%<br />SCBCD 1.3 - 95%
Originally posted by Hari Maha:
Vikas C Gujjar<br />SCJP 1.4 - 100%<br />SCWCD 1.4 - 84%<br />SCBCD 1.3 - 95%
Vikas C Gujjar<br />SCJP 1.4 - 100%<br />SCWCD 1.4 - 84%<br />SCBCD 1.3 - 95%
Originally posted by Vikas Gujjar:
Because by JSP rules its not legal to nest a tag in tag this way
Vikas C Gujjar<br />SCJP 1.4 - 100%<br />SCWCD 1.4 - 84%<br />SCBCD 1.3 - 95%
Originally posted by Vikas Gujjar:
My issue is: [b]How to set attributes to a custom tag based on some condition.
Merrill
Consultant, Sima Solutions
Vikas C Gujjar<br />SCJP 1.4 - 100%<br />SCWCD 1.4 - 84%<br />SCBCD 1.3 - 95%
Originally posted by Adeel Ansari:
Why don't you create a variable and set it after checking each and every attribute then place that variable into the original tag.
Is it making sense to you?
Originally posted by Vikas Gujjar:
Now, I want to pass all the corresponding attributes passed to my tag file to <html:struts ...>. How do I achieve this?
Merrill
Consultant, Sima Solutions
Why don't you create a variable and set it after checking each and every attribute then place that variable into the original tag.
Is it making sense to you?
What I'd suggest is that you have your custom tag handler extend org.apache.struts.taglib.html.SelectTag.
Vikas C Gujjar<br />SCJP 1.4 - 100%<br />SCWCD 1.4 - 84%<br />SCBCD 1.3 - 95%
Originally posted by Merrill Higginson:
You don't. It is not possible to have one custom tag render another custom tag and in turn have that tag render HTML. If you write a custom tag, it must render plain old HTML.
You don't. It is not possible to have one custom tag render another custom tag and in turn have that tag render HTML. If you write a custom tag, it must render plain old HTML.
Vikas C Gujjar<br />SCJP 1.4 - 100%<br />SCWCD 1.4 - 84%<br />SCBCD 1.3 - 95%
Originally posted by Vikas Gujjar:
I hope someday the JSP spec is extend to do
This can serve as an invaluable help in variety of circumstances.
We can do this with the current thing, I believe.
Vikas C Gujjar<br />SCJP 1.4 - 100%<br />SCWCD 1.4 - 84%<br />SCBCD 1.3 - 95%
Merrill
Consultant, Sima Solutions
Vikas C Gujjar<br />SCJP 1.4 - 100%<br />SCWCD 1.4 - 84%<br />SCBCD 1.3 - 95%
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |