Display a list of items in multiples HTML files but within one JSP and action

2006-12-20 Thread Fabio Miranda Hamburger


Hello,

Let's assume I have this big list of item, 250 records are going to be 
display.


I have search.jsp that asks in a FORM the search criteria, then, based on 
the parameters, search.do is execute, and, let's say the first 25 items 
are shown, then, the next 25 (from 25 to 50) are shown and so on.


Questions (all of them are related):

1. How can I coordinate this per basis display of items between the 
searchResults.jsp (search.do success to that file) and the action ?


2. In search.do action, how can I know the offset to display?

3. How searchResults.jsp keeps the offset between consecutive displays and 
how does it resend it to the action ?


A simple code in JSP, html and STRUTS will be very kind.

Best regards,

---
Fabio Andr?s Miranda
Ingenier?a en sistemas inform?ticos
Universidad Latina - Costa Rica
http://ns.isi.ulatina.ac.cr/~fabmirha
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: [S2] - access to the action from a JSP page

2006-12-20 Thread Wesslan
You can access all your actions public getters (and setters) from your JSP
with something like .

Action:
Public String getPetName() {
   return "Dinky";
}

JSP:


Or did I misunderstand you?

Hth,
Peter

-Original Message-
From: Dariusz Wojtas [mailto:[EMAIL PROTECTED] 
Sent: den 20 december 2006 22:29
To: Struts Users Mailing List
Subject: [S2] - access to the action from a JSP page

Hi,

Can somebody help me and give an example how to access the 'parent'
action from a JSP page?

Lets say I have MyTestAction which redirects to 'page.jsp'.
How do I get access to the action (it's properties?)

<%
  MyTestAction act = ...   ?
%>

Darek

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



Checking based on database value?

2006-12-20 Thread Mallik

Hi friends
my problem is i have to ArrayLists 
one contains total services and another contains assigned services to a
role.
when we select a role, assigned services from the total services should be
selected.
In a database table i have serviceids for each service and in another table,
what are the serviceids for a roleid.
how can i do this can anybody help me please.
thanks in advance

ur's
Mallik
-- 
View this message in context: 
http://www.nabble.com/Checking-%3Chtml%3Acheckbox%3E-based-on-database-value--tf2863931.html#a8003324
Sent from the Struts - User mailing list archive at Nabble.com.


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



message resources

2006-12-20 Thread Kranti

hi,

i have a problem related to message resources
during the login time i am doing this
session.setAttribute(Globals.LOCALE_KEY, locale);
where locale is created by the user specific language settings there in DB.

in jsp:



using this and in struts config file


and inthe same directory i have other ApplicationResources files also for
different languages.

But its not picking the properties from diff files when we change the
language settings..eventhough i updated the session attribute for LOCALE_KEY

please suggest


RE: Validator Framework 1.29

2006-12-20 Thread nagesh.kumar
 




  


  

  





Use this
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 21, 2006 9:16 AM
To: Struts Users Mailing List
Subject: Re: Validator Framework 1.29

On 12/20/06, Jim Reynolds <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am having some issues with getting the messages from the validator 
> framework from showing. Actually, I have some old code like this:
>   
>  
>
>  
>   
> that used to work, before upgrading to 1.29. I am getting this error:
> "ccording to TLD or attribute directive in tag file, attribute value 
> does not accept any expressions" (I posted this earlier with no 
> response).

So its objecting to a run time expression in your  tag - thats JSTL
not Struts or validator - but I don't think you need it anyway, can't you
just use

or


> Then I am reading through Struts in Action book and they show this 
> type of error handling in the jsp page.
>
>   
>  
>  
>  
> with a import of this tld.
> uri="/tags/struts-validator" prefix="validator" %>
>
> Anyway, now I am confused and not sure which is the best approach to 
> follow. Also, I cannot find the tld for struts-validator? I checked 
> the struts jar for a tld, but did not find one, and I checked the 
> commons-validator.jar and did not find it there. I don't mind using 
> second one from book, but where is tld?

There are no "validator" jsp tags in Struts or Commons Validator - so no TLD
to go with it.

Niall

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



Re: Validator Framework 1.29

2006-12-20 Thread Niall Pemberton

On 12/20/06, Jim Reynolds <[EMAIL PROTECTED]> wrote:

Hello,

I am having some issues with getting the messages from the validator
framework from showing. Actually, I have some old code like this:
  
 
   
 
  
that used to work, before upgrading to 1.29. I am getting this error:
"ccording to TLD or attribute directive in tag file, attribute value
does not accept any expressions" (I posted this earlier with no
response).


