Re: Plug in for Eclipse 3.2 to run struts applications

2007-09-30 Thread Cesar Arevalo
There is a very good eclipse plugin here 
http://www.jamesholmes.com/struts/console/ it might fit your needs.

-Cesar
www.arevalos.org

- Original Message 
From: Arunkumar Balasubramanian [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, September 30, 2007 12:47:49 AM
Subject: Plug in for Eclipse 3.2 to run struts applications

 
Hi
 
 Do any one have link where I can download plug in for eclipse 3.2 for running 
struts applications. I tried Easy Struts and it works only with eclipse 2.x and 
not with eclipse 3.2.
 
 I am running a application in my PC and need this plug in. If any one have 
link to download the plug in, that would be great.
 
 Thanks
 
 
_
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+worldmkt=en-USform=QBRE



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



struts1- problem installing struts-faces

2007-09-30 Thread Hubert Hers
Hi,
 
I have a problem installing the struts-faces-example1-1.3.8 example.
After installing tomcat 5.5.23, and copying the
struts-faces-example1-1.3.8.war to my webapps directory, and starting
tomcat, I get following error:
 
SEVERE: Unable to initialize Struts ActionServlet due to an unexpected
exception or error thrown, so marking the servlet as unavailable.  Most
likely, this is due to an incorrect or missing library dependency.
 
Please help.
 
Thanks,
 
Hubert


Re: Plug in for Eclipse 3.2 to run struts applications

2007-09-30 Thread Angelo zerr
Hi,

if you use struts1.x, you could use the Akrogen struts1.x
cataloghttp://akrogen.sourceforge.net/struts-catalog/struts1x.htmlto
generate Action, ActionForm, JSP, struts-config.
Akrogen http://akrogen.sourceforge.net/index.html is plugin Eclipse whee
you can write Eclipse wizard with XML/XUL. It is linked to template written
into Freemarker, Velocity or XSL.

So if the Akrogen struts1.x catalog don't please you (the wizard, the
generated code), you can modifiy like you want.

Regards Angelo

2007/9/30, Arunkumar Balasubramanian [EMAIL PROTECTED]:


 Hi

 Do any one have link where I can download plug in for eclipse 3.2 for
 running struts applications. I tried Easy Struts and it works only with
 eclipse 2.x and not with eclipse 3.2.

 I am running a application in my PC and need this plug in. If any one have
 link to download the plug in, that would be great.

 Thanks


 _
 Explore the seven wonders of the world
 http://search.msn.com/results.aspx?q=7+wonders+worldmkt=en-USform=QBRE


Streaming Video?

2007-09-30 Thread Muhammad Momin Rashid

Hello Everyone,

Can someone guide me on how to stream video using my struts 2 application.

I have tried using the input stream method described in different 
thread.  while the method is working fine for images, it isn't working 
for video (flv) file.


I also tried writing the flv file to output stream of the response, but 
it isn't working either.


try
{
HttpServletResponse response = ServletActionContext.getResponse();

OutputStream outputStream = response.getOutputStream();
File file = new File(filename);
FileInputStream fileInputStream = new FileInputStream(file);
byte[] buffer = new byte[1024 * 64];
int bytesRead;

response.setContentType(video/x-flv);
	response.addHeader(Content-Disposition, attachment; filename= + 
filename);

response.setContentLength((int) file.length());
response.addHeader(Cache-Control, max-age=25);

while ((bytesRead = fileInputStream.read(buffer)) != -1)
{
outputStream.write(buffer, 0, bytesRead);
}
fileInputStream.close();

}
catch (Exception e)
{
}
return null;


Regards,
Muhammad Momin Rashid.


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



Re: Streaming Video?

2007-09-30 Thread Pierre Goupil
Hello,

I once used this page :

http://rainbow.arch.scriptmania.com/scripts/music/video.html

This is not Struts-related but this is not hard to adapt it. I even used it
in response to an AJAX call.

HTH,

Pierre


