Re: [S2] vertical checkboxlist

2007-11-12 Thread SudarshanP

I too have the same problem
anybody could figure out the solution

Thanks in advance



Filippo De Luca wrote:
> 
> Dear Strtuts users
> It is possible, in checkboxlist, to arrange checkboxes vertically?
> 
> Thanks
> 
> -- 
> Filippo De Luca
> [EMAIL PROTECTED]
> http://www.filosganga.it
> --
> Circolo Canottieri Roma
> Lungotevere Flaminio, 39 - 00196 - Roma - Italia
> http://www.canottieriroma.com
> --
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--vertical-checkboxlist-tf4025055.html#a13702316
Sent from the Struts - User mailing list archive at Nabble.com.


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



conditional matching using s:if

2007-11-13 Thread SudarshanP

Hi Struts2 users,

I am new to Struts2

Have a problem with s:if tag, below is the code snippet
'branchsData' is a javaobject having 'branch' as its property

Trying to generate table structure based on condition, i am afraid s:if
conditional tag is not working for me.  Let me know what is the problem with
this code and what best way to achieve this

Any help will be greatly appreciated

Thanks in advance

- START -

   







   

--- END --
-- 
View this message in context: 
http://www.nabble.com/conditional-matching-using-s%3Aif-tf4797396.html#a13724644
Sent from the Struts - User mailing list archive at Nabble.com.


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



RE: conditional statement in struts2

2007-11-13 Thread SudarshanP

With all due respect to roseindia.net, i would like to say that, the examples
given are vanilla which is good to know the concepts but actual development
code will be much complex





Deepak Kumar wrote:
> 
> Please check http://www.roseindia.net/struts/struts2/struts-2-tags.shtml
> 
> Thanks
> 
> 
> -Original Message-
> From: carmi_cd [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 24, 2007 2:47 PM
> To: user@struts.apache.org
> Subject: Re: conditional statement in struts2
> 
> 
> 
> would this code function correctly..that if pdfValue==1 it will display an
> iframe containing a pdf generated from jasperreports else a strut div will
> be displayed containing an html format report?
> 
> 
>  src="%{getReportNumber()}.action?reportId=%{getReportId()}"
> width="800" height="600"/>
> 
> 
>  href="%{getReportNumber()}.action?reportId=%{getReportId()}"
> cssStyle="componentHolder"
>loadingText="Loading report... Please wait."
>errorText="Unable to load report."
>listenTopics="load_report_preview"
>executeScripts="true">
> Loading report... Please wait.
> 
> 
> 
> thanks again.
> 
> 
> jignesh(india) wrote:
>>
>> It's simple dude use s:if and s:else like mentioned below
>> 
>>   if part
>> 
>> 
>>   else part
>> 
>>
>> hope it will help u.!
>> Regards,
>> Jignesh
>>
>>
>>
>>
>> carmi_cd wrote:
>>>
>>> hi i'm new in struts 2..my question is how can i get a value from  a
>>> member variable of my action class and
>>> evaluate it in my if-else-if statemet?
>>>
>>> i try to code it but it doesn't evaluate properly..here is my exisiting
>>> code.
>>>
>>> 
>>> >> href="%{getReportNumber()}.action?reportId=%{getReportId()}"
>>>cssStyle="componentHolder"
>>>loadingText="Loading report... Please wait."
>>>errorText="Unable to load report."
>>>listenTopics="load_report_preview"
>>>executeScripts="true">
>>> Loading report... Please wait.
>>> 
>>> 
>>> 
>>> >> cssStyle="componentHolder"
>>>loadingText="Loading PDF"
>>>errorText="Unable to load report."
>>>listenTopics="load_report_preview"
>>>executeScripts="true">
>>> >> src="%{getReportNumber()}.action?reportId=%{getReportId()}"
>>> width="800" height="600"/>
>>> 
>>> 
>>>
>>> it supposed to display the genereated pdf inside the iframe if the
>>> getPdfValue() method return
>>> are not equal to 0. please help me its not evaluating properly..thanks
>>> in
>>> advance.
>>>
>>
>>
> 
> --
> View this message in context:
> http://www.nabble.com/conditional-statement-in-struts2-tf4682064.html#a13382
> 105
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/conditional-statement-in-struts2-tf4682064.html#a13724734
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: conditional matching using s:if

2007-11-15 Thread SudarshanP

Thanks for the help
Could get what i wanted by using the s:set tag. Code snippet below

--

 
 











---



Laurie Harper wrote:
> 
> Without seeing more of your code I can't be sure, but (see inline):
> 
> SudarshanP wrote:
>> Hi Struts2 users,
>> 
>> I am new to Struts2
>> 
>> Have a problem with s:if tag, below is the code snippet
>> 'branchsData' is a javaobject having 'branch' as its property
> 
> if that's the case, why are you trying to iterate it with s:iterator?
> I'll assume below that branchsData is actually some sort of collection 
> (array or list) of objects where each object has a 'branch' property.
> 
>> Trying to generate table structure based on condition, i am afraid s:if
>> conditional tag is not working for me.  Let me know what is the problem
>> with
>> this code and what best way to achieve this
>> 
>> Any help will be greatly appreciated
>> 
>> Thanks in advance
>> 
>> - START -
>> 
>>
>>  
>> 
>> 
>>  
>> 
>>  
>>  > value="">
>>
>> 
>> --- END --
> 
> It looks like you may be trying to encode presentational information in 
> your data. Those OGNL expressions look suspicious to me, too; why are 
> you trying to do the indexing manually, instead of letting s:iterator 
> handle it for you?
> 
> The simple solution is to get rid of the conditional rendering stuff 
> like so:
> 
>
>
>  
>
>
> 
> If branch=='START' and branch='END' are just placeholder/delimiter 
> entries to separate logical groups of entries, consider making your data 
> structure a list of lists of branches, where the intermediate list does 
> the grouping.
> 
> If that doesn't help, try posting a more complete description of what 
> you're trying to achieve. Maybe there are more suitable changes that can 
> be applied to your data structure and/or presentation logic to get there.
> 
> L.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/conditional-matching-using-s%3Aif-tf4797396.html#a13787836
Sent from the Struts - User mailing list archive at Nabble.com.


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