So its objecting to a run time expression in your  tag - thats
JSTL not Struts or validator - but I don't think you need it anyway,
can't you just use
   
or
   


Then I am reading through Struts in Action book and they show this
type of error handling in the jsp page.

  
 
 
 
with a import of this tld.
uri="/tags/struts-validator" prefix="validator" %>

Anyway, now I am confused and not sure which is the best approach to
follow. Also, I cannot find the tld for struts-validator? I checked
the struts jar for a tld, but did not find one, and I checked the
commons-validator.jar and did not find it there. I don't mind using
second one from book, but where is tld?


There are no "validator" jsp tags in Struts or Commons Validator - so
no TLD to go with it.

Niall


Thanks,


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



Testing Struts

2006-12-20 Thread Pierre Goupil

Hello, listers !


I'm getting used to Struts, now. And I must admit it's really a great tool !
I'm going to give Spring a try, but I don't think I'll drop Struts for that.
It seems that they both integrate seamlessly.

But there's still one thing I really can't figure out : how do you test a
Struts app ? I mean : testing actions, testing app flow, maybe testing a JSP
better that by just viewing it.

Can anyone give me a method, an URL, whatever, regarding this concern ? I'm
using TestNG but I'm comfortable enough with JUnit to read tutorials using
it and adapt to my tool.

Thanx in advance !

Regards,

Pierre

--
To her who remembers every word spoken,

From the heroe's oath

To the baby's cry.
You're my eternal witness.


Struts application - unit and integration testing

2006-12-20 Thread Shulinskiy, Andrey
Hi, folks,

We're starting to develop a front-end layer of our application using
Struts, decided to go with Struts 1.3.5. 

We're going to unit test the actions (most likely with MockRunner
http://mockrunner.sourceforge.net/index.html), however, another idea is
to do some integration testing that checks the Struts configuration. We
have found a nice framework StrutsTestCase
(http://strutstestcase.sourceforge.net/) which is capable of that.
Unfortunately it doesn't work with Struts 1.3.5 and it looks like its
development was abandoned some time ago.

If anyone can suggest something similar, it will be really helpful. 

Thanks.

Yours sincerely,
Andrey.

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



Tomcat in SSL mode with Eclise built in plugin

2006-12-20 Thread Ranjan Kumar Baisak

Hi,
   I am running tomcat in eclipse environment using built in eclipse 
plugin. 
When I am starting tomcat from eclipse, then I am getting following 
error while trying to access my web application.


"Error Establishing an encrypted connection to localhost. Error Code : 
-12188"
I also googled this error code, and I could not able to find any 
suitable answer for the above problem. Some of my modules need SSL 
connection and I am getting problem for HTTPS connection with tomcat. 
This occurs only when I am starting tomcat from eclipse.
If I start tomcat from outside i.e. commandline then I am not getting 
any kind of error.


I am also using Sysdeo provided tomcat plugin but this does not seem to 
be good plugin for debugging web applications.


I would appreciate if anybody can help me or guide me to solve this 
problem.


Thanks in advance.

regards,
Ranjan

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



Re: S2 + Spring 2.0 + JSTL question

2006-12-20 Thread Musachy Barroso

Never mind :). StrutsRequestWrapper, for future reference.

thanks
musachy

Musachy Barroso wrote:

What is the class doing the wrapping?

musachy

Don Brown wrote:

I'm not sure why...we wrap the request so that calls to getAttribute
also search the value stack, which should return a value for the
property.  Try stepping through with the debugger to see what is
happening.

Don

On 12/20/06, Musachy Barroso <[EMAIL PROTECTED]> wrote:

It works fine with s:property, c:out is the one that doesn't work.

thanks
musachy

Martin Gainty wrote:
> believe this is because of default PageContext scoping
>
> if name is a request param then use
> 
>
> if name is a request scoped variable then use
> 
>
> Anyone else?
> M-
> 
--- 