2007/9/30, Muhammad Momin Rashid [EMAIL PROTECTED]:

 Hello Everyone,

 Can someone guide me on how to stream video using my struts 2 application.

 I have tried using the input stream method described in different
 thread.  while the method is working fine for images, it isn't working
 for video (flv) file.

 I also tried writing the flv file to output stream of the response, but
 it isn't working either.

 try
 {
 HttpServletResponse response = ServletActionContext.getResponse();

 OutputStream outputStream = response.getOutputStream();
 File file = new File(filename);
 FileInputStream fileInputStream = new FileInputStream(file);
 byte[] buffer = new byte[1024 * 64];
 int bytesRead;

 response.setContentType(video/x-flv);
 response.addHeader(Content-Disposition, attachment; filename=
 +
 filename);
 response.setContentLength((int) file.length());
 response.addHeader(Cache-Control, max-age=25);

 while ((bytesRead = fileInputStream.read(buffer)) != -1)
 {
 outputStream.write(buffer, 0, bytesRead);
 }
 fileInputStream.close();

 }
 catch (Exception e)
 {
 }
 return null;


 Regards,
 Muhammad Momin Rashid.


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




-- 
Deux choses ne se peuvent cacher : l'ivresse et l'amour.
(Antiphane)


Re: Streaming Video?

2007-09-30 Thread Muhammad Momin Rashid

Hello Pierre,

Unless I am missing something here, this doesn't solve my problem of streaming 
content using a struts 2 action.  I already have a player and it works file if 
the video is exposed using a url e.g. http://localhost:8080/video.flv


But I need to expose the video using a struts 2 action e.g. 
http://localhost:8080/View.action?videoId=12, and I am having trouble streaming 
video using a sturts 2 action.


Regards,
Muhammad Momin Rashid.

Pierre Goupil wrote:

Hello,

I once used this page :

http://rainbow.arch.scriptmania.com/scripts/music/video.html

This is not Struts-related but this is not hard to adapt it. I even used it
in response to an AJAX call.

HTH,

Pierre


2007/9/30, Muhammad Momin Rashid [EMAIL PROTECTED]:

Hello Everyone,

Can someone guide me on how to stream video using my struts 2 application.

I have tried using the input stream method described in different
thread.  while the method is working fine for images, it isn't working
for video (flv) file.

I also tried writing the flv file to output stream of the response, but
it isn't working either.

try
{
HttpServletResponse response = ServletActionContext.getResponse();

OutputStream outputStream = response.getOutputStream();
File file = new File(filename);
FileInputStream fileInputStream = new FileInputStream(file);
byte[] buffer = new byte[1024 * 64];
int bytesRead;

response.setContentType(video/x-flv);
response.addHeader(Content-Disposition, attachment; filename=
+
filename);
response.setContentLength((int) file.length());
response.addHeader(Cache-Control, max-age=25);

while ((bytesRead = fileInputStream.read(buffer)) != -1)
{
outputStream.write(buffer, 0, bytesRead);
}
fileInputStream.close();

}
catch (Exception e)
{
}
return null;


Regards,
Muhammad Momin Rashid.


-
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: Streaming Video?

2007-09-30 Thread Pierre Goupil
Sorry, I misunderstood your problem.

Why doesn't your put stream into response method work ? Do you get an
error ?

According to this page : http://osflash.org/flv

HTTP streaming : It is possible to semi-stream flv over http using a trick
which sends the normal headers then skips forward to a desired point in the
file and moves the timestamps forward accordingly.

Your file format doesn't look trivial, I'm afraid. (If you are really
talking of the Flash Video File, of course.)

HTH,

Pierre



