Author Login
Post Reply
user Digest 30 Jul 2008 11:33:07 -0000 Issue 8168
Topics (messages 189440 through 189469):
Re: Possible to iterate through a
java.util.Set using Struts 1?
189440 by: Ylva D
189444 by: Martin
189445 by: Dave Newton
Re: [S2] Testing if session variable is present
189441 by: Milan Milanovic
Re: Struts2 and Jquery problem with LightBox or thickbox
189442 by: prashanth2
Re: [S2} REST plugin & Security
189443 by: Mike Watson
[OT] Re: Struts2 and Jquery problem with LightBox or thickbox
189446 by: Dave Newton
189454 by: prashanth2
189455 by: Dave Newton
[s2] Do I need to define the struts2 filter?
189447 by: James Carr
189450 by: Dave Newton
189452 by: Dave Newton
189457 by: Jeromy Evans
189458 by: ManiKanta G
ServletOutputStream
189448 by: Mike Rooney
189468 by: Gabriel Belingueres
Re: S2 and Spring - exception mapping
189449 by: Ramanathan RV
Dojo With Struts2.
189451 by: sharath karnati
189453 by: Dave Newton
189459 by: Deepak Kumar
Re: Background Threads
189456 by: Jeromy Evans
Re: [s2] How to force validation to combobox field
189460 by: Laurie Harper
Re: Struts Taglib + JSP: Best Practices For Complex HTML Attribute Construction
189461 by: Laurie Harper
Re: Implementing ParameterAware but still getting Unexpected Exception caught setting 'name' on 'class....
189462 by: Laurie Harper
189465 by: Jan Froehlich
Re: actionMessages
189463 by: Laurie Harper
s:div tag and internationalization
189464 by: vasileboris
Re: There is no Action mapped for namespace / and action name ...
189466 by: Pauli Savolainen
Redirect after stream result
189467 by: ManiKanta G
Is it a bug in Struts 1.2 that you can't iterate through a
java.util.Set?
189469 by: Ylva D
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_189440.ezm (zipped)It's actually a thesis which I've been working on for more than 6 months (and
I am trying to finish it now as soon as possible). When the specification
for it was written Struts 1 was more accurate, I suppose, but that wasn't my
decision.
/Ylva
Jim Kiley wrote:
>
> If this is new development, I don't understand why you would deliberately
> choose Struts 1 over Struts 2. Unless your goal is to prove that Struts
> has
> too many drawbacks to use.
>
> jk
>
> On Tue, Jul 29, 2008 at 2:50 PM, Ylva D <ylva.degerfeldt@(protected):
>
>>
>> Yes, I suppose I could do that but then I consider that a drawback of
>> Struts.
>> Is there no other way?
>> If there isn't, I think I'd rather use a scriptlet no matter how bad it
>> looks.. (It's also because I'm doing this "Struts project" like a new
>> version of a project where I didn't use Struts and in that project I
>> didn't
>> have to transform my Sets.)
>>
>> /Ylva
>>
>>
>> Jim Kiley wrote:
>> >
>> > Any reason you can't transform the Set into a List at the back end, and
>> > then
>> > iterate over the List?
>> >
>> > jk
>> >
>> > On Tue, Jul 29, 2008 at 2:16 PM, Ylva D <ylva.degerfeldt@(protected)>
>> wrote:
>> >
>> >>
>> >> Hi everyone!
>> >>
>> >> I've just started learning Struts (1) and this is my current problem:
>> >> I have a
java.util.Set which is saved in the current session and I'm
>> >> trying
>> >> to use Struts for checking if it's not empty and in that case
>> iterating
>> >> through it (from a JSP). This is the beginning of that code:
>> >>
>> >> <logic:notEmpty scope = "session" name = "skillsFound">
>> >> <logic:iterate collection = "skillsFound" id= "thisSkill"
>> >> scope
>> >> = "session">
>> >>
>> >> When I try stepping through the code, the logic:notEmpty tag is
>> handled
>> >> just
>> >> fine, but when I get to the logic:iterate tag I get this exception:
>> >>
>> >>
javax.servlet.jsp.JspException: Cannot create iterator for this
>> >> collection
>> >>
>> >> Does anyone know if it's possible to iterate through a Set using
>> Struts
>> >> (1
>> >> and not 2) in any way?
>> >>
>> >> I could always make it work by writing a scriptlet and iterate through
>> it
>> >> the regular Java way, but I'm trying to use as much Struts as possible
>> >> since
>> >> I'm doing a thesis where one of the issues is what the benefits of
>> Struts
>> >> are. (And besides, I've read that using scriptlets is "bad style"
>> >> nowadays.)
>> >>
>> >> So if anybody knows a Struts solution to this, I'd be very grateful!
>> >>
>> >> Thanks in advance!
>> >>
>> >> /Ylva
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Possible-to-iterate-through-a-
java.util.Set-using-Struts-1--tp18718294p18718294.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> >> For additional commands, e-mail: user-help@(protected)
>> >>
>> >>
>> >
>> >
>> > --
>> > Jim Kiley
>> > Technical Consultant | Summa
>> > [p] 412.258.3346 [m] 412.445.1729
>> > http://www.summa-tech.com
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Possible-to-iterate-through-a-
java.util.Set-using-Struts-1--tp18718294p18718883.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
> --
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189444.ezm (zipped)If you're using Struts 2 use the webwork Iteration tags
<ww:iterator /> Iterates over a collection.
<ww:generator /> Generates iterators.
<ww:append /> Appends several iterators.
<ww:subset /> Gets a subset of an iterator.
<ww:merge /> Merges several iterators into one.
<ww:sort /> Sorts an iterator
http://cwiki.apache.org/WW/tutoriallesson04-01.html
?
Martin
----- Original Message -----
From: "Ylva D" <ylva.degerfeldt@(protected)>
To: <user@(protected)>
Sent: Tuesday, July 29, 2008 2:16 PM
Subject: Possible to iterate through a
java.util.Set using Struts 1?
>
> Hi everyone!
>
> I've just started learning Struts (1) and this is my current problem:
> I have a
java.util.Set which is saved in the current session and I'm trying
> to use Struts for checking if it's not empty and in that case iterating
> through it (from a JSP). This is the beginning of that code:
>
> <logic:notEmpty scope = "session" name = "skillsFound">
> <logic:iterate collection = "skillsFound" id= "thisSkill" scope
> = "session">
>
> When I try stepping through the code, the logic:notEmpty tag is handled just
> fine, but when I get to the logic:iterate tag I get this exception:
>
>
javax.servlet.jsp.JspException: Cannot create iterator for this collection
>
> Does anyone know if it's possible to iterate through a Set using Struts (1
> and not 2) in any way?
>
> I could always make it work by writing a scriptlet and iterate through it
> the regular Java way, but I'm trying to use as much Struts as possible since
> I'm doing a thesis where one of the issues is what the benefits of Struts
> are. (And besides, I've read that using scriptlets is "bad style" nowadays.)
>
> So if anybody knows a Struts solution to this, I'd be very grateful!
>
> Thanks in advance!
>
> /Ylva
> --
> View this message in context: http://www.nabble.com/Possible-to-iterate-through-a-
java.util.Set-using-Struts-1--tp18718294p18718294.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189445.ezm (zipped)--- On Tue, 7/29/08, Martin <mgainty@(protected):
> If you're using Struts 2 use the webwork Iteration tags
> <ww:iterator /> Iterates over a collection.
> <ww:generator /> Generates iterators.
> <ww:append /> Appends several iterators.
> <ww:subset /> Gets a subset of an iterator.
> <ww:merge /> Merges several iterators into one.
> <ww:sort /> Sorts an iterator
Or use the S2 tags, which actually makes sense.
They're the same names, but with a prefix used in essentially all S2 example code and documentation.
Dave

Attachment:
user_189441.ezm (zipped)
Hi,
it is S2, I wrote this in subject of this topis.
Thanks, I'll try it.
--
Regards, Milan
felipe.lorenz wrote:
>
> Hummm.. Struts 1 or 2?
>
> This code is to S2.
>
> <s:if test="%{#session.your_variable != null}">
>
> do something
>
> </s:if>
>
> I didnt test it, so im not sure about the code.
>
> But try it, and tell us.
>
> Felipe Lorenz
>
> On Tue, Jul 29, 2008 at 9:34 AM, Milan Milanovic
> <milanmilanovich@(protected):
>
>>
>> Hi,
>>
>> I need to test in jsp if some session variable is present, and based on
>> that
>> to
>> show some struts view code or not. How can I do that ?
>>
>> --
>> Thx, Milan
>> --
>> View this message in context:
>> http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18716278.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189442.ezm (zipped)THIS WORKS FINE NOW..:working:, BUT GUYS ANYBODY IMPLEMNTED THICKBOX/LIGHTBOX
USING AJAX(ANY) FRAMEWORK, if so ur help would be appreciatable.
The problem with jquery thickbox is , it is loading way slow..so i dont
think Jquery is the right solution..
prashanth2 wrote:
>
> I tried to implement thickbox functionality in a jsp ,to display iframe in
> a thickbox. If I use a simple a href using a jsp,thickbox works fine, but
> if i use s:url with *.action as the url ,and if i pass height,width
> attributes ,iam getting an error .I tried removing height and width, but
> iam getting an exception saying ParametersInterceptor exception using
> "random" ."Random" variable is used by jQuery.js internally.
>
> If i can not use Jquery 'thickbox, what other frameworks support thickbox
> kind of functionality, as i need thick box to show some dynamic
> content,such as user's information or it can be a form submit.
>
>
> Jul 2, 2008 3:39:54 PM
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'height' on 'class com.hicom.web.action.UserSignupAction:
> Error setting expression 'height' with value
> '[Ljava.lang.String;@(protected)'
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189443.ezm (zipped)Thanks Jeromy,
Yep, we did get the standard JEE security working in WAS.
(Fat-fingered typing in the web.xml was the culprit).
I'll have a look at the Sping option if we find the container stuff a
bit lacking.
Thanks again for your feedback.
Mike
2008/7/29 Jeromy Evans <jeromy.evans@(protected)>:
>
> If you don't have complex URL patterns, I'd continue down the JEE path. It
> should work. Although I haven't tried it with websphere it's a fundamental
> requirement of the container.
>
> I'd temporarily switch to HTTP BASIC instead of LDAP to try isolate the
> problem.
>
> Yes, creating a custom Security Interceptor is another approach. It's
> pretty simple to throw your own interceptor into the stack that checks the
> Principal or Session and forces a redirect/error if appropriate. It's a low
> effort approach but you take on some more risk of introducing
> vulnerabilities.
>
> An better approach is to use a third party filter. Acegi/Spring Security is
> the most popular and probably the most flexible as it's closely bound to
> your (Spring) Object Factory. There are other open source filters available
> too that may suite you.
>
> Hope that helps,
> Jeromy Evans
>
>
> Mike Watson wrote:
>>
>> I should probably add that I'm just trying to authenticate via LDAP at
>> this stage. Authorization will be implemented later.
>>
>> 2008/7/28 Mike Watson <michael.f.watson@(protected)>:
>>
>>>
>>> Hi Folks,
>>>
>>> What's the most straightforward way to secure my REST URLs?
>>>
>>> I'd assumed that I'd be able to use the standard JEE approach and
>>> secure based on URL patterns but this doesn't seem to work (on
>>> Websphere anyway) and I'm assuming it's to do with the fact everything
>>> I'm doing is happening in filters rather than working with 'real'
>>> resources. (I don't get any errors, I just get to see resources I
>>> shouldn't when I'm not authenticated).
>>>
>>> Is there some sort of Security Interceptor I should enable or should
>>> this work the way I initially assumed?
>>>
>>> Has anybody else (Jeromy?) done this?
>>>
>>> Cheers
>>>
>>> Mike
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>> Internal Virus Database is out of date.
>> Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database:
>> 270.5.5/1569 - Release Date: 23/07/2008 1:31 PM
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189446.ezm (zipped)--- On Tue, 7/29/08, prashanth2 <munigala.prashanth@(protected):
> THIS WORKS FINE NOW..:working:, BUT GUYS ANYBODY IMPLEMNTED
> THICKBOX/LIGHTBOX
> USING AJAX(ANY) FRAMEWORK, if so ur help would be
> appreciatable.
> The problem with jquery thickbox is , it is loading way
> slow..so i dont
> think Jquery is the right solution..
It might make more sense to ask this question in a more JavaScript/client functionality-oriented mailing list, as this appears to have nothing to do with Struts.
I haven't seen any loading performance issues with jQuery, though.
Dave