> This e-mail message (including attachments, if any) is intended 
for the use of the individual or entity to which it is addressed and 
may contain information that is privileged, proprietary , 
confidential and exempt from disclosure. If you are not the intended 
recipient, you are notified that any dissemination, distribution or 
copying of this communication is strictly prohibited.
> 
--- 

> Le présent message électronique (y compris les pièces qui y sont 
annexées, le cas échéant) s'adresse au destinataire indiqué et peut 
contenir des renseignements de caractère privé ou confidentiel. Si 
vous n'êtes pas le destinataire de ce document, nous vous signalons 
qu'il est strictement interdit de le diffuser, de le distribuer ou 
de le reproduire.

> - Original Message -
> From: "Musachy Barroso" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Wednesday, December 20, 2006 12:12 PM
> Subject: S2 + Spring 2.0 + JSTL question
>
>
>
>> I'm using S2 with Spring 2.0 as the object factory, and I have an 
action

>> with a property "name".On my jsp I have:
>>
>> JSTL: 
>> S2: 
>>
>> Here is the weird part, when the page loads 
>> doesn't display anything, but  does, if 
I keep
>> hitting "refresh", sometimes the JSTL one displays the property. 
After 3

>> hours, I need some fresh eyes to look at this :)
>>
>> thanks
>> musachy
>>
>> 
-

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





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



Re: S2 + Spring 2.0 + JSTL question

2006-12-20 Thread Don Brown

StrutsRequestWrapper

On 12/20/06, Musachy Barroso <[EMAIL PROTECTED]> wrote:

What is the class doing the wrapping?

musachy

Don Brown wrote:
> I'm not sure why...we wrap the request so that calls to getAttribute
> also search the value stack, which should return a value for the
> property.  Try stepping through with the debugger to see what is
> happening.
>
> Don
>
> On 12/20/06, Musachy Barroso <[EMAIL PROTECTED]> wrote:
>> It works fine with s:property, c:out is the one that doesn't work.
>>
>> thanks
>> musachy
>>
>> Martin Gainty wrote:
>> > believe this is because of default PageContext scoping
>> >
>> > if name is a request param then use
>> > 
>> >
>> > if name is a request scoped variable then use
>> > 
>> >
>> > Anyone else?
>> > M-
>> >
>> ---
>>
>> > This e-mail message (including attachments, if any) is intended for
>> the use of the individual or entity to which it is addressed and may
>> contain information that is privileged, proprietary , confidential
>> and exempt from disclosure. If you are not the intended recipient,
>> you are notified that any dissemination, distribution or copying of
>> this communication is strictly prohibited.
>> >
>> ---
>>
>> > Le présent message électronique (y compris les pièces qui y sont
>> annexées, le cas échéant) s'adresse au destinataire indiqué et peut
>> contenir des renseignements de caractère privé ou confidentiel. Si
>> vous n'êtes pas le destinataire de ce document, nous vous signalons
>> qu'il est strictement interdit de le diffuser, de le distribuer ou de
>> le reproduire.
>> > - Original Message -
>> > From: "Musachy Barroso" <[EMAIL PROTECTED]>
>> > To: "Struts Users Mailing List" 
>> > Sent: Wednesday, December 20, 2006 12:12 PM
>> > Subject: S2 + Spring 2.0 + JSTL question
>> >
>> >
>> >
>> >> I'm using S2 with Spring 2.0 as the object factory, and I have an
>> action
>> >> with a property "name".On my jsp I have:
>> >>
>> >> JSTL: 
>> >> S2: 
>> >>
>> >> Here is the weird part, when the page loads 
>> >> doesn't display anything, but  does, if
>> I keep
>> >> hitting "refresh", sometimes the JSTL one displays the property.
>> After 3
>> >> hours, I need some fresh eyes to look at this :)
>> >>
>> >> thanks
>> >> musachy
>> >>
>> >> -
>> >> 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]




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



Re: S2 + Spring 2.0 + JSTL question

2006-12-20 Thread Musachy Barroso

What is the class doing the wrapping?

musachy

Don Brown wrote:

I'm not sure why...we wrap the request so that calls to getAttribute
also search the value stack, which should return a value for the
property.  Try stepping through with the debugger to see what is
happening.

Don

On 12/20/06, Musachy Barroso <[EMAIL PROTECTED]> wrote:

It works fine with s:property, c:out is the one that doesn't work.

thanks
musachy