2007/9/30, Muhammad Momin Rashid [EMAIL PROTECTED]:

 Hello Pierre,

 Unless I am missing something here, this doesn't solve my problem of
 streaming
 content using a struts 2 action.  I already have a player and it works
 file if
 the video is exposed using a url e.g. http://localhost:8080/video.flv

 But I need to expose the video using a struts 2 action e.g.
 http://localhost:8080/View.action?videoId=12, and I am having trouble
 streaming
 video using a sturts 2 action.

 Regards,
 Muhammad Momin Rashid.

 Pierre Goupil wrote:
  Hello,
 
  I once used this page :
 
  http://rainbow.arch.scriptmania.com/scripts/music/video.html
 
  This is not Struts-related but this is not hard to adapt it. I even used
 it
  in response to an AJAX call.
 
  HTH,
 
  Pierre
 
 
  2007/9/30, Muhammad Momin Rashid [EMAIL PROTECTED]:
  Hello Everyone,
 
  Can someone guide me on how to stream video using my struts 2
 application.
 
  I have tried using the input stream method described in different
  thread.  while the method is working fine for images, it isn't working
  for video (flv) file.
 
  I also tried writing the flv file to output stream of the response, but
  it isn't working either.
 
  try
  {
  HttpServletResponse response = ServletActionContext.getResponse
 ();
 
  OutputStream outputStream = response.getOutputStream();
  File file = new File(filename);
  FileInputStream fileInputStream = new FileInputStream(file);
  byte[] buffer = new byte[1024 * 64];
  int bytesRead;
 
  response.setContentType(video/x-flv);
  response.addHeader(Content-Disposition, attachment;
 filename=
  +
  filename);
  response.setContentLength((int) file.length());
  response.addHeader(Cache-Control, max-age=25);
 
  while ((bytesRead = fileInputStream.read(buffer)) != -1)
  {
  outputStream.write(buffer, 0, bytesRead);
  }
  fileInputStream.close();
 
  }
  catch (Exception e)
  {
  }
  return null;
 
 
  Regards,
  Muhammad Momin Rashid.
 
 
  -
  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]




-- 
Deux choses ne se peuvent cacher : l'ivresse et l'amour.
(Antiphane)


Re: Karma upgrade?

2007-09-30 Thread Marcos Hernandez
Mmmm, I see. Well I've made some contributions and/or corrections to the
wiki through comments, but it's hard to keep track of them since that
feature is still pendent for the wiki's Confluence App. I've found 2 of the
latests, if anyone have some time to check them:

http://cwiki.apache.org/confluence/display/WW/submit
http://cwiki.apache.org/confluence/display/WW/ajax+theme

See ya :-)

On 9/29/07, Wes Wannemacher [EMAIL PROTECTED] wrote:

 The people who manage CLAs are volunteers, so it does take a bit of
 time. I never received any email when mine was registered... This part
 still has dependencies on wetware. Give it a bit of time, then check
 back with the dev@ list. The karma upgrade is simply a matter of
 contributing to discussions and gaining the trust of the people
 involved.

 If the documentation you are planning on contributing to is the wiki,
 simply add comments to the pages you think need changes. If you would
 like, just send those of us with access an email when you do, and
 someone will make the change. This would likely be a good way to get
 the karma you are looking for.

 -Wes

 On 9/29/07, Marcos Hernandez [EMAIL PROTECTED] wrote:
  Thanx for that link, now I can see the list.
  Another question: does the system automatically emails you when you are
  added?   :-?
 
 
 
  On 9/29/07, Wendy Smoak [EMAIL PROTECTED] wrote:
  
   On 9/29/07, Marcos Hernandez [EMAIL PROTECTED] wrote:
Hi Wendy, thanx for replying.
Just one question: how long do you think it could be before my iCLA
 is
recorded? a month, two, three? because until then I can't be sure
 that
   they
actually received it by fax :-/
  
   I think it should have been done in two weeks' time.  Please go ahead
   and fax it again, and ping the dev list in a week or so.  (I also
   added a link to the wiki page so you can watch for it yourself.)
   Thanks for your patience. :)
  
   --
   Wendy
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  - Marcos H.
  
  You must be the change you wish to see in the world
  ~ Gandhi
 


 --
 Wesley Wannemacher
 President, Head Engineer/Consultant
 WanTii, Inc.
 http://www.wantii.com

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