Attachment:
user_189454.ezm (zipped)
Yes i can understand, though it is js problem..but iam integrating with s2,
and s2 behaves way differently with these frameworks..since s2 has
integrated with dojo..i wonder whether dojo has any support to thickbox.
newton.dave wrote:
>
> --- On Tue, 7/29/08, prashanth2 <munigala.prashanth@(protected):
>> THIS WORKS FINE NOW..:working:, BUT GUYS ANYBODY IMPLEMNTED
>> THICKBOX/LIGHTBOX
>> USING AJAX(ANY) FRAMEWORK, if so ur help would be
>> appreciatable.
>> The problem with jquery thickbox is , it is loading way
>> slow..so i dont
>> think Jquery is the right solution..
>
> It might make more sense to ask this question in a more JavaScript/client
> functionality-oriented mailing list, as this appears to have nothing to do
> with Struts.
>
> I haven't seen any loading performance issues with jQuery, though.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189455.ezm (zipped)--- On Tue, 7/29/08, prashanth2 <munigala.prashanth@(protected):
> i wonder whether dojo has any support to thickbox.
Perhaps the Dojo documentation would be helpful. There's no S2 tag for it, but there's no reason you can't use plain old Dojo with S2, just like any other JavaScript library.
Dave

Attachment:
user_189447.ezm (zipped)In all the examples of tiles2+struts2 I find online, they only show
using the struts2-tiles-plugin listener in the web.xml (they always
omit the rest of the web.xml). Do I still need to include the struts2
filter? When i deploy, it breaks. Claiming the filter is undefined,
and only does this in presence of the listener. :(
Thanks,
James

Attachment:
user_189450.ezm (zipped)In general, you'll want to post to the list instead of emailing list participants directly. Especially me; I bill ;)
--- On Tue, 7/29/08, James Carr <james.r.carr@(protected):
> In all the examples of tiles2+struts2 I find online, they
> only show using the struts2-tiles-plugin listener in the web.xml
> (they always omit the rest of the web.xml). Do I still need to
> include the struts2 filter? When i deploy, it breaks. Claiming
> the filter is undefined, and only does this in presence of the
> listener. :(
Yes, you still need to define the S2 filter, otherwise there's nothing to process incoming requests. As you discovered, this is bad; the reason it claims it's undefined is because... it isn't defined.
The Tiles listener is a ServletContextListener, which just pays attention to container startup, and AFAIK is for reading the tiles config file on startup.
Dave

Attachment:
user_189452.ezm (zipped)(Ignore the billing part--for some reason this message wasn't caught by my filter and hit my inbox.)
Dave
--- On Tue, 7/29/08, James Carr <james.r.carr@(protected):
> From: James Carr <james.r.carr@(protected)>
> Subject: [s2] Do I need to define the struts2 filter?
> To: struts-user@(protected)
> Date: Tuesday, July 29, 2008, 5:35 PM
> In all the examples of tiles2+struts2 I find online, they
> only show
> using the struts2-tiles-plugin listener in the web.xml
> (they always
> omit the rest of the web.xml). Do I still need to include
> the struts2
> filter? When i deploy, it breaks. Claiming the filter is
> undefined,
> and only does this in presence of the listener. :(
>
> Thanks,
> James
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)

Attachment:
user_189457.ezm (zipped)Dave Newton wrote:
> (Ignore the billing part--for some reason this message wasn't caught by my filter and hit my inbox.)
>
> Dave
>
I had the same issue because it was addressed to struts-user@(protected)
user@(protected)
James - Yes, you need both the Struts 2 filter and the Tiles 2 Listener
if you want to use both. Ensure they're in the correct position in
web.xml according to the DTD and that you have all the dependencies for
the tiles plugin (if using the plugin) as missing jars will prevent the
filter from starting.

Attachment:
user_189458.ezm (zipped)Hi,
You always need to include S2 FilterDispatcher as it is the front
controller in S2. In those tiles example the authors assume that the
reader is having basic usage knowledge of S2. Thats why they might have
excluded the S2 filter config.
for ex, consider this...
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
</listener>
Regards,
ManiKanta
James Carr wrote:
> In all the examples of tiles2+struts2 I find online, they only show
> using the struts2-tiles-plugin listener in the web.xml (they always
> omit the rest of the web.xml). Do I still need to include the struts2
> filter? When i deploy, it breaks. Claiming the filter is undefined,
> and only does this in presence of the listener. :(
>
> Thanks,
> James
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin@(protected)

Attachment:
user_189448.ezm (zipped)I created a small webapp that extracts data from a DB, creates an Excel file from that data (using Apache POI), which then streams the file to the end user's browser. Everything is working fine, however I have to set the Action class' return type to 'NULL' since I am setting the servlet response type to 'application/vnd-ms-excel'. I want to change my application so that it returns to a 'status completed' page when the extraction is completed. However I cannot do this when I set the return type is null. How can I do this?
Here is my code...
public class ExtractAction extends ActionSupport {
public String execute() throws Exception {
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet prodSheet = wb.createSheet("PROD");
HSSFSheet devSheet = wb.createSheet("DEV");
HSSFSheet testSheet = wb.createSheet("TEST");
...
HttpServletResponse response = ServletActionContext.getResponse();
response.setContentType("application/vnd.ms-excel");
ServletOutputStream outstream = response.getOutputStream();
wb.write(outstream);
outstream.flush();
response.flushBuffer();
}
return null;
//return SUCCESS
}
and my struts.xml
<struts>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="false" />
<package name="default" extends="struts-default">
<action name="Extractor" class="action.ExtractAction">
<result name="success">/example/index.jsp</result>
</action>
</package>
</struts>

Attachment:
user_189468.ezm (zipped)Your action can not generate two responses (if that's what you asking).
If you forward to a 'status completed' page, then you need to save
your excel data somewhere to not loosing it.
2008/7/29 Mike Rooney <okokabcde@(protected)>:
> I created a small webapp that extracts data from a DB, creates an Excel file from that data (using Apache POI), which then streams the file to the end user's browser. Everything is working fine, however I have to set the Action class' return type to 'NULL' since I am setting the servlet response type to 'application/vnd-ms-excel'. I want to change my application so that it returns to a 'status completed' page when the extraction is completed. However I cannot do this when I set the return type is null. How can I do this?
>
> Here is my code...
>
> public class ExtractAction extends ActionSupport {
> public String execute() throws Exception {
> HSSFWorkbook wb = new HSSFWorkbook();
> HSSFSheet prodSheet = wb.createSheet("PROD");
> HSSFSheet devSheet = wb.createSheet("DEV");
> HSSFSheet testSheet = wb.createSheet("TEST");
> ...
> HttpServletResponse response = ServletActionContext.getResponse();
> response.setContentType("application/vnd.ms-excel");
> ServletOutputStream outstream = response.getOutputStream();
> wb.write(outstream);
> outstream.flush();
> response.flushBuffer();
> }
> return null;
> //return SUCCESS
> }
>
> and my struts.xml
>
> <struts>
>
> <constant name="struts.enable.DynamicMethodInvocation" value="false" />
> <constant name="struts.devMode" value="false" />
>
> <package name="default" extends="struts-default">
> <action name="Extractor" class="action.ExtractAction">
> <result name="success">/example/index.jsp</result>
> </action>
> </package>
>
> </struts>
>
>
>

Attachment:
user_189449.ezm (zipped)Hey,
Thanks guys. I got the answer. Spring indeed releases the connection.
On Tue, Jul 29, 2008 at 11:27 PM, Ramanathan RV <ramanathanrv@(protected):
> Hello,
>
> As per spring documentation, it is said that whenever an exception occurs,
> spring framework would eventually rollback transaction, if any active is
> present. I am using spring in combination with S2 and I do map all the
> exceptions taking the user to error page. I am just wondering if when
> working with the combination, the transactions are rolled back upon
> occurance of exception.
>
> --
> Thanks
> Ram
>
--
Thanks
Ram

Attachment:
user_189451.ezm (zipped)Hi All,
Struts2 included with Dojo. Can you please provide me how to use Ajax using dojo in struts2. If possible can you please send some links for this implementation.
Thanks,
Sharath.

Attachment:
user_189453.ezm (zipped)--- On Tue, 7/29/08, sharath karnati <karnatis@(protected):
> Struts2 included with Dojo. Can you please provide
> me how to use Ajax using dojo in struts2. If possible can
> you please send some links for this implementation.
Have you tried reading the documentation? As a starting point explore the Ajax tag documentation.
S2.0: http://struts.apache.org/2.0.11/docs/ajax-tags.html
S2.1: http://struts.apache.org/2.x/docs/ajax-tags.html
Dave

Attachment:
user_189459.ezm (zipped)Hi,
Check the url
http://www.roseindia.net/struts/struts2/date/struts-2-datetimepicker.shtml
thanks
-----Original Message-----
From: sharath karnati [mailto:karnatis@(protected)]
Sent: Wednesday, July 30, 2008 4:05 AM
To: user@(protected)
Subject: Dojo With Struts2.
Hi All,
Struts2 included with Dojo. Can you please provide me how to use Ajax
using dojo in struts2. If possible can you please send some links for this
implementation.
Thanks,
Sharath.

Attachment:
user_189456.ezm (zipped)Frank W. Zammetti wrote:
> Is it still the case, given the JDK 1.5 concurrency stuff, that you are
> still not technically allowed to spawn threads in a J2EE container (per
> spec guidelines)? Did the latest J2EE spec loosen that restriction maybe?
>
>
Hi Frank,
I don't know of any loosening of that restriction.
As far as I understand, the compliant approach would be to use a Message
Driven Bean that's spawned from a pool managed by the container.
That would provide some nice decoupling between the OP's action and the
service/bean that performs the POST. However, I find the cost [1] of
that approach is difficult to justify for most applications.
cheers,
Jeromy
[1] cost in terms of learning the technology, the heavier weight
container, the JNDI lookup, the additional configuration, the additional
components affecting reliability, the increased deployment time etc etc etc.

Attachment:
user_189460.ezm (zipped)No, it isn't. A 'combobox' results in a request parameter just like any
other input. It can be validated in the same way as any other input.
L.
Milan Milanovic wrote:
> So, comboxbox in Struts 2 cannot be validated, is it true ?
>
>
>
> Milan Milanovic wrote:
>> Hi,
>>
>> does anyone know how I can force user to choose value from a combo box by
>> using S2 validation ?
>> Now, when he submit the form combobox is empty and the next time when he
>> submit error my occur if he don't choose anything from combox box.
>>
>> --
>> Thx, Milan
>>
>

Attachment:
user_189461.ezm (zipped)Brian Ferris wrote:
> I'm not sure what that Struts Taglib "way" to do the following task
> would look like:
>
> I've got a bean on the ValueStack with a "boolean isActive()" getter.
> When active, I'd like to construct html like:
>
> <div class="baseStyle active"><!-- complex html in here --></div>
>
> And when in-active, I'd like to construct:
>
> <div class="baseStyle"><!-- complex html in here --></div>
>
> The only real difference is the class attribute, which always has a
> "baseStyle" class, but should also have an "active" class when the bean
> is active.
>
> Using struts taglibs inside a JSP, what's the easiest way to make that
> construction? I have some ideas... but they all seem kind of akward.
The easiest way is using JSTL instead:
<div class="baseStyle${active ? 'active' : ''}">...
You can do the equivalent using struts tags + OGNL, which would look
something like
<div class="baseStyle<s:property value="#{...}"/>">...
It's more cumbersome, and you'd have to work out from the OGNL docs
exactly what you need to substitute for #{...} [does OGNL support the
ternary operator?].
However, it may be better to introduce semantic markers for
active/inactive and use something like
<div class="${activeStyle}"...
L.

Attachment:
user_189462.ezm (zipped)Jan Froehlich wrote:
> Hi there...
>
> I have a page with a dynamic number of input fields that is submited to
> an action that implements ParameterAware.
> Cause the names of the parameters passed to that action change every now
> and then I can't write getters and setters for them.
> Thats what I thought ParameterAware is made for.
ParameterAware is just a low-level mechanism for getting access to the
raw request parameters. If you want to apply conversion or validation to
your request data, or have it injected into your actions or model
objects, it's probably not what you need.
What do you mean that the parameters passed to the action 'change every
now and then'? At random?!? If you just mean that there are a variable
number of them, no problem; that's what List- and array-backed
properties are for.
> But even then I get those "Unexpected Exception caught setting.....".
>
> Is there a way to tell s2 that it should stop doing it?
>
> Well, ok - not the most clever question, but I just want to get rid of
> those Exceptions!
Not sure I understand what you want. Do you just want to suppress the
exception report in the logs, or does the exception represent an actual
problem you need to fix? If the latter, you'll need to provide more details.
L.

Attachment:
user_189465.ezm (zipped)Hi Laurie,
sorry if I expressed not totally clear what I mean - have still some problems with my english! ;)
> What do you mean that the parameters passed to the action 'change every
> now and then'? At random?!? If you just mean that there are a variable
> number of them, no problem; that's what List- and array-backed
> properties are for.
I have some report objects that have different prompts, with those prompts I build a input form and pass them to my ParameterAware action. The parameter names, and also the parameter count changes from report to report.
> Not sure I understand what you want. Do you just want to suppress the
> exception report in the logs, or does the exception represent an actual
> problem you need to fix? If the latter, you'll need to provide more details.
I guess you can call it "suppress". Its more a cosmetic fix, but I try to understand more of s2 and how to avoid things like that.
I have no functional problems with the exception - everything else works like expected!
So thanks for your answer, it just would be fine to get rid of it, its not a show stopper, if it can be called like that! ;)
Regards
Jan Froehlich
-----Ursprüngliche Nachricht-----
Von: news [mailto:news@(protected)
Gesendet: Mittwoch, 30. Juli 2008 07:34
An: user@(protected)
Betreff: Re: Implementing ParameterAware but still getting Unexpected Exception caught setting 'name' on 'class....
Jan Froehlich wrote:
> Hi there...
>
> I have a page with a dynamic number of input fields that is submited to
> an action that implements ParameterAware.
> Cause the names of the parameters passed to that action change every now
> and then I can't write getters and setters for them.
> Thats what I thought ParameterAware is made for.
ParameterAware is just a low-level mechanism for getting access to the
raw request parameters. If you want to apply conversion or validation to
your request data, or have it injected into your actions or model
objects, it's probably not what you need.
What do you mean that the parameters passed to the action 'change every
now and then'? At random?!? If you just mean that there are a variable
number of them, no problem; that's what List- and array-backed
properties are for.
> But even then I get those "Unexpected Exception caught setting.....".
>
> Is there a way to tell s2 that it should stop doing it?
>
> Well, ok - not the most clever question, but I just want to get rid of
> those Exceptions!
Not sure I understand what you want. Do you just want to suppress the
exception report in the logs, or does the exception represent an actual
problem you need to fix? If the latter, you'll need to provide more details.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_189463.ezm (zipped)sudeep.jampana@(protected):
> I am sending an message for the successful submission of the form by using actionMessage .In the struts xml file i have used the redirect action and passed action message as parameter. In the display i am getting the message .But the problem is the message is getting formatted by [] these characters ex:[successfully submitted]. I want to avoid that braces how can i do plz give me the procedure
Hard to say. How are you formatting the message? How are you generating
it? Are you doing this in Struts 1 or 2? What does you JSP look like? We
need more info to help.
> ********** DISCLAIMER **********
> [...]
[sigh]
L.

Attachment:
user_189464.ezm (zipped)
Hello,
I'm using s:div tag to load async the results of an action like this:
<s:url action="my_action" id="myActionUrl"/>
<s:div id="myActionDiv"
theme="ajax"
href="%{myActionUrl}"
loadingText="%{getText('loading')}"
executeScripts="true"/>
my_action has as a result a jsp page in which we use <s:text
name="something"/>. The text is loaded from language resource file but it is
not displayed correctly. We need to display danish words and it works like
this:
in resource file: ... får målt ...
in displayed result: ... f�r m�lt ... (firefox).
If the text is loaded without s:div, it is ok.
Thank you,
Boris.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189466.ezm (zipped)Hi,
I "fixed" the problem by reverting back to 2.1.1-SNAPSHOT version with
struts core and all the plugins. Changing eclipse to 5.0 is really not
a solution for me, so I couldn't do that. I wonder what in 2.1.2 makes
my program not work anymore.
Pauli
2008/7/29 John Moose <jgmoose@(protected)>:
> re-ordered the libraries and builders, forced JDK compiler compliance to 5.0
> ( definitely *not* 6.0 !!) in Eclipse and voila...runs great. never
> *really* thought it was a Struts2 problem ; )
>
> On Tue, Jul 29, 2008 at 9:26 AM, John Moose <jgmoose@(protected):
>
>> A very wierd situation...I have two projects in the Eclipse workspace --
>> Tagging and Dashbd They both use the REST plugin and follow the naming
>> conventions, etc. Tagging will build, re-deploy and run perfectly. When I
>> close that project and open Dashbd, build, re-deploy and run I get the
>> Action mapping failure as described. Both projects have source files in the
>> "com.myeclipse.ozone" package name(space). Is it possible that there is some
>> very persistent caching going on ??? like over multiple starts and re-starts
>> of Tomcat? just a WAG...
>>
>> -John
>>
>>
>> On Tue, Jul 29, 2008 at 5:08 AM, Pauli Savolainen <
>> savolainen.pauli@(protected):
>>
>>> Hi,
>>>
>>> I am having exactly the same problem. I was using Struts 2.1.1,
>>> switched to struts 2.1.2 (including the restful and codebehind
>>> plugins) and started to get this 'no action found' error. I am quite
>>> confident that I did not do anything that should've resulted in this.
>>> Of course I cannot be 100% sure, because I did goof around with my
>>> code a bit, but I checked and rechecked and rerechecked everthing
>>> twice and couldn't find a reason for this behaviour.
>>>
>>> John's web.xml and the stacktrace are identical to mine. I don't
>>> declare any namespaces in my struts.xml packages nor in the login form
>>> from which I try to invoke the login action <s:form
>>> action="/login/execute" method="post">. (Also tried with an
>>> exclamation mark i.e. login!execute) I have a LoginAction.java with an
>>> execute method in the pacakge defined in the web.xml's actionPackages
>>> init parameter. At least this declaration used to send the control to
>>> the LoginAction's execute method. Doesn't do anymore.
>>>
>>> I am using the struts 2.1.2 tiles plugin as well. On my index.jsp I
>>> include a tiles main layout which in turn includes sub-layouts (such
>>> as the login form). I don't know if this has anything got to do with
>>> the problem I'm having.
>>>
>>> So, is a result of something I did wrong or could it be something else?
>>>
>>> Thank you
>>>
>>> Pauli Savolainen
>>>
>>> 2008/7/28 Paul Benedict <pbenedict@(protected)>:
>>> > What's the correct way of writing a good 404 or action not found page?
>>> Does
>>> > s2 have something like a fallback action if nothing can be found?
>>> >
>>> > Paul
>>> >
>>> > On Mon, Jul 28, 2008 at 4:04 PM, Dave Newton <newton.dave@(protected)>
>>> wrote:
>>> >
>>> >> Hmm, I wonder if it was the same issue I was having with 2.1.3 a week
>>> or so
>>> >> ago that I haven't had time to re-visit--so it actually could be the
>>> web.xml
>>> >> (specifically the dispatcher being used) and I may have put my foot in
>>> my
>>> >> mouth (again).
>>> >>
>>> >> Somebody followed up saying the original FilterDispatcher worked,
>>> though,
>>> >> so maybe not. Hrm.
>>> >>
>>> >> Dave
>>> >>
>>> >> --- On Mon, 7/28/08, John Moose <jgmoose@(protected):
>>> >> > and I probably should have included this as well:
>>> >> >
>>> >> > Struts Problem Report
>>> >> >
>>> >> > Struts has detected an unhandled exception:
>>> >> > *Messages*:
>>> >> > There is no Action mapped for namespace / and action name
>>> >> > dashbd.
>>> >> > ------------------------------
>>> >> > Stacktraces *There is no Action mapped for namespace / and
>>> >> > action name
>>> >> > dashbd. - [unknown location]*
>>> >> >
>>> >> >
>>> >> >
>>> >>
>>>
com.opensymphony.xwork2.DefaultActionProxy.prepare (
DefaultActionProxy.java:177)
>>> >> >
>>> >> >
>>> >>
>>>
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy (
DefaultActionProxyFactory.java:59)
>>> >> >
>>> >> >
>>> >>
>>> org.apache.struts2.rest.RestActionProxyFactory.createActionProxy(RestActionProxyFactory.java:40)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.struts2.dispatcher.Dispatcher.serviceAction (
Dispatcher.java:439)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.struts2.dispatcher.FilterDispatcher.doFilter (
FilterDispatcher.java:395)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:186)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:157)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.StandardWrapperValve.invoke (
StandardWrapperValve.java:214)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.StandardContextValve.invokeInternal (
StandardContextValve.java:198)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:152)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:137)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:118)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:102)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:109)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
>>> >> >
>>> >> >
org.apache.catalina.core.ContainerBase.invoke (
ContainerBase.java:929)
>>> >> >
>>> >> >
>>>
org.apache.coyote.tomcat5.CoyoteAdapter.service (
CoyoteAdapter.java:160)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:799)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>>> >> >
>>> >> >
>>> >>
>>> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>>> >> >
>>> >> >
>>> >>
>>>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>>> >> >
java.lang.Thread.run (
Thread.java:595)
>>> >> >
>>> >> >
>>> >> >
>>> >> > On Mon, Jul 28, 2008 at 4:39 PM, John Moose
>>> >> > <jgmoose@(protected):
>>> >> >
>>> >> > > Hi Dave,
>>> >> > >
>>> >> > > I have the following snippet of DashbdController class
>>> >> > that I am expecting
>>> >> > > to hit with the following URL:
>>> >> > >
>>> >> > > http:/localhost:8080/Dashbd
>>> >> > >
>>> >> > > <---SNIPPET
>>> >> > >
>>> >> > > package com.myeclipse.ozone;
>>> >> > >
>>> >> > > import
java.util.Collection;
>>> >> > >
>>> >> > > import com.myeclipse.hibernate.*;
>>> >> > >
>>> >> > > import
org.hibernate.HibernateException;
>>> >> > > import
org.hibernate.Session;
>>> >> > > import
org.hibernate.cfg.Configuration;
>>> >> > >
>>> >> > > import
org.apache.struts2.config.Result;
>>> >> > > import
org.apache.struts2.config.Results;
>>> >> > > import
>>> >> >
org.apache.struts2.dispatcher.ServletActionRedirectResult;
>>> >> > > import org.apache.struts2.rest.DefaultHttpHeaders;
>>> >> > > import org.apache.struts2.rest.HttpHeaders;
>>> >> > >
>>> >> > > import
com.opensymphony.xwork2.ModelDriven;
>>> >> > > import
com.opensymphony.xwork2.Validateable;
>>> >> > > import
com.opensymphony.xwork2.ValidationAwareSupport;
>>> >> > >
>>> >> > >
>>> >> > > @Results({
>>> >> > > @Result(name="success",
>>> >> > type=ServletActionRedirectResult.class,
>>> >> > > value="dashbd")
>>> >> > > })
>>> >> > >
>>> >> > > public class DashbdController extends
>>> >> > ValidationAwareSupport implements
>>> >> > > ModelDriven<Object>, Validateable{
>>> >> > >
>>> >> > > //private static Gadget transientGadget = new
>>> >> > Gadget();
>>> >> > >
>>> >> > > //String id;
>>> >> > > int id;
>>> >> > >
>>> >> > > private static int dashboardId;
>>> >> > >
>>> >> > > private Collection<Dashbd>
>>> >> > dashboardList;
>>> >> > > private Collection<Dashbd> model;
>>> >> > > private Collection<DashbdType>
>>> >> > dashboardTypeList;
>>> >> > >
>>> >> > > private DashbdService dashboardService = new
>>> >> > DashbdService(); // where
>>> >> > > the DAOs live
>>> >> > >
>>> >> > >
>>> >> > > /*
>>> >> > >
>>> >> >
>>> >>
>>> ****************************************************************************************
>>> >> > > * DASHBOARDS
>>> >> > > */
>>> >> > >
>>> >> > > //
>>> >> > > // GET .../dashbd get all
>>> >> > dashboards in table
>>> >> > > //
>>> >> > > public HttpHeaders index() {
>>> >> > > dashboardList = dashboardService.getAll();
>>> >> > > return new
>>> >> > DefaultHttpHeaders("index") // dashbd-index.jsp
>>> >> > > .disableCaching();
>>> >> > > }
>>> >> > >
>>> >> > >
>>> >> > > and etc. ....
>>> >> > >
>>> >> > > ...END SNIPPET >
>>> >> > >
>>> >> > > There are more methods in this calss of course, but
>>> >> > all I'm trying to do
>>> >> > > initially is hit the index() action with the URL above
>>> >> > ?!?
>>> >> > >
>>> >> > > the index.jsp is really simple:
>>> >> > >
>>> >> > > <% response.sendRedirect("dashbd"); %>
>>> >> > >
>>> >> > >
>>> >> > > this same scheme works perfectly with another RESTful
>>> >> > app service and fir
>>> >> > > the life of me, I can't find any
>>> >> > >
>>> >> > >
>>> >> > >
>>> >> > > On Mon, Jul 28, 2008 at 4:17 PM, Dave Newton
>>> >> > <newton.dave@(protected):
>>> >> > >
>>> >> > >> The web.xml doesn't have anything to do with
>>> >> > the error message; it thinks
>>> >> > >> there isn't an action configured at the URL
>>> >> > you're requesting.
>>> >> > >>
>>> >> > >> Impossible to help without more information.
>>> >> > >>
>>> >> > >> Dave
>>> >> > >>
>>> >> > >> --- On Mon, 7/28/08, John Moose
>>> >> > <jgmoose@(protected):
>>> >> > >>
>>> >> > >> > From: John Moose <jgmoose@(protected)>
>>> >> > >> > Subject: There is no Action mapped for
>>> >> > namespace / and action name ...
>>> >> > >> > To: "Struts Users Mailing List"
>>> >> > <user@(protected)>
>>> >> > >> > Date: Monday, July 28, 2008, 3:58 PM
>>> >> > >> > I know what you're thinking... web.xml
>>> >> > has no action
>>> >> > >> > mapping, but it does!
>>> >> > >> >
>>> >> > >> >
>>> >> > >> > <?xml version="1.0"
>>> >> > >> > encoding="UTF-8"?>
>>> >> > >> > <web-app version="2.5"
>>> >> > >> >
>>> >> > xmlns="http://java.sun.com/xml/ns/javaee"
>>> >> > >> >
>>> >> > >> >
>>> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> >> > >> >
>>> >> > >> >
>>> >> > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>>> >> > >> >
>>> >> > >> >
>>> >> > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
>>> >> > >> >
>>> >> > >> > <display-name>Struts 2 RESTful
>>> >> > Ozone
>>> >> > >> > Services</display-name>
>>> >> > >> >
>>> >> > >> > <!-- Filters -->
>>> >> > >> > <filter>
>>> >> > >> >
>>> >> > <filter-name>action2</filter-name>
>>> >> > >> >
>>> >> > >> >
>>> >> > >>
>>> >> >
>>> >>
>>> <filter-class>
org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
>>> >> > >> > <init-param>
>>> >> > >> >
>>> >> > >> >
>>> >> > <param-name>actionPackages</param-name>
>>> >> > >> >
>>> >> > >> >
>>> >> > <param-value>com.myeclipse.ozone</param-value>
>>> >> > >> > </init-param>
>>> >> > >> > <init-param>
>>> >> > >> >
>>> >> > >> >
>>> >> > <param-name>struts.devMode</param-name>
>>> >> > >> >
>>> >> > <param-value>true</param-value>
>>> >> > >> > </init-param>
>>> >> > >> > </filter>
>>> >> > >> >
>>> >> > >> > <filter-mapping>
>>> >> > >> >
>>> >> > <filter-name>action2</filter-name>
>>> >> > >> >
>>> >> > <url-pattern>/*</url-pattern>
>>> >> > >> > </filter-mapping>
>>> >> > >> >
>>> >> > >> > <welcome-file-list>
>>> >> > >> >
>>> >> > <welcome-file>index.jsp</welcome-file>
>>> >> > >> > </welcome-file-list>
>>> >> > >> > </web-app>
>>> >> > >> >
>>> >> > >> >
>>> >> > >> >
>>> >> > >> > This file works well with another Struts2.1.3
>>> >> > app. Can
>>> >> > >> > someone help me
>>> >> > >> > understand where to look for the cause of
>>> >> > this???
>>> >> > >> >
>>> >> > >> > Thanks folks
>>> >> > >>
>>> >> > >>
>>> >> > ---------------------------------------------------------------------
>>> >> > >> To unsubscribe, e-mail:
>>> >> > user-unsubscribe@(protected)
>>> >> > >> For additional commands, e-mail:
>>> >> > user-help@(protected)
>>> >> > >>
>>> >> > >>
>>> >> > >
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> >> For additional commands, e-mail: user-help@(protected)
>>> >>
>>> >>
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>
>

Attachment:
user_189467.ezm (zipped)Hi,
How can I redirect to another page after stream result. For example
redirecting to another page saying successfully downloaded the file or
adding some action message and redirecting to the same page.
Thanks in advance
Regards,
ManiKanta G
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin@(protected)

Attachment:
user_189469.ezm (zipped)Hi everyone,
I'm using Struts 1.2 (bundled with NetBeans 5.5.1) and I've noticed
that I can't iterate through a
java.util.Set using the logic:iterate
tag.
The code that I've tried:
<logic:iterate collection = "skillsFound" id= "thisSkill" scope = "session">
I get this exception:
javax.servlet.ServletException:
javax.servlet.jsp.JspException: Cannot create iterator for this
collection
Does anyone know if this is a bug of Struts 1.2 and if there's a later
version (not Struts 2) where it's been fixed?
I'd really appreciate an answer to this!
Thanks in advance!
/Ylva