Martin Gainty wrote:
> believe this is because of default PageContext scoping
>
> if name is a request param then use
> 
>
> if name is a request scoped variable then use
> 
>
> Anyone else?
> M-
> 
--- 

> This e-mail message (including attachments, if any) is intended for 
the use of the individual or entity to which it is addressed and may 
contain information that is privileged, proprietary , confidential 
and exempt from disclosure. If you are not the intended recipient, 
you are notified that any dissemination, distribution or copying of 
this communication is strictly prohibited.
> 
--- 

> Le présent message électronique (y compris les pièces qui y sont 
annexées, le cas échéant) s'adresse au destinataire indiqué et peut 
contenir des renseignements de caractère privé ou confidentiel. Si 
vous n'êtes pas le destinataire de ce document, nous vous signalons 
qu'il est strictement interdit de le diffuser, de le distribuer ou de 
le reproduire.

> - Original Message -
> From: "Musachy Barroso" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Wednesday, December 20, 2006 12:12 PM
> Subject: S2 + Spring 2.0 + JSTL question
>
>
>
>> I'm using S2 with Spring 2.0 as the object factory, and I have an 
action

>> with a property "name".On my jsp I have:
>>
>> JSTL: 
>> S2: 
>>
>> Here is the weird part, when the page loads 
>> doesn't display anything, but  does, if 
I keep
>> hitting "refresh", sometimes the JSTL one displays the property. 
After 3

>> hours, I need some fresh eyes to look at this :)
>>
>> thanks
>> musachy
>>
>> -
>> 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]



[S2] - access to the action from a JSP page

2006-12-20 Thread Dariusz Wojtas

Hi,

Can somebody help me and give an example how to access the 'parent'
action from a JSP page?

Lets say I have MyTestAction which redirects to 'page.jsp'.
How do I get access to the action (it's properties?)

<%
 MyTestAction act = ...   ?
%>

Darek

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



Re: S2 + Spring 2.0 + JSTL question

2006-12-20 Thread Don Brown

I'm not sure why...we wrap the request so that calls to getAttribute
also search the value stack, which should return a value for the
property.  Try stepping through with the debugger to see what is
happening.

Don

On 12/20/06, Musachy Barroso <[EMAIL PROTECTED]> wrote:

It works fine with s:property, c:out is the one that doesn't work.

thanks
musachy

Martin Gainty wrote:
> believe this is because of default PageContext scoping
>
> if name is a request param then use
> 
>
> if name is a request scoped variable then use
> 
>
> Anyone else?
> M-
> ---
> This e-mail message (including attachments, if any) is intended for the use 
of the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If you 
are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
> ---
> Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements 
de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce 
document, nous vous signalons qu'il est strictement interdit de le diffuser, de le 
distribuer ou de le reproduire.
> - Original Message -
> From: "Musachy Barroso" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Wednesday, December 20, 2006 12:12 PM
> Subject: S2 + Spring 2.0 + JSTL question
>
>
>
>> I'm using S2 with Spring 2.0 as the object factory, and I have an action
>> with a property "name".On my jsp I have:
>>
>> JSTL: 
>> S2: 
>>
>> Here is the weird part, when the page loads 
>> doesn't display anything, but  does, if I keep
>> hitting "refresh", sometimes the JSTL one displays the property. After 3
>> hours, I need some fresh eyes to look at this :)
>>
>> thanks
>> musachy
>>
>> -
>> 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]



Re: S2 + Spring 2.0 + JSTL question

2006-12-20 Thread Musachy Barroso

It works fine with s:property, c:out is the one that doesn't work.

thanks
musachy

Martin Gainty wrote:

believe this is because of default PageContext scoping

if name is a request param then use


if name is a request scoped variable then use


Anyone else?
M-
--- 
This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: "Musachy Barroso" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Wednesday, December 20, 2006 12:12 PM
Subject: S2 + Spring 2.0 + JSTL question


  
I'm using S2 with Spring 2.0 as the object factory, and I have an action 
with a property "name".On my jsp I have:


JSTL: 
S2: 

Here is the weird part, when the page loads  
doesn't display anything, but  does, if I keep 
hitting "refresh", sometimes the JSTL one displays the property. After 3 
hours, I need some fresh eyes to look at this :)


thanks
musachy

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



Re: [s2] Zero configuration and interceptors

2006-12-20 Thread Don Brown