-- 
- Marcos H.

You must be the change you wish to see in the world
~ Gandhi


Re: Karma upgrade?

2007-09-30 Thread stanlick
Thanks for wanting to help out Marcos.

Scott

On 9/30/07, Marcos Hernandez [EMAIL PROTECTED] wrote:

 Mmmm, I see. Well I've made some contributions and/or corrections to the
 wiki through comments, but it's hard to keep track of them since that
 feature is still pendent for the wiki's Confluence App. I've found 2 of
 the
 latests, if anyone have some time to check them:

 http://cwiki.apache.org/confluence/display/WW/submit
 http://cwiki.apache.org/confluence/display/WW/ajax+theme

 See ya :-)

 On 9/29/07, Wes Wannemacher [EMAIL PROTECTED] wrote:
 
  The people who manage CLAs are volunteers, so it does take a bit of
  time. I never received any email when mine was registered... This part
  still has dependencies on wetware. Give it a bit of time, then check
  back with the dev@ list. The karma upgrade is simply a matter of
  contributing to discussions and gaining the trust of the people
  involved.
 
  If the documentation you are planning on contributing to is the wiki,
  simply add comments to the pages you think need changes. If you would
  like, just send those of us with access an email when you do, and
  someone will make the change. This would likely be a good way to get
  the karma you are looking for.
 
  -Wes
 
  On 9/29/07, Marcos Hernandez [EMAIL PROTECTED] wrote:
   Thanx for that link, now I can see the list.
   Another question: does the system automatically emails you when you
 are
   added?   :-?
  
  
  
   On 9/29/07, Wendy Smoak [EMAIL PROTECTED] wrote:
   
On 9/29/07, Marcos Hernandez [EMAIL PROTECTED] wrote:
 Hi Wendy, thanx for replying.
 Just one question: how long do you think it could be before my
 iCLA
  is
 recorded? a month, two, three? because until then I can't be sure
  that
they
 actually received it by fax :-/
   
I think it should have been done in two weeks' time.  Please go
 ahead
and fax it again, and ping the dev list in a week or so.  (I also
added a link to the wiki page so you can watch for it yourself.)
Thanks for your patience. :)
   
--
Wendy
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   --
   - Marcos H.
   
   You must be the change you wish to see in the world
   ~ Gandhi
  
 
 
  --
  Wesley Wannemacher
  President, Head Engineer/Consultant
  WanTii, Inc.
  http://www.wantii.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 - Marcos H.
 
 You must be the change you wish to see in the world
 ~ Gandhi




-- 
Scott
[EMAIL PROTECTED]


Login implementation, how to forward user to original destination?

2007-09-30 Thread Anton Pussep
I spent quite a few hours today trying to forward the user to his
original destination when he has to login in between.

I have an interceptor (Authentication) that is called before an action
and it forwards to Login.action if the user is not logged in. The
problem is that if Login.action returns SUCCESS the struts.xml maps it
to a static page (index.jsp) and not the page originally requested by
the user.

My current solution is it that the Authentication interceptor saves the
requested URL as a session attribute and Login.action reads it and makes
a getResponse().sendForward(requestedURL). However, I am not happy with
this solution and I guess there are some much better solutions out
there. Would be great if you could suggest me a better way to do that.

Best regards,
Anton

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



Re: Login implementation, how to forward user to original destination?

2007-09-30 Thread Paul Benedict
Anton,

Acegi Security does something similar. The original requests (yes -- the
actual request object) is stored in the session when the user's credentials
are challenged. If they then succeed at the login page, the original request
is taken from the session and forwarded along.

Paul

