Problem in using logic:iterate in struts

2008-09-23 Thread UITOT
Hello all, I have developed 1 application using struts.I am getting this error in my JSP.I have used logic:iterate.I have populated an arraylist in action class which I am using in my JSP.I am able to see the data from the arraylist in my JSP but I am getting error when I am clicking on the

Issue using struts2 autocompleter.

2008-09-23 Thread Rag
Hi, I am facing an issue in strts2 autocompleter. Issue: In jsp page where I have used autocompleter, IE is showing an alert message with stack overflow at line: 8259 and in the same jsp page, I have an error as djConfig.baseScriptUri.length' is null or not an object and autocompleter is

Re: Problem in using logic:iterate in struts

2008-09-23 Thread Alexander Baetz
UITOT schrieb: Hello all, I have developed 1 application using struts.I am getting this error in my JSP.I have used logic:iterate.I have populated an arraylist in action class which I am using in my JSP.I am able to see the data from the arraylist in my JSP but I am getting error when I am

Issue using struts2 autocompleter.

2008-09-23 Thread Rag
Hi, I am facing an issue in struts2 autocompleter. Issue: In jsp page where I have used autocompleter, IE is showing an alert message with stack overflow at line: 8259 and in the same jsp page, I have an error as djConfig.baseScriptUri.length' is null or not an object and autocompleter is

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
Thank you. I can't understand how to realize the redirect descripted here: - during the login action, after the login is confirmed the action realizes that a redirect is requestet (to a.action) Particulary I can't understand what it means: result name=redirect

Re: quest on dynamic redirect