To include certain interceptors or stacks, you need to create a
package in struts.xml, set the default interceptor stack for that
package, then inherit that package in your action via the
@ParentPackage annotation.  Currently, we don't have any
@InterceptorStack annotations, but if you have a suggesting what they
should be and how they should work, please open a JIRA ticket.

Don

On 12/20/06, Nate Drake <[EMAIL PROTECTED]> wrote:

Hi,

I was playing around with the zero configuration stuff in Struts 2.0.2, but I
didn't see any way to specify what interceptors (or stacks) that an action
should use.  Are there plans to add support for this in the future?

Thanks!

Nate


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



Re: S2 + Spring 2.0 + JSTL question

2006-12-20 Thread Martin Gainty
believe this is because of default PageContext scoping

if name is a request param then use


if name is a request scoped variable then use


Anyone else?
M-
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: "Musachy Barroso" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Wednesday, December 20, 2006 12:12 PM
Subject: S2 + Spring 2.0 + JSTL question


> I'm using S2 with Spring 2.0 as the object factory, and I have an action 
> with a property "name".On my jsp I have:
> 
> JSTL: 
> S2: 
> 
> Here is the weird part, when the page loads  
> doesn't display anything, but  does, if I keep 
> hitting "refresh", sometimes the JSTL one displays the property. After 3 
> hours, I need some fresh eyes to look at this :)
> 
> thanks
> musachy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

[s2] Zero configuration and interceptors

2006-12-20 Thread Nate Drake
Hi,

I was playing around with the zero configuration stuff in Struts 2.0.2, but I
didn't see any way to specify what interceptors (or stacks) that an action
should use.  Are there plans to add support for this in the future?

Thanks!

Nate


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



Re: Values of multiple tag are not being selected

2006-12-20 Thread Dale Newfield
I submitted a JIRA issue about this a week or so ago, and Ted marked 
that it will be fixed by the 2.0.3 release.


If you find anything more about this, could you please add it to the 
JIRA issue?


http://issues.apache.org/struts/browse/WW-1557

-Dale

Célio Cidral Junior wrote:

Given the following code:

myPage.jsp:



MyAction.java:

public Set getSelectedRoles() {
Set ids = new HashSet();

for (Role role : selectedRoles)

ids.add(Integer.toString(role.getId()));

return ids;

}

public List getAllRoles() {
return roleDao.list();
}

All the available roles are properly loaded to the list but the ones
returned by getSelectedRoles() are not appearing selected in the list.
I have compared my code against the Employees Manager's (from
struts2-showcase-2.0.1) and my code seems to be correct. In addition,
I debugged getSelectedRoles() to check if the selected role ids are
being correctly returned, and they actually are.

I can't catch anything wrong in my code. Could anybody help me on this?

Regards,

Célio.

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



Re: [OT] ajaxArea embedded with displayTag

2006-12-20 Thread Joseph McGranaghan


After playing with ajaxTags to no avail (on this problem anyways ),

I switched to AjaxAnywhere for use with displayTag.

Took about 20 min total using this awesome source! 


Works like a charm :)

-Joe


[EMAIL PROTECTED] wrote:

Hai

A trivial question ?

I have a problem with DisplayTags (DT) in Struts2  where OGNL throws
exception from DT-
parameter like 'o-434343-p'.  (See discussion "Struts2, DisplayTags
OGNL-error Sakari.Isoniemi " )

So the solution is to use Ajax to bybass Struts2-frame and OGNL ?

/S

-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED] 
Sent: 20. joulukuuta 2006 3:02

To: Struts Users Mailing List
Subject: Re: [OT] ajaxArea embedded with displayTag

If you put the displayTag inside the ajax:area it won't get reloaded 
after the ajax call, what you can do is put the displayTag on a page 
let's say A, the create a page B that has:


   
 
  <%@ include file="A.jsp" %> //or call the action here



then create an action, that the ajax:area will call to update its 
content, that action return value must map to the page A.jsp so the 
content is evaluated, sent back to the page, and displayed inside the 
ajax:area.


musachy

Joseph McGranaghan wrote:
  

I'm trying to use an ajaxArea for the main portion of my site.

Inside it I have control panel of several tiles.

One of the tiles contains a displayTag that I want ajaxified
unto it's own self, not the whole main ajaxArea.