On 9/30/07, Anton Pussep [EMAIL PROTECTED] wrote:

 I spent quite a few hours today trying to forward the user to his
 original destination when he has to login in between.

 I have an interceptor (Authentication) that is called before an action
 and it forwards to Login.action if the user is not logged in. The
 problem is that if Login.action returns SUCCESS the struts.xml maps it
 to a static page (index.jsp) and not the page originally requested by
 the user.

 My current solution is it that the Authentication interceptor saves the
 requested URL as a session attribute and Login.action reads it and makes
 a getResponse().sendForward(requestedURL). However, I am not happy with
 this solution and I guess there are some much better solutions out
 there. Would be great if you could suggest me a better way to do that.

 Best regards,
 Anton

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




Re: [s1.35] Need help with Struts and Modules

2007-09-30 Thread Paul Benedict
Get rid of modules. They aren't worth the hassle. You can easily split up
your struts config without using modules.

On 9/28/07, Givler, Eric [EMAIL PROTECTED] wrote:

 Can anyone assist with this?

 -Original Message-
 From: Givler, Eric [mailto:[EMAIL PROTECTED]
 Sent: Saturday, September 22, 2007 1:25 AM
 To: user@struts.apache.org
 Subject: [s1.35] Need help with Struts and Modules


 Hello,

 Let me just say that I'm struggling at times writing my first production
 Struts application.  The issue that I'm trying to wrestle with now is that
 part of the application requires security, and part of it should allow
 general access to the public.  This sounds like a case for modules (I
 think).  So, I separated the code into a main folder, and then two other
 folders (the secure, and another subsystem which is not secure).

 If I need to have the unprotected system and the protected system SHARE
 some code as well, I'm assuming I have to keep that in the default module,
 since otherwise, a security constraint would pop up when the unauthenticated
 user tried to hit those pages.  If I'm in the authenticated module and I
 want to start a process that's defined in my default module, how would I do
 that?

 That is, would it be as simple as adding a link to my JSP in my auth'd app
 pointing back to the unauth'd:
 html:link module= path=/StartApp.do Start an application
 process/html:link

 Now, I have two users running app entry (one auth'd and one not).  If they
 start an application and cancel it, they should return to their prospective
 subsystem.  What am I setting up in my struts-config.xml file(s) to
 handle this, and then in my action class?  Can you be specific on this (with
 an example of code)?

 I really appreciate any help on this one - Thanks much,

 Eric



Attribute resultDivId invalid for tag submit according to TLD

2007-09-30 Thread Moacir Cardoso

Hello,
I'm getting this message

Attribute resultDivId invalid for tag submit according to TLD


when I try to use s:submit with attribute theme=ajax

When I checked the TLD, I couldn't find this attribute.

I'm using Struts 2.08

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



Struts 2: Unable to catch exceptions via global-exception-mappings

2007-09-30 Thread mikeh96

I am unable to trap an exception and it's being pushed up until it becomes a
500 Servlet Exception.

Basically, I want to catch the exception if a user mistypes an action name

I am using struts2 (2.0.9).

Here's the top of the trace:
org.apache.velocity.exception.ResourceNotFoundException:
Unable to find resource '/templates/screens/inddd2ex.vm'
at
org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:458)

Here's my struts.xml file

(thanks for helping)

package name=default extends=struts-default

interceptors
interceptor-stack name=simpleStack
interceptor-ref name=defaultStack /
/interceptor-stack
/interceptors


global-results
result name=Exception type=velocity
/templates/screens/exception.vm/result
/global-results

global-exception-mappings
exception-mapping
   exception=java.lang.Exception
   result=Exception/
exception-mapping
   exception=org.apache.velocity.exception.ResourceNotFoundException
   result=Exception/
exception-mapping
   exception=java.lang.Runtime
   result=Exception/
/global-exception-mappings


action name=* class=com.opensymphony.xwork2.ActionSupport
interceptor-ref name=exception /
interceptor-ref name=defaultStack /
result type=velocity/templates/screens/{1}.vm/result
/action

/package 

-- 
View this message in context: 
http://www.nabble.com/Struts-2%3A--Unable-to-catch-exceptions-via-global-exception-mappings-tf4545971.html#a12972599
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: S138: TransAction Token lifetime very short?

2007-09-30 Thread Paul Benedict
Tokens are tied to the session. If the session disappears, so does the
ability to compare tokens. Why? A unique number (token) is generated and
stored in the session, which is then reprinted in the JSP as a hidden field.
When the form is submitted back, the hidden field is checked against the
session attribute. These must match for it to work.

Paul

On 9/23/07, Laurie Harper [EMAIL PROTECTED] wrote:

 [EMAIL PROTECTED] wrote:
  Hello,
 
  I'm using the Transaction Token in my Struts138 App. But it seems the
  token has a very short lifetime. I guess about 1-2 Minutes. How can I
  manually correct it?
  My inactivity timeout is set to 20 mins - so my token should be set to
  the same value.
  Can someone tell me how and where?

 I haven't used transaction tokens, but my understanding was that they're
 tied to the session. In that case, they shouldn't time out unless the
 session times out. Can you give some more details about how you're using
 them and how you're measuring this timeout?

 L.


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




Re: struts1- problem installing struts-faces

2007-09-30 Thread Paul Benedict
There must be a better explanation. Check the outer log files for those. We
can't diagnose with that simple error message.

Paul

On 9/30/07, Hubert Hers [EMAIL PROTECTED] wrote:

 Hi,

 I have a problem installing the struts-faces-example1-1.3.8 example.
 After installing tomcat 5.5.23, and copying the
 struts-faces-example1-1.3.8.war to my webapps directory, and starting
 tomcat, I get following error:

 SEVERE: Unable to initialize Struts ActionServlet due to an unexpected
 exception or error thrown, so marking the servlet as unavailable.  Most
 likely, this is due to an incorrect or missing library dependency.

 Please help.

 Thanks,

 Hubert



Re: Struts 2: Unable to catch exceptions via global-exception-mappings

2007-09-30 Thread Brian Trzupek
I am not 100% sure on this, but I think you need to have  
struts.devMode = false in struts.properties.


Give that a whirl.

Brian-

On Sep 30, 2007, at 9:43 PM, mikeh96 wrote:



I am unable to trap an exception and it's being pushed up until it  
becomes a

500 Servlet Exception.

Basically, I want to catch the exception if a user mistypes an  
action name


I am using struts2 (2.0.9).

Here's the top of the trace:
org.apache.velocity.exception.ResourceNotFoundException:
Unable to find resource '/templates/screens/inddd2ex.vm'
at
org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource( 
ResourceManagerImpl.java:458)


Here's my struts.xml file

(thanks for helping)

package name=default extends=struts-default

interceptors
interceptor-stack name=simpleStack
interceptor-ref name=defaultStack /
/interceptor-stack
/interceptors


global-results
result name=Exception type=velocity

/templates/screens/exception.vm/result

/global-results

global-exception-mappings
exception-mapping
   exception=java.lang.Exception
   result=Exception/
exception-mapping
   exception=org.apache.velocity.exception.ResourceNotFoundException
   result=Exception/
exception-mapping
   exception=java.lang.Runtime
   result=Exception/
/global-exception-mappings


action name=* class=com.opensymphony.xwork2.ActionSupport
interceptor-ref name=exception /
interceptor-ref name=defaultStack /
result type=velocity/templates/screens/{1}.vm/result
/action

/package
-- 
--

--
View this message in context: http://www.nabble.com/Struts-2%3A-- 
Unable-to-catch-exceptions-via-global-exception-mappings- 
tf4545971.html#a12972599

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]