2008-09-23 Thread Alexander Baetz
here a longer explanation: when I realizes the user isnt authenticated the link (the action to be called) is saved (in a bean, a session, somewhere where you find it back later) then the user logs himself in. the login action logs him in, checks if a redirect was saved (in the bean, the

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
thank you Alexander, I understand well now. Bye, Gianluca 2008/9/23 Alexander Baetz [EMAIL PROTECTED]: here a longer explanation: when I realizes the user isnt authenticated the link (the action to be called) is saved (in a bean, a session, somewhere where you find it back later) then

Quest on actionInvocation

2008-09-23 Thread Gianluca Musella
Hi all, in an interceptor is possible to know which action's method is called? For example, in action name=homeSecure class=org.almayer.web.action.HomeAction method=executeSecure[...]/action actionInvocation.getAction() contains an instance of org.almayer.web.action.HomeAction, but how to know

RE: Getting acknowledgment for an AJAX request

2008-09-23 Thread Deepak Kumar
hi, Please check http://www.roseindia.net/ajax Thanks -Original Message- From: ManiKanta G [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 3:41 PM To: Struts-User Subject: Getting acknowledgment for an AJAX request Hi, I m practicing AJAX in S2. And in response to my

Re: Quest on actionInvocation

2008-09-23 Thread ManiKanta G
in an interceptor is possible to know which action's method is called? You can get the requesting method name by using invocation.getProxy().getMethod(). Similarly you can get the action name: invocation.getProxy().getNamespace(). Of cource invocation.getInvocationContext().getName() will also

Re: Getting acknowledgment for an AJAX request

2008-09-23 Thread ManiKanta G
Please check http://www.roseindia.net/ajax well I didn't find any thing. More over site speaks about regular AJAX there. Can some tell me how to do that in S2. I mean JSON or some other. Regards, ManiKanta

RE: Getting acknowledgment for an AJAX request

2008-09-23 Thread ravindra
Hi This has lot of info about sending ajax requests http://developer.yahoo.com/yui/ -Original Message- From: ManiKanta G [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 4:03 PM To: Struts Users Mailing List Subject: Re: Getting acknowledgment for an AJAX request Please

Re: Quest on actionInvocation

2008-09-23 Thread Gianluca Musella
thank you ManiKanta, it helps much. 2008/9/23 ManiKanta G [EMAIL PROTECTED]: in an interceptor is possible to know which action's method is called? You can get the requesting method name by using invocation.getProxy().getMethod(). Similarly you can get the action name:

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
Mmm... doesn't work. This is in my struts.xml: action name=login class=org.almayer.web.action.SessionAction method=login result name=redirect type=redirectAction${redirectTo}/result /action This is the login action's method (I omitt logic): public String login()

Re: quest on dynamic redirect

2008-09-23 Thread Lukasz Lenart
action name=login class=org.almayer.web.action.SessionAction method=login result name=redirect type=redirectAction${redirectTo}/result /action This is the login action's method (I omitt logic): public String login() throws Exception { return home;

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
ok, it sounds better. thank you Lukasz 2008/9/23 Lukasz Lenart [EMAIL PROTECTED]: action name=login class=org.almayer.web.action.SessionAction method=login result name=redirect type=redirectAction${redirectTo}/result /action This is the login action's method (I

Java Mail errors

2008-09-23 Thread Narasimha Raju Naidu
hi to all, I am new to java mail. i want to send an email from my system using the following program: --- import javax.mail.*; import javax.mail.internet.*; import java.util.*; public void postMail( String recipients[ ],

RE: Issue using struts2 autocompleter.

2008-09-23 Thread Jishnu Viswanath
1. You need to have theme=ajax otherwise autocompleter won't work. 2. Did you try to remove simple theme from s:autocompleter ? or put ajax there instead of simple. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc.,

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
It works fine. Thank you Alex, thank you Lukasz. 2008/9/23 Gianluca Musella [EMAIL PROTECTED]: ok, it sounds better. thank you Lukasz 2008/9/23 Lukasz Lenart [EMAIL PROTECTED]: action name=login class=org.almayer.web.action.SessionAction method=login result

Re: Java Mail errors

2008-09-23 Thread Lukasz Lenart
Hi, I think you should first read some Java tutorial how to write Java classes (you are missing class declaration), next try to find some Java Mail Tutorial with Google and the least and the most important is that this group is to support Struts users, not to solve any kind of Java problem you

Re: Java Mail errors

2008-09-23 Thread Narasimha Raju Naidu
thanks for your reply, is it public static void main() what you are saying. is it required for every class? On Tue, Sep 23, 2008 at 4:55 PM, Lukasz Lenart [EMAIL PROTECTED] wrote: Hi, I think you should first read some Java tutorial how to write Java classes (you are

RE: Issue using struts2 autocompleter.

2008-09-23 Thread Rag
Hi, Thanks for your replay Viswanath. 1. I tried without theme attribute, eventhen its behaving like a combo box. 2. When I put theme = ajax in autocompleter tag, its behaving like a textbox, not at all displaying the list from action class. Kindly help me... Thanks in advance Jishnu

Re: Java Mail errors

2008-09-23 Thread Nils-Helge Garli Hegvik
Here's a starting point for you: http://java.sun.com/new2java/ Nils-H On Tue, Sep 23, 2008 at 1:36 PM, Narasimha Raju Naidu [EMAIL PROTECTED] wrote: thanks for your reply, is it public static void main() what you are saying. is it required for every class? On Tue, Sep 23,

RE: Issue using struts2 autocompleter.

2008-09-23 Thread Jishnu Viswanath
Which version of struts are you using? Later versions of sturts 2.1.x check http://struts.apache.org/2.0.11.2/docs/ajax-tags.html Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION ::

RE: Issue using struts2 autocompleter.

2008-09-23 Thread Jishnu Viswanath
Oops I mean Late version needs plugin Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Jishnu Viswanath [mailto:[EMAIL PROTECTED]

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
Those are all good points, but when my collection was expressly declared to be a MapString, Employee I would sort of expect the key to be a String! When the framework guesses for a different type (feature?) and your application fails; all the discussion about valid number systems is sort of

Struts 2 Plugin Repository Page

2008-09-23 Thread Yohan Liyanage
Hi, I created a plugin for Struts 2 and posted a news in the Struts 2 Plugin Repository Wiki. However, I cannot see my plugin listed in the http://cwiki.apache.org/S2PLUGINS/home.html announcements list. (I can see it in http://cwiki.apache.org/confluence/display/S2PLUGINS/home). I noticed

RE: Issue using struts2 autocompleter.

2008-09-23 Thread Rag
Hi, I am using struts2.0.11. I will try the example given in the url. Thanks for the url. Jishnu Viswanath wrote: Oops I mean Late version needs plugin Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc.,

Re: Java Mail errors

2008-09-23 Thread Lukasz Lenart
is it public static void main() what you are saying. is it required for every class? Not exactly, the method main() is needed if you want to launch the program (it's a entry point to your application), but if you writing Java class which will be used with server or with some

RE: Java Mail errors

2008-09-23 Thread Deepak Kumar
HI, Here is the lot of examples and tutorials on Java mail api. Read at http://www.roseindia.net/javamail/ Enjoy. -Original Message- From: Jishnu Viswanath [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 5:38 PM To: Struts Users Mailing List Subject: RE: Java Mail errors

RE: Java Mail errors

2008-09-23 Thread Jishnu Viswanath
LOL Well from the last reply you need to learn java, but if you know or some of your friends know Java refer to http://java.sun.com/products/javamail/javadocs/javax/mail/package-summar y.html for mailing things. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * (

2 newbie questions about Struts and JSP

2008-09-23 Thread UseTheFork
Hi, I am studying JSP and I understand that these pages are translated into java code servlets, which are then compiled and executed on the application server. i) Do these 'JSP servlets' implement the HttpJspPage interface defined in javax.servlet.jsp? ii) Does Struts (or Spring MVC) provide

RE: Issue using struts2 autocompleter.

2008-09-23 Thread Martin Gainty
djConfig.baseScriptUri.length' is null or not an object means the dojo.js which configures baseScriptUri attribute via the function dojo.hostenv.getBaseScriptUri = function(){ was never initialised properly with the end result the baseScriptUri ws never initialised struts needs to know the

Re: 2 newbie questions about Struts and JSP

2008-09-23 Thread Alberto Flores
If you are developing using Tomcat (hopefully you are), consider reading the comments (and documentation) on the Jasper 2 JSP Engine. Particularly look here: http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html Specifically, trying the flags keepgenerated will bring some light to your

Re: Custom tag and map-backed action

2008-09-23 Thread Gabriel Belingueres
AFAIK, OGNL does not have any support for generics, but even if it would support it, I would prefer that it wont be too smart, for example in: s:property value=aMap[abc].id/ I prefer that abc be treated as an action property and call method getAbc() than coerce it to the string 'abc'. 2008/9/23

Re: 2 newbie questions about Struts and JSP

2008-09-23 Thread UseTheFork
Hi Alberto, thank you for your answer !!! Very helpful !!! J. -- View this message in context: http://www.nabble.com/2-newbie-questions-about-Struts-and-JSP-tp19627021p19628686.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: Problem in using logic:iterate in struts

2008-09-23 Thread UITOT
Hello Alexander, First of all thanx for replying.My code looks very much unclear here.You can refer this link http://forums.sun.com/thread.jspa?threadID=5333420.Again topic_list is my arraylist.I have created it in action class I have set it in request scope.Same arraylist I

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
I agree totally! If the TypeDeterminer had called getEmployees() which it clearly did for iterator *and* had bothered to glean the generic type of the key, it would have recognized the action expected the key to of type String. If the data type is specifically spelled out and the framework

Re: two forms, two submits

2008-09-23 Thread cpanon
Hello I was able to configure it to keep both separate. However now the error is when I submit on a very simple form with the code below it states: No getter method available for property value for bean under name dropDown dropDown is just a collection of LabelValueBean. I just expected on

Re: Custom tag and map-backed action

2008-09-23 Thread Gabriel Belingueres
I agree too. 2008/9/23 stanlick [EMAIL PROTECTED]: I agree totally! If the TypeDeterminer had called getEmployees() which it clearly did for iterator *and* had bothered to glean the generic type of the key, it would have recognized the action expected the key to of type String. If the data

Re: Is my struts.xml never read?

2008-09-23 Thread Emil Lundberg
Yes, it is configured to intercept all requests, and I wouldn't get a Struts error message if the FilterDispatcher didn't launch, would I? And I did post my struts.xml and the URL, but Mr. Dave didn't include it in his reply. Both http://localhost/home.action and

Re: two forms, two submits

2008-09-23 Thread Michael Jouravlev
Try this: http://wiki.apache.org/struts/StrutsWidgets#head-d413131b40091e2337eb036c8a7ce9e43f428aec On Tue, Sep 23, 2008 at 7:47 AM, cpanon [EMAIL PROTECTED] wrote: now the error is when I submit on a very simple form with the code below it states: No getter method available for property

Re: Is my struts.xml never read?

2008-09-23 Thread Alberto Flores
I just tried both on my own terminal and these work just fine. Here is a layout of my war: foo - WEB-INF -lib struts2-core.jar (and the other 3 minimum jars you need) -classes -struts.xml -jsp -page -home.jsp -web.xml you said you have a classpath folder?

Re: Custom tag and map-backed action

2008-09-23 Thread Laurie Harper
Sounds reasonable until you remember two words: type erasure. There is no way to 'glean the generic type' of a collection at runtime. L. Gabriel Belingueres wrote: I agree too. 2008/9/23 stanlick [EMAIL PROTECTED]: I agree totally! If the TypeDeterminer had called getEmployees() which it

Re: Is my struts.xml never read?

2008-09-23 Thread Dave Newton
You never answered the question about where you were deploying it to: are you deploying it to the root context? Dave --- On Tue, 9/23/08, Emil Lundberg [EMAIL PROTECTED] wrote: Yes, it is configured to intercept all requests, and I wouldn't get a Struts error message if the FilterDispatcher

Re: Problem in using logic:iterate in struts

2008-09-23 Thread Laurie Harper
Unfortunately your struts-config.xml and JSP code didn't make it through to the list properly. Make sure you're sending your message as plain text. A couple of questions: *) How are you accessing the page? (i.e. what URL are you typing?) *) Are you sure you are calling the action before the

Re: Getting acknowledgment for an AJAX request

2008-09-23 Thread Laurie Harper
ManiKanta G wrote: Hi, I m practicing AJAX in S2. And in response to my previous mail, Dave replied That's what Ajax does (loosely speaking): returns HTML fragments (or data as JSON, XML, etc.). That's the point of it--so you don't have to return entire pages and refresh the entire window.

Re: Is my struts.xml never read?

2008-09-23 Thread Emil Lundberg
Dave: Like I said, I'm using Eclipse, so I don't really know where everything ends up on the server. I've set the default class directory to project root/build/classes, and that's where struts.xml is. The default content root is project root/content, if that's any help. Alberto: Yes, I have

Re: Correct usage of datetimepicker?

2008-09-23 Thread MyAshok
Hi, I am also facing the problem of invalid field value. I didnt give any validation for the datetimepicker but it validate itself and give this field error. Pls help asap. With Regards, Ashok Torsten Römer wrote: Great, that was quickly fixed :-) I'm looking forward to 2.1.0!