Matter of fact, I can't even get it to work right with the enclosed
ajaxArea either.

I've tried every combination imaginable of ajaxArea, anchors, 
displaytag, and ajax:displayTag


Hoping some poor soul solved this one already.



Basically:



   

   

   




Thanks,

Joe




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



Validator Framework 1.29

2006-12-20 Thread Jim Reynolds

Hello,

I am having some issues with getting the messages from the validator
framework from showing. Actually, I have some old code like this:
 

  

 
that used to work, before upgrading to 1.29. I am getting this error:
"ccording to TLD or attribute directive in tag file, attribute value
does not accept any expressions" (I posted this earlier with no
response).

Then I am reading through Struts in Action book and they show this
type of error handling in the jsp page.

 



with a import of this tld.
uri="/tags/struts-validator" prefix="validator" %>


Anyway, now I am confused and not sure which is the best approach to
follow. Also, I cannot find the tld for struts-validator? I checked
the struts jar for a tld, but did not find one, and I checked the
commons-validator.jar and did not find it there. I don't mind using
second one from book, but where is tld?

Thanks,

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



Values of multiple tag are not being selected

2006-12-20 Thread Célio Cidral Junior

Given the following code:

myPage.jsp:



MyAction.java:

public Set getSelectedRoles() {
Set ids = new HashSet();

for (Role role : selectedRoles)
ids.add(Integer.toString(role.getId()));

return ids;
}

public List getAllRoles() {
return roleDao.list();
}

All the available roles are properly loaded to the list but the ones
returned by getSelectedRoles() are not appearing selected in the list.
I have compared my code against the Employees Manager's (from
struts2-showcase-2.0.1) and my code seems to be correct. In addition,
I debugged getSelectedRoles() to check if the selected role ids are
being correctly returned, and they actually are.

I can't catch anything wrong in my code. Could anybody help me on this?

Regards,

Célio.

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



S2 + Spring 2.0 + JSTL question

2006-12-20 Thread Musachy Barroso
I'm using S2 with Spring 2.0 as the object factory, and I have an action 
with a property "name".On my jsp I have:


JSTL: 
S2: 

Here is the weird part, when the page loads  
doesn't display anything, but  does, if I keep 
hitting "refresh", sometimes the JSTL one displays the property. After 3 
hours, I need some fresh eyes to look at this :)


thanks
musachy

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



[OT]Does Exadel Studio Support IBM RAD?

2006-12-20 Thread Caroline Jen
I used the Exadel as Struts development tool before
and liked it.  At that time, my IDE was Eclipse.

Now, I have to use IBM RAD as IDE.  Does the Exadel
support RAD?

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: S2 / Mailreader IBatis implementaiton ?

2006-12-20 Thread Larry Meadors

No, but I may try to work on something like that over the Christmas break.

You may want to check out these two:

http://learntechnology.net/webwork-crud-lm.do
http://learntechnology.net/webwork-crud.do

Both are done with webwork2, but the it is so darn close that the
changes are pretty trivial.

Larry


On 12/20/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

Hai

Is S2 / Mailreader / IBatis version downloadable somewhere ?

/S





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



Core Tag Question Struts 1.29

2006-12-20 Thread Jim Reynolds

Hello,

I am refactoring some code, and ran into an error, I cannot quite figure out.

I have the following line in my jsp page.


I have an include at top of jsp page that includes a page of taglibs.
<%@ include file="/includes/imports.jsp" %>

That file has the core tag here:
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

The jar standard.jar has the  c.tld in its META-INF directory, and has
a c:out that  has the following definition. (see below). It looks like
it does not take a runtime expression for out, but it used to work?

Then I googled the core tags and found that an example here
http://java.sun.com/j2ee/1.3/docs/tutorial/doc/JSTL5.html
that shows using a runtime expression. Any clues why my taglib has
rtexprvalue = false?

Thanks,



   out
   org.apache.taglibs.standard.tag.el.core.OutTag
   JSP
   
Like <%= ... >, but for expressions.
   
   
   value
   true
   false
   
   
   default
   false
   false
   
   
   escapeXml
   false
   false
   
 

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



RE: S2 / Mailreader IBatis implementaiton ?

2006-12-20 Thread Sakari.Isoniemi
Hai

Is S2 / Mailreader / IBatis version downloadable somewhere ?
 
/S