Re: OT, ajax form submission

2007-09-30 Thread Musachy Barroso
I will second Zarar's opinion here, if all you need is to make XHRs
(no fancy widgets, etc. etc), then Prototype is an excellent choice.
Of course there are another 2e100 ajax frameworks to choose from :)

musachy

On 9/29/07, Zarar Siddiqi [EMAIL PROTECTED] wrote:
 Well, just because it incorporates Dojo doesn't mean you have to use
 it and are forbidden from trying something better.  By default dojo.js
 isn't dumped into your JSP/Freemarker pages so it's not like it's
 ever-present for him to use and could get in the way.   In all my
 Struts apps I use Prototype/Scriptaculous for the Ajaxy features, I
 don't see anything wrong with that.  Besides, Prototype is
 lightweight, easy-to-use, tested and has excellent documentation,
 hence the suggestion.

 Zarar


 On 9/29/07, Oleg Mikheev [EMAIL PROTECTED] wrote:
  Zarar Siddiqi wrote:
   I really recommend using something like Prototype to do your Ajax
   stuff.  There's no need to reinvent the wheel and introduce countless
 
  Struts2 incorporates DoJo, so there's not much sense
  adding another Ajax framework
 
 
  -
  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]




-- 
Hey you! Would you help me to carry the stone? Pink Floyd

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