Re: Is my struts.xml never read?

2008-09-23 Thread Emil Lundberg
(Sorry for the double post) I looked around a bit in the navigator and found this file: ---context-root/.settings/org.eclipse.wst.common.component--- ?xml version=1.0 encoding=UTF-8? project-modules id=moduleCoreId project-version=1.5.0 wb-module deploy-name=MyProject wb-resource

Re: Is my struts.xml never read?

2008-09-23 Thread Dave Newton
--- On Tue, 9/23/08, Emil Lundberg wrote: Like I said, I'm using Eclipse, so I don't really know where everything ends up on the server. You'll want to know the application context root. IIRC the default is that Eclipse will create an application context with the same name as the

Re: Is my struts.xml never read?

2008-09-23 Thread Dave Newton
--- On Tue, 9/23/08, Emil Lundberg wrote: (Sorry for the double post) I looked around a bit in the navigator and found this file: project-modules id=moduleCoreId project-version=1.5.0 wb-module deploy-name=MyProject wb-resource deploy-path=/ source-path=/content/

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
http://www.google.com/gwt/n?eosr=onq=Reflection+generics+Java+source=mhl=enei=ZWfZSODxI5nYqAKR1t53sa=Xoi=blendedct=rescd=4rd=1u=http%3A%2F%2Ftutorials.jenkov.com%2Fjava-reflection%2Fgenerics.html On 9/23/08, Laurie Harper [EMAIL PROTECTED] wrote: Sounds reasonable until you remember two words:

Re: How to write variable in a Struts 2 tag?

2008-09-23 Thread javajunkie
newton.dave wrote: --- bugs_ [EMAIL PROTECTED] wrote: I must find some good tutorial for ognl http://struts.apache.org/2.x/docs/ognl.html http://struts.apache.org/2.x/docs/ognl-basics.html http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/index.html Dave

Best Practice for Transfer Data from Action to Viewer JSP?

2008-09-23 Thread Guojun Zhu
Hi, I am new to struts. I am using Struts 1.2.9. I have two String arrays generated in an action should go to the JSP pages html:options. I can set it as an attribute in request/session and pull them in jsp pages. But it seems a bit against the idea of separation between model and view. If I

Re: Problem in using logic:iterate in struts

2008-09-23 Thread UITOT
Hello Laurie, Thanx a lot for replying.Let me tell you the exact scenario.I am developing a discussion forum for my Project.There is one JSP called View_topic.jsp.This will display the list of all topics in the Discussion Forum.Before this JSP one action class say