actionframework-users Mailing List for ActionFramework
Status: Inactive
Brought to you by:
ptoman
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(12) |
Jul
(11) |
Aug
(26) |
Sep
(38) |
Oct
(33) |
Nov
(18) |
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(26) |
Feb
(7) |
Mar
(3) |
Apr
(14) |
May
(12) |
Jun
(1) |
Jul
(7) |
Aug
|
Sep
(2) |
Oct
|
Nov
(5) |
Dec
|
2004 |
Jan
(4) |
Feb
(5) |
Mar
(2) |
Apr
|
May
(2) |
Jun
(2) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Dan C. <dan...@gm...> - 2013-01-30 00:36:41
|
I'm evaluating application frameworks generally and this one in particular and I'm a little confused by these terms. Does anyone have good definitions of them? Are there varieties of them, like "client-side" or "server-side" or something? Thanks. |
From: <ser...@is...> - 2005-05-10 15:08:01
|
Hi all! I use AS in a web app that shows some reports generated in .vm=20 templates. The templates have a 'to PDF' button, that shows the same=20 report in pdf format. This PDF is actually generated into a file, and=20 then the app shows that file (by using 'show-url' attribute). So far,=20 it's ok... But something so weird happens when i use IExplorer: 2 IE are opened,=20 one of them is blank, and the other one cantains the pdf. This doesnt=20 happen if you use Mozilla, however. Can anybody tell me what's wrong here? Thanx!! --=20 Seraf=EDn Orill=E1n Chaparro Isotrol S.A. Avda. de la Innovaci=F3n s/n +34 955 036 800 e-mail: ser...@is... |
From: gabriel k. <gab...@ya...> - 2005-04-01 12:01:10
|
Hi Serafin. I "think" there is no way to do this using AS, but you could use a Filter (javax.servlet.Filter) to get the headers before the Servlet. Take a look at: http://javaboutique.internet.com/tutorials/Servlet_Filters/ http://www.orionserver.com/tutorials/filters/1.html Gabriel. --- Serafín Orillán <ser...@is...> wrote: > > Hi there! > > I have a question for you all, guys! > > I've been using AS for quite a long time in a web > app that i did some > time ago. It's running fine, but now i need to > modify it. I need the > application to distinguish which OS is requesting > the server. I know > that in the HTTP headers is some information about > it, but how can i get > the HTTP headers when using AS? > > The way i use AS is the easiest way, just following > the exaples in the > AS web site. I never dig into the classes, i do not > modify any > HttpRequest or Http Response.... > > Any suggestion? > > thanx in advance... > > Regards, > Sera > > -- > Serafín Orillán Chaparro > Isotrol S.A. > Avda. de la Innovación s/n > +34 955 036 800 > e-mail: ser...@is... > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by Demarc: > A global provider of Threat Management Solutions. > Download our HomeAdmin security software for free > today! > http://www.demarc.com/Info/Sentarus/hamr30 > _______________________________________________ > Actionframework-users mailing list > Act...@li... > https://lists.sourceforge.net/lists/listinfo/actionframework-users > __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ |
From: <ser...@is...> - 2005-04-01 09:49:22
|
Hi there! I have a question for you all, guys! I've been using AS for quite a long time in a web app that i did some=20 time ago. It's running fine, but now i need to modify it. I need the=20 application to distinguish which OS is requesting the server. I know=20 that in the HTTP headers is some information about it, but how can i get=20 the HTTP headers when using AS? The way i use AS is the easiest way, just following the exaples in the=20 AS web site. I never dig into the classes, i do not modify any=20 HttpRequest or Http Response.... Any suggestion? thanx in advance... Regards, Sera --=20 Seraf=EDn Orill=E1n Chaparro Isotrol S.A. Avda. de la Innovaci=F3n s/n +34 955 036 800 e-mail: ser...@is... |
From: Petr T. <Pet...@pi...> - 2004-08-02 08:52:27
|
> I'm using AS to show some data in a web page. All the showed data is > embedded in a class component, with some accesible properties and > methods. Those methods are called to pass some parameters to an HTML > form that calls another action in the same component. This component ha= s > "session" persistence and everything is alrite. Session persistent component means that every user has his own instance o= f such a component. There might be a bug in your code dealing with the data= . > I thought that by putting "request" persistence the problem would go > away, but what i get is a "NullPointerException" error. Request component becomes invalid when the page rendering is over. You should not try to reuse it in the next request. As for the exception - yo= u should be able to trace it using ActionServlet log. -Petr [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=3D22957959 ] |
From: <ser...@is...> - 2004-07-30 11:55:06
|
Hi there! I'm using AS to show some data in a web page. All the showed data is=20 embedded in a class component, with some accesible properties and=20 methods. Those methods are called to pass some parameters to an HTML=20 form that calls another action in the same component. This component has=20 "session" persistence and everything is alrite. But now i find that if different users connect to the page to see=20 different data, the component only stores the last request. What happens? If user A connects to the server and retrieves data and then user B does=20 the same, the component is loaded with the information that user B=20 asked. So if now user A click on a submit button on the form, the new=20 page that is showed is a fake, because it starts from the data that user=20 B asked. I thought that by putting "request" persistence the problem would go=20 away, but what i get is a "NullPointerException" error. Anyone can help me? Thanks in advance. Regards, --=20 Seraf=EDn Orill=E1n Chaparro Isotrol S.A. Avda. de la Innovaci=F3n s/n +34 955 036 800 e-mail: ser...@is... |
From: Petr T. <Pet...@pi...> - 2004-06-18 05:22:48
|
> I need to generate and show a PDF through a button in a form which is i= n > a page served by an Action Servlet. I have all the Java code and all th= e > stuff to be able to create the PDF, but i dont know how i could > configure the Action Servlet to send the object via the web. You can use 'show-value-of' attribute in <on-return> element together wit= h org.actionframework.ContentTypeHandler. See FileUploads example. -Petr [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=3D22957959 ] |
From: <ser...@is...> - 2004-06-17 11:08:57
|
Hello all! I need to generate and show a PDF through a button in a form which is in a page served by an Action Servlet. I have all the Java code and all the stuff to be able to create the PDF, but i dont know how i could configure the Action Servlet to send the object via the web. Can anybody help me? Thanx in advance!! Sera. |
From: <ser...@is...> - 2004-05-13 15:25:44
|
Hi all!! I'd like to catch some exceptions that my application may throw under=20 certain circumstances, in order to control a little bit the flow of the=20 app and avoid Tomcat to stop suddenly while posting a "the document=20 contains no data" message. The thing is that i have 3 <on-exception> elements under all the=20 <action>s tags, and the thing goes ok. The elements are these: <on-exception class=3D"java/lang/NullPointerException" assign-to=3D"npe"=20 show-template=3D"error.vm"> <output-variable name=3D"obj" value=3D"$npe"/> </on-exception> =20 =20 <on-exception class=3D"java/lang/NumberFormatException" assign-to=3D"nfe"= =20 show-template=3D"error.vm"> <output-variable name=3D"obj" value=3D"$nfe"/> </on-exception> =20 <on-exception class=3D"raiz/ExcepcionErrorDatos" assign-to=3D"eed"=20 show-template=3D"error_datos.vm"> <output-variable name=3D"mensaje" value=3D"$eed.getMessage()"/> </on-exception> However, when i add a java.lang.Exception and a=20 org.apache.commons.dbcp.SQLNestedException (both at the end), the page=20 fails and doest show anything. Only putting those <on-exception>s tags=20 makes the app fail, coz when i comment them, it goes fairly well. What am i doing wrong? What should i do to catch SQLNestedException and=20 Exception? Thanx in advance........ --=20 Seraf=EDn Orill=E1n Chaparro Isotrol S.A. Avda. de la Innovaci=F3n s/n +34 955 036 800 e-mail: ser...@is... |
From: <ser...@is...> - 2004-05-13 15:18:19
|
Hi there! I'm not a member of the list, soi cant post this answer in the forum.=20 Anyway, i would like to help with my answer, that answers a post from=20 Sagar Saladi about retrievin the Stack Trace of an error. I have a bit of code that can help you. Just declare the exception in=20 the xml file like this: <on-exception class=3D"java/lang/NullPointerException" assign-to=3D"npe"=20 show-template=3D"error.vm"> <output-variable name=3D"obj" value=3D"$npe"/> </on-exception> And the, in the "error.vm" code, add this: <form name=3D"frmStack"> <div id=3D"show"> <input type=3D"button" value=3D"Show stack trace" id=3D"btnShowSt= ack"=20 onclick=3D"showStack()"> </div> =20 <div id=3D"hide" style=3D"display:none"> <input type=3D"button" value=3D"Hide stack trace" id=3D"btnHideSt= ack"=20 onclick=3D"hideStack()"> </div> </form> <div id=3D"stack" style=3D"display:none"> <strong><font color=3D"blue">Stack trace:</font></strong> <br> <p><TT> <hr> #foreach($call in $obj.getStackTrace()) $velocityCount - $call.getFileName() (line $call.getLineNumber()):=20 $call.getClassName() -> $call.getMethodName() <br> #end <hr> </TT></p> </div> And, last but not least, add a jscript file to the error.vm with the=20 following code: function showStack() { document.getElementById('show').style.display=3D'none'; =20 document.getElementById('hide').style.display=3D'block'; document.getElementById('stack').style.display=3D'block'; } function hideStack() { document.getElementById('hide').style.display=3D'none'; =20 document.getElementById('show').style.display=3D'block'; =20 document.getElementById('stack').style.display=3D'none'; } That's all. I hope it helps you, Regards --=20 Seraf=EDn Orill=E1n Chaparro Isotrol S.A. Avda. de la Innovaci=F3n s/n +34 955 036 800 e-mail: ser...@is... |
From: Mark D. A. <md...@di...> - 2004-03-13 02:38:34
|
FYI somewhere between 0.93.2c and 0.94.2 a bug was introduced which causes this to not work correctly: <action ...> <on-return value="*" assign-to="target_url" show-url="target_url"/> </action> In 0.93.2c, this correctly did a redirect to the value of $target_url, as returned by the action. Now in 0.94.2, it attempts to do a redirect to the literal string "target_url", not to the value of $target_url. This works correctly, which is my current workaround: <action ...> <on-return value="*" show-url="target_url"> <output-variable name="target_url" component="Authenticator" value="getTargetUrl()"/> </on-return> </action> -mda |
From: Mark D. A. <md...@di...> - 2004-03-13 02:37:16
|
This is relative to the 0.94.2 release sources. The first diff takes care of a spurious MalformedURLException when running under https, at least for some container environments. The 2nd and 3rd diffs stop doing a toString() on the return values of action methods. Even if the debug argument isn't used, it is very expensive to compute toString() on some objects, such as List objects with many elements which themselves have large toString values. -mda src/org/actionframework/ActionServlet.java 356c356,359 < context.put("URL", new URL(request.getScheme(), request.getServerName(), --- > // mda: deal with java.net.URL not always handling https scheme (because no URLStreamHandlerFactory). > String scheme = request.getScheme(); > if (scheme != null && scheme.equals("https")) scheme = "http"; > context.put("URL", new URL(scheme, request.getServerName(), src/org/actionframework/runtime/Action.java 837c837,839 < actionReqData.log.debug("Return value '" + onReturnCompareValue + "' matched by " + --- > //mda > //actionReqData.log.debug("Return value '" + onReturnCompareValue + "' matched by " + > actionReqData.log.debug("Return value matched by " + src/org/actionframework/OnReturnData.java 117a118 > // mda: don't waste effort on retValue.toString 121a123 > /* 123a126,127 > */ > "Assigning return value of type {" + |
From: Borja <bm...@ho...> - 2004-02-18 17:11:51
|
thanks, I was making something wrong and had to do some work around to get it because I was getting a null pointer. it works fine. At 09:36 18/02/2004 +0100, you wrote: > > hi. I would like to know, if its possible to access to the jndi context at > > any actionframework component. > >You should be able to access the JNDI context like from any servlet. > >-Petr >[ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 ] > > >------------------------------------------------------- >SF.Net is sponsored by: Speed Start Your Linux Apps Now. >Build and deploy apps & Web services for Linux with >a free DVD software kit from IBM. Click Now! >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >_______________________________________________ >Actionframework-users mailing list >Act...@li... >https://lists.sourceforge.net/lists/listinfo/actionframework-users |
From: Petr T. <Pet...@pi...> - 2004-02-18 08:40:57
|
> hi. I would like to know, if its possible to access to the jndi context at > any actionframework component. You should be able to access the JNDI context like from any servlet. -Petr [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 ] |
From: Borja <bm...@ho...> - 2004-02-17 18:14:48
|
hi. I would like to know, if its possible to access to the jndi context at any actionframework component. thx in advance |
From: Petr T. <Pet...@pi...> - 2004-02-13 08:19:45
|
> For example in ActionServlet file, I have: > <on-exception class="java.lang.Exception" > assign-to="error" show-template="error.vm"/> > > I display the error in a Velocity file by > "$error.message". > Here I would like to have a link, and want to display > the stack trace when the link is clicked. You can pass the stacktrace (as URL encoded string) in a parameter (?stacktrace=string) of your link. -Petr [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 ] |
From: Sagar S. <sag...@ya...> - 2004-02-10 18:47:39
|
Hi all, I am having a problem using type-handlers, I guess. This is about exceptions. For example in ActionServlet file, I have: <on-exception class="java.lang.Exception" assign-to="error" show-template="error.vm"/> I display the error in a Velocity file by "$error.message". Here I would like to have a link, and want to display the stack trace when the link is clicked. What should I need to do, to do this. I tried passing the $error as a parameter, used type-handlers unsuccessfully. I don't know what to do. Any help is appreciated. -Vid. __________________________________ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html |
From: <bm...@ho...> - 2004-01-19 16:37:32
|
hi. the thing was that I didnt make the 'ant clean' so it wasnt really compiled with webmacro support, now it works fine. the only thing I have seen it's that the 'properties' init parameter is ignored and it will look for the WebMacro.properties file into the classpath. thanks a lot. ----- Original Message ----- From: "Petr Toman" <Pet...@pi...> To: <act...@li...> Sent: Sunday, January 18, 2004 12:13 PM Subject: Re: [Actionframework-users] error while trying to use webmacro > > we have continued using actionframework with velocity with no problems, > > but the thing is that now we want to use webmacro. so, I changed the the > > initparam ActionEngine to 'Webmacro' but become the following error: > > > > java.lang.NoSuchMethodError: > > org.webmacro.Log.error(Ljava/lang/String;Ljava/lang/Exception;)V > > at org.actionframework.engines.webmacro.WMLog.error(WMLog.java:69) > > What version of Webmacro do you have? It should be ok. Could you try to > rebuild ActionServlet - with your particular WM? Run: > > ant clean > ant > > in the AS root directory. > > -Petr > -- > [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 ] > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Actionframework-users mailing list > Act...@li... > https://lists.sourceforge.net/lists/listinfo/actionframework-users > |
From: Petr T. <Pet...@pi...> - 2004-01-18 11:12:34
|
> we have continued using actionframework with velocity with no problems, > but the thing is that now we want to use webmacro. so, I changed the the > initparam ActionEngine to 'Webmacro' but become the following error: > > java.lang.NoSuchMethodError: > org.webmacro.Log.error(Ljava/lang/String;Ljava/lang/Exception;)V > at org.actionframework.engines.webmacro.WMLog.error(WMLog.java:69) What version of Webmacro do you have? It should be ok. Could you try to rebuild ActionServlet - with your particular WM? Run: ant clean ant in the AS root directory. -Petr -- [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 ] |
From: <bm...@ho...> - 2004-01-15 17:21:26
|
hi. we have continued using actionframework with velocity with no problems, = but the thing is that now we want to use webmacro. so, I changed the the = initparam ActionEngine to 'Webmacro' but become the following error: java.lang.NoSuchMethodError: = org.webmacro.Log.error(Ljava/lang/String;Ljava/lang/Exception;)V at org.actionframework.engines.webmacro.WMLog.error(WMLog.java:69) at = org.actionframework.runtime.ActionRuntime.init(ActionRuntime.java:671) at org.actionframework.ActionServlet.init(ActionServlet.java:266) at = com.caucho.server.http.Application.createServlet(Application.java:3111) at = com.caucho.server.http.Application.loadServlet(Application.java:3062) at = com.caucho.server.http.QServletConfig.loadServlet(QServletConfig.java:435= ) at = com.caucho.server.http.Application.getFilterChainServlet(Application.java= :2806) at = com.caucho.server.http.Application.buildFilterChain(Application.java:2762= ) at com.caucho.server.http.Invocation.service(Invocation.java:313) at = com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246) at = com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)= at com.caucho.server.TcpConnection.run(TcpConnection.java:139) at java.lang.Thread.run(Thread.java:536) (I added the webmacro's jar to the classpath correctly) thx in advance. |
From: Vidya S. <sag...@ya...> - 2004-01-09 02:19:46
|
Hi all, I am new to Action Servlet and also to Velocity. I want to display a page which shows a text field with a value, which will be retreived from a Java class. This means, as soon as I start my server and goto the URL the page should display a text field showing a value which was returned by a Java class. Right now this is the code I am using. PortServlet.xml: <?xml version="1.0"?> <!DOCTYPE application SYSTEM "http://www.actionframework.org/dtd/ActionServlet_0_94.dtd"> <application> <templates> <template name="Port.vm" is-new-session="true"> <invoke component="port" method="getPort()"> </invoke> </template> </templates> <components> <component name="port" class="core.ServerPort" persistence="application"/> </components> </application> core.ServerPort.java: class{ ..... public int getPort() throws Exception { int value = 10; return value; } .... } Port.vm: <HTML> #set( $Response.ContentType = "text/html" ) <BODY> <FORM NAME=Port METHOD="POST" ACTION=""> Port: <INPUT TYPE="Text" NAME="Port" value="$port"> <INPUT TYPE="Submit" VALUE="Apply"> </FORM> </BODY> </HTML> The log shows this error: [init] ActionServlet runtime initialization OK [debug] ActionServlet DEBUG [6460907] Creating component 'port' (class: core.ServerPort) with instantiator 'org.actionframework.instantiators.DefaultInstantiator' [debug] ActionServlet DEBUG [6460907] Action '[template: Port.vm]' -> invoking 'getPort()' of 'port' [error] ActionServlet ERROR [6460907] Error ocurred in action *unknown* (request type='http.get') - org.actionframework.ActionServlet.onException() org.actionframework.ActionException: null; nested exception is: java.lang.ClassCastException: null Somebody pls help me out!!! Sorry for a lengthy email. -ss. __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |
From: Petr T. <Pet...@pi...> - 2003-11-26 10:48:06
|
> the thing is that if I change the order, I become the following error: > > Wrong order of <on-exception> classes: > 'com.hola.postales.exceptions.InvalidPostcardException' cannot follow > 'com.hola.postales.exceptions.InvalidPostcardException' > > pd: InvalidPostcardException is a child class of java.lang.Exception and > not of ActionException Please make a simple example and .war file to my adress, so I can look at this issue. Btw, what version of AS do you have? -Petr [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 ] |
From: <ser...@is...> - 2003-11-26 10:39:59
|
Hello there! I am a new ActionServlet user and have a little problem while tryin to = set all things up to run the initial examples.=20 My question is so simple, since the only thing is that I have just = installed ActionServlet (i already have ant 1.4, tomcat 4.1 and jdk 1.4 = successfully installed) and i'm tryin to run the examples, just to see = how it works. As i follow the instructions in the install.txt file, i = found this: << <...> Examples installation instructions for use with Tomcat 3.2/4.x servlet container (http://jakarta.apache.org/tomcat) --------------------------------------------- 1) Change directory to ActionServlet root ---------------------- DONE! 2) Set correct values of properties in build.properties = --------------------- DONE! 3) Copy examples\RMIDemo\.java.policy to your ${user.home} directory (needed only to run RMIDemo) = ------------------------------------- DONE! 4) Run "ant examples_war" ------------------------------ WHAT'S = THIS?!?!?!?!?! 5) Move examples\as_examples.war to Tomcat's webapps directory 6) Restart Tomcat 7) Before running "RMIDemo" start examples\RMIDemo\run_rmi_server.bat 8) View examples under /as_examples context (i.e. goto URL like http://localhost:8080/as_examples/index.html) <...> >> I cant find any 'examples_war' directory neither in the ActionServlet = root directory nor in any of its subfolders. I run 'ant examples' but = nothing happens (the only thing i get is the instructions of how to use = ant). WHAT DO I HAVE TO DO TO PROPERLY CONFIGURE ACTIONSERVLET AND MAKE THOSE = EXAMPLES RUN? Pliz, any help will be welcome. Thanx a lot in advance. Kind regards, Serafin Orillan. |
From: <bm...@ho...> - 2003-11-25 15:39:24
|
the thing is that if I change the order, I become the following error: Wrong order of <on-exception> classes: 'com.hola.postales.exceptions.InvalidPostcardException' cannot follow 'com.hola.postales.exceptions.InvalidPostcardException' pd: InvalidPostcardException is a child class of java.lang.Exception and not of ActionException bye. ----- Original Message ----- From: "Petr Toman" <Pet...@pi...> To: <act...@li...> Sent: Tuesday, November 25, 2003 11:22 AM Subject: Re: [Actionframework-users] trying to catch various exceptions > > I'm trying to catch various exceptions that can be launched from any > > component so I have that in the xml controller file: > > [...] > > If I have only one <on-exception> it's catched whenever it's neccesary, > > but when there are more than one, it doesn't work. > > Such error should be reported only if InvalidPostcardException is a > child of ActionException. If so, switch the order of your exceptions. > > -Petr > [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 ] > |
From: Petr T. <Pet...@pi...> - 2003-11-25 10:22:39
|
> I'm trying to catch various exceptions that can be launched from any > component so I have that in the xml controller file: > [...] > If I have only one <on-exception> it's catched whenever it's neccesary, > but when there are more than one, it doesn't work. Such error should be reported only if InvalidPostcardException is a child of ActionException. If so, switch the order of your exceptions. -Petr [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 ] |