Where are the logic: tags?

2007-09-30 Thread Marcos Hernandez
Hi guys
Just today I found out that I miss them... Is there a way to create a for
loop in Struts2? because I think a block of jsp code will not work there,
what is required is a framework tag.

Is the logic tag library gone?

-- 
- Marcos H.

You must be the change you wish to see in the world
~ Gandhi


Re: Attribute resultDivId invalid for tag submit according to TLD

2007-09-30 Thread Marcos Hernandez
Hi Moacir. Read the documentation, the resultDivId attribute is deprecated
for all ajax tags. You should use the targets attribute now, and there write
a coma-separated list of the element's IDs you want to send the result to.

Be aware that there's a bug relating this funcionality, targeting a parent
DIV, and Internet Explorer. So I recommend you to upgrade to Struts 2.0.9

On 9/30/07, Moacir Cardoso [EMAIL PROTECTED] wrote:

 Hello,
 I'm getting this message

 Attribute resultDivId invalid for tag submit according to TLD


 when I try to use s:submit with attribute theme=ajax

 When I checked the TLD, I couldn't find this attribute.

 I'm using Struts 2.08

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




-- 
- Marcos H.

You must be the change you wish to see in the world
~ Gandhi


Re: Where are the logic: tags?

2007-09-30 Thread Cesar Arevalo
For iterating over a value you can use the struts2 tag s:iterator:

http://struts.apache.org/2.x/docs/iterator.html

, however if you want a foreach loop you could use fmtl tag c:forEach:

http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html#bnakk

HTH
-Cesar


- Original Message 
From: Marcos Hernandez [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, October 1, 2007 12:14:07 AM
Subject: Where are the logic: tags?

Hi guys
Just today I found out that I miss them... Is there a way to create a for
loop in Struts2? because I think a block of jsp code will not work there,
what is required is a framework tag.

Is the logic tag library gone?

-- 
- Marcos H.

You must be the change you wish to see in the world
~ Gandhi




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



Re: Where are the logic: tags?

2007-09-30 Thread Cesar Arevalo
Oh and by the way, the logic tag is gone, IMO the struts2 guys did not want to 
invent the wheel again. And also IMO the struts2 tags are more concise to the 
framework and overlap less with what is already out there, like jstl.

-Cesar

- Original Message 
From: Cesar Arevalo [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, October 1, 2007 12:32:10 AM
Subject: Re: Where are the logic: tags?

For iterating over a value you can use the struts2 tag s:iterator:

http://struts.apache.org/2.x/docs/iterator.html

, however if you want a foreach loop you could use fmtl tag c:forEach:

http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html#bnakk

HTH
-Cesar


- Original Message 
From: Marcos Hernandez [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, October 1, 2007 12:14:07 AM
Subject: Where are the logic: tags?

Hi guys
Just today I found out that I miss them... Is there a way to create a for
loop in Struts2? because I think a block of jsp code will not work there,
what is required is a framework tag.

Is the logic tag library gone?

-- 
- Marcos H.

You must be the change you wish to see in the world
~ Gandhi







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