Using a servlet instead of FilterDispatcher

2007-10-18 Thread Binil Thomas
Hi, I am trying to package a S2 application as an OSGi system using Eclipse Equinox. For reasons I am not yet sure of, I have not been able to get any servlet filters working in that environment. Is it possible to initialize S2 without using the FilterDispatcher? Is there a servlet equivalent of

Re: How to improve dojo performance in Struts 2.0.9

2007-10-18 Thread Jeromy Evans
Andre Prasetya wrote: Any dates for 2.1.x release ? I just tried struts 2.0.9 and i like it very much, feature that i need most is the ajax validation which is only at 2.1.x CMIIW Hi Andre, This thread was the last direct answer to your question: http://www.nabble.com/struts-2.1-release-avai

Re: and Hibernate

2007-10-18 Thread Andre Prasetya
Where can i get this new dojo plugin ? and is it usable using 2.0.9 ? -Andre- Engelking, Nicholas wrote: I just went through the same thing. In struts 2.1 there is a new href attribute on the tree tag. It points to an action that returns some json using the json plugin that gives all the info

How to change excludeMethods parameter for validationInterceptor ?

2007-10-18 Thread Igor Vlasov
Hello. I want to change excludeMethods parameter for validationInterceptor in defaultStack. For one action I can use input,delete,browse input,delete,bro

the isapi rewrite

2007-10-18 Thread Fencer
As a web page like .aspx rewritten to the same name with .html suffix, if the html page does exist I want to response the html rather than the aspx, how could I do with this? I think it is sth about level example: a.aspx to a.html if a.html itselft does not exist, I hope the server response the

Re: How to improve dojo performance in Struts 2.0.9

2007-10-18 Thread Andre Prasetya
Any dates for 2.1.x release ? I just tried struts 2.0.9 and i like it very much, feature that i need most is the ajax validation which is only at 2.1.x CMIIW -Andre- Jeromy Evans wrote: Pedro Herrera wrote: It´s not working to me. why don´t you leave yours jars available ? Herrera Hi P

Images

2007-10-18 Thread Prashant Desai
I have some images displayed on my website... the images on the first page do not get loaded when the page displays for the first time.. you can see it here... http://www.hapandharpur.com. there are images in the right top corner. One is a logo and one is a symbol.. Both of those images do not

Images

2007-10-18 Thread Prashant Desai
I have some images displayed on my website... the images on the first page do not get loaded when the page displays for the first time.. you can see it here... http://www.hapandharpur.com. there are images in the right top corner. One is a logo and one is a symbol.. Both of those images do not

RE: (beginner) How to intialize a form's input item

2007-10-18 Thread sriharsha . chevuru
Silly one.. Thanks:) Dave Newton <[EMAIL PROTECTED]> 10/18/2007 03:01 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject RE: (beginner) How to intialize a form's input item You're creating a new ActionForm instead of using the one provided to yo

RE: (beginner) How to intialize a form's input item

2007-10-18 Thread Dave Newton
You're creating a new ActionForm instead of using the one provided to you. --- [EMAIL PROTECTED] wrote: > It doesn't seem to work. I am not getting the value > which I am setting in > TestAction.java in the ActionForm.jsp. Here is what > i did, (its a test > app), Please have a look at it and c

RE: and Hibernate

2007-10-18 Thread Engelking, Nicholas
I just went through the same thing. In struts 2.1 there is a new href attribute on the tree tag. It points to an action that returns some json using the json plugin that gives all the info about the node. You should be able to use it in Struts 2.0.9 as well by using the dew dojo plugin and by us

RE: (beginner) How to intialize a form's input item

2007-10-18 Thread sriharsha . chevuru
It doesn't seem to work. I am not getting the value which I am setting in TestAction.java in the ActionForm.jsp. Here is what i did, (its a test app), Please have a look at it and correct me: struts_config.xml

RE: (beginner) How to intialize a form's input item

2007-10-18 Thread Slattery, Tim - BLS
> My requirement: Prepopulate a form feild if value is present. > Can anybody help me in intializing a input feild using struts > custom tags? The tags look for a corresponding property in the form bean, and take an initial value from that. For example, if this tag is in you JSP file: Struts

Re: Struts 2 j4 and spring Error

2007-10-18 Thread Ed Knutson
I also have noticed some classloading issues with the j4 distro. In my case, WebSphere 6.0 is not able to load a retrotranslated version of the sitemesh plugin. I think in your case, the preferred method of integrating Spring is to put the following line in struts.properties (this file is searche

Re: (beginner) How to intialize a form's input item

2007-10-18 Thread Dave Newton
Not helpful for S1. You're better off pre-populating the ActionForm in the action (not sure what 1.3 provides for that kind of functionality) rather than via S1 or JSTL tags. d. --- Norris Shelton <[EMAIL PROTECTED]> wrote: > Look at the Preparable or Model interface. > > > - Original Mes

Re: (beginner) How to intialize a form's input item

2007-10-18 Thread Norris Shelton
Look at the Preparable or Model interface. - Original Message From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Thursday, October 18, 2007 1:47:22 PM Subject: (beginner) How to intialize a form's input item Hi, I am starter in Struts. I am using 1.3.8. My

Re: [s2] select tag not setting parameter

2007-10-18 Thread Marcos Hernandez
You're welcome. I think too that the documentation is lacking of some detailed examples, but you could contribute with a comment, now that you know a little more. Go ahead, you are part of the community too ;-) http://cwiki.apache.org/confluence/display/WW/select On 10/15/07, Kevin Wade <[EMAIL P

[answer]Re: Annotations and action mappings with "!"

2007-10-18 Thread Norris Shelton
I found the answer by accident. The action needs to be specified as /employee/employee!list.action. It is not intuitive, but it does work. - Original Message From: Norris Shelton <[EMAIL PROTECTED]> To: Strutss Sent: Thursday, October 18, 2007 2:02:45 PM Subject: Annotations and act

Re: Annotations and action mappings with "!"

2007-10-18 Thread Norris Shelton
Thank you. - Original Message From: Wes Wannemacher <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Thursday, October 18, 2007 2:23:43 PM Subject: Re: Annotations and action mappings with "!" what about /employee!list.action -W On 10/18/07, Norris Shelton <[EMAIL PROTECTED]>

Re: Annotations and action mappings with "!"

2007-10-18 Thread Wes Wannemacher
what about /employee!list.action -W On 10/18/07, Norris Shelton <[EMAIL PROTECTED]> wrote: > It appears that this does not work. Is that correct? I have > /employee/employee.action working, but I get a 404 when I try > /employee/employee.action!list. > > > > Norris Shelton > Software Engineer

Annotations and action mappings with "!"

2007-10-18 Thread Norris Shelton
It appears that this does not work. Is that correct? I have /employee/employee.action working, but I get a 404 when I try /employee/employee.action!list. Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshe

Jstl and struts

2007-10-18 Thread Zhang, Larry (L.)
This might be an old topic, but should we completely rule out using struts tag and move to jstl tag? If not, does struts have a tag that will do anything if the filed is equal (1 or 2 or 3 or 4)? Thanks. - To unsubscribe, e-mail:

(beginner) How to intialize a form's input item

2007-10-18 Thread sriharsha . chevuru
Hi, I am starter in Struts. I am using 1.3.8. My requirement: Prepopulate a form feild if value is present. Can anybody help me in intializing a input feild using struts custom tags? Thanks H.

Re: and Hibernate

2007-10-18 Thread Cosmin Stanciu
Yes! My Jsp file looks exactly like the one provided into the "Example Applications" (struts-2.0.9-apps.zip). function treeNodeSelected(nodeId) { dojo.io.bind({ url: "?nodeId="+nodeId, load: functio

Re: and Hibernate

2007-10-18 Thread Dave Newton
--- Cosmin Stanciu <[EMAIL PROTECTED]> wrote: > Action tab the funtionality is not shown. :( Are you filling tree data via Ajax (which the example on the wiki isn't)? d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: How to improve dojo performance in Struts 2.0.9

2007-10-18 Thread Martin Gainty
Here is what I found you need the custom-rhino.jar size=715,901 to start with located on your (system)classpath now run the ant targets individually cd buildscripts ant -Dprofile=struts2 -Dstrip_and_compress=true cleanant -Dprofile=struts2 -Dstrip_and_compress=true release Note that you will nee

Struts 2 j4 and spring Error

2007-10-18 Thread Ádamo Azambuja
When i use this configuration on my web.xml: i have the struts2-spring-plugin-2.0.9.jar in my classpath. i have this error: 14:46:50,246 INFO XmlConfigurationProvider:140 - Parsing configuration file [struts-plugin.xml] StandardContext[/strutsBlank]Exception starting filter struts2 Unable to loa

Re: and Hibernate

2007-10-18 Thread Cosmin Stanciu
Hello! Thanks for the supper fast answer! No it's not! But "This section of the documentation is a work-in-progress; more to follow." and on the Action tab the funtionality is not shown. :( I know how to set the getters and setters but don't know how to match the data from hibernate with the one

Re: and Hibernate

2007-10-18 Thread Dave Newton
Is the documentation at http://struts.apache.org/2.0.9/docs/tree.html out of date? I haven't looked at it in quite awhile now. d. --- Cosmin Stanciu <[EMAIL PROTECTED]> wrote: > Hi! > I have been trying for a week now to populate one > with the data from a database table but > with no luck . I

and Hibernate

2007-10-18 Thread Cosmin Stanciu
Hi! I have been trying for a week now to populate one with the data from a database table but with no luck . I would really apreciate some guidance in how to write the ShowDynamicTreeAction class that sends the date to the tree. I'm using Hibernate DAO to receive the data from my database tabl

Re: struts There is no Action mapped for namespace / and action name

2007-10-18 Thread Ádamo Azambuja
i put the log4j and my problem now is this: 13:31:21,484 DEBUG XmlConfigurationProvider:873 - Loaded action configuration from: struts-plugin.xml 13:31:21,484 INFO XmlConfigurationProvider:140 - Parsing configuration file [struts-plugin.xml] StandardContext[/fiergs]Exception starting filter stru

Jasper basic issue (with websphere?)

2007-10-18 Thread j alex
Hi, I just started using the S2 - Jasper plugin ; new to Jasper as well ; but not able to get a simple report to show. Below is my struts xml entry : /jasper_compiled.jasper ds PDF

Re: struts There is no Action mapped for namespace / and action name

2007-10-18 Thread Zarar Siddiqi
Problems that I see: 1. Spring bean is defined as "helloWorld" but referred to as "HelloWorld" in Struts config (case is incorrect). 2. You're saying that your action class is under src/action so I would think the fully qualified name of the class might be action.HelloWorldAction but that's now h

Struts TLD Parse Error

2007-10-18 Thread Peters, John
Good morning, Using Struts 1.1 running on WebSphere 6.1. Any ideas on the error below? I'm getting this same error for struts-html.tld, struts-nested.tld and struts-bean.tld. Thanks in advance for any help. [10/18/07 10:11:14:917 EDT] 0010 jsp E com.ibm.ws.jsp.taglib.TldParser logPa

Adding S2 into existing servlet project

2007-10-18 Thread Justin Frost
I am new to Struts and have an existing web project that uses servlets right now. I am trying to add S2 to my existing project. When I add my s2 config info in web.xml and redeploy my application I get a blank page instead of my original default.jsp. http://localhost:16624/support/ should bri

Re: How to improve dojo performance in Struts 2.0.9

2007-10-18 Thread Jeromy Evans
Pedro Herrera wrote: It´s not working to me. why don´t you leave yours jars available ? Herrera Hi Pedro, I can't really create a jar for you because its not appropriate to extract part of struts out and then redistribute it. I could create a script I suppose, but the problem is mostly s

Re: How to improve dojo performance in Struts 2.0.9

2007-10-18 Thread Pedro Herrera
It´s not working to me. why don´t you leave yours jars available ? Herrera Jeromy Evans - Blue Sky Minds wrote: > > As suggested, I've added these instructions to the community wiki. > > http://cwiki.apache.org/confluence/display/S2WIKI/Creating+a+custom+Dojo+profile+for+Struts+2.0.9 > > W

struts There is no Action mapped for namespace / and action name

2007-10-18 Thread Ádamo Azambuja
i Have this problem and i lost 2 days trying do fix, what can i do in this case? I use java 1.4.2 / Struts 2 J4 / Hibernate and Spring. i have the HelloWorld.java in the src and src/action to test. *struts.xml * /HelloWorld.jsp *applicationContext.xml * *web.xml * Spring OpenEnt

urlrewrite

2007-10-18 Thread ros
Hi! What regular expression can be used to rewrite this URLs: from /faq/LANG1/index.html?locale=LANG2 to /faq/LANG2/index.html?locale=LANG2 from /faq/LANG1/foo/index.html?locale=LANG2 to /faq/LANG2/foo/index.html?locale=LANG2 Thanks! -- View this message in context: http://www.nab

Re: about Struts 2.0.9 portlet example ...

2007-10-18 Thread Nils-Helge Garli Hegvik
Hi! If you're thinking of the struts2-portlet application, you need to install it into a portlet container to test it. However, ajax is not yet built into the portlet framework. Nils-H On 10/18/07, Giovanni Azua <[EMAIL PROTECTED]> wrote: > hi all, > > I managed to see the examples in the portle

about Struts 2.0.9 portlet example ...

2007-10-18 Thread Giovanni Azua
hi all, I managed to see the examples in the portlet webapp demo (there is no index page) but I didn't see any portlet anywhere ... so I am curious as if to there is at all an AJAX portlet control delivered with Struts 2? Lack of portlets in S2 and AJAxification of displaytag would be the two

R: [beginner] need to use logic:equal with request attribute

2007-10-18 Thread Marchioni Francesco
thanks it was that. I needed to put <%@ taglib uri="/WEB-INF/taglib.tld" prefix="ndctags"%> at the beginning. But very very odd because Eclipse can see those tags even without the tag lib specification...( I mean there's auto-completation of that tag). anyway thanks ! >It does not make sense

Problem in

2007-10-18 Thread shan99
I have a tag like this and also i have a radio buttin calld chkText I wnt to chang thr key of the http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html#a13272200 Sent from the Struts - User mailing list archive at Nabble.com. --

Re: [beginner] need to use logic:equal with request attribute

2007-10-18 Thread Antonio Petrelli
2007/10/18, Marchioni Francesco <[EMAIL PROTECTED]>: > > Hi all, > I have an action class which sets some attributes > > request.setAttribute("pValueIn", vFlagms); > > then it forwards to a jsp page. > > Now I'd like to use logic:equal (or another struts tag) which controls the > value of this fiel

[beginner] need to use logic:equal with request attribute

2007-10-18 Thread Marchioni Francesco
Hi all, I have an action class which sets some attributes request.setAttribute("pValueIn", vFlagms); then it forwards to a jsp page. Now I'd like to use logic:equal (or another struts tag) which controls the value of this field OK but unfortunately I can see "OK" get always printed. Whatev

Access a SiteMesh Object in a Struts tag

2007-10-18 Thread Grish
Hi, I was wondering if this is possible, I want to access a SiteMesh object in a struts tag like the set tag: I want to access the Page object from SiteMesh and get a property from that object and assign it a value where value would be myPage.getProperty("meta.curentPage"). I have a feelin

RE: S:property converts string to rounded int

2007-10-18 Thread Sekhar, Raja
Its defined as String Thanks Raja -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 16, 2007 2:27 PM To: Struts Users Mailing List Subject: Re: S:property converts string to rounded int What is the property defined as in your action or bean? --- "Se

Re: Callback after AJAX call

2007-10-18 Thread Alvaro Sanchez-Mariscal
You can include your javasript call in a piece of code in the jsp which is the result of the action. Make sure to include executeScripts="true" in your link/button. Alvaro. On 10/18/07, Eduardo Yáñez Parareda <[EMAIL PROTECTED]> wrote: > Hello, I'm new to Struts 2. > In a project we're using ver

Callback after AJAX call

2007-10-18 Thread Eduardo Yáñez Parareda
Hello, I'm new to Struts 2. In a project we're using version 2.0.9, and have some questions about AJAX calls. How could I call a javascript function after making an AJAX call? I know that in future 2.1 version there is a afterNotifyTopics parameter that I could use to do that, but how could I do i

Re: how to use form input in java class

2007-10-18 Thread horri khalid
Hi, First you must create a formAction class that contain elements form like this: suppose you a form with a text box and button, so the formActin class is // import public class YourFrom extends ActionForm { private String textBoxName; // getter and setter textBoxName } second you co

how to use form input in java class

2007-10-18 Thread kushi
Hi I just devlop a form that upload a file (this form contains a text box & a command button(OK button)). my requirement is that when i click on ok button then i call an action named "action1" . On this action1 which class is excuted is specified in struts.xml. In struts.xml i define action clas

Re: login and session

2007-10-18 Thread Lizzy Borden
Thank you for the tip! But, why my code doesn't work properly? why the redirect line dosen't work? I have done a workaround by send an error instead of a redirect and it works but I did not understand the reason. bye Tuyen Dinh Van wrote: > > Hi, > > You should use interceptors provided by s

Re: struts2 validation for only one method in action

2007-10-18 Thread Igor Vlasov
Thank you for your answer. It was very helpful. Ian Roughley wrote: > > you can always use and > - then you don't need the logic to > determine which button was clicked in the execute() method, and you can > use the validation config below. > > /ian > > Igor Vlasov wrote: >> This is not

Re: Disable validation when "delete" button is pressed

2007-10-18 Thread Igor Vlasov
The most elegant method is to give a SPECIAL name to "delete" button. It must looks like: and I found it in http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html this post by Ian Roughley an Roughley wrote: > > you can always use and > - then you don

Re: [Struts Tiles] How to put a list of items to a nested tile?

2007-10-18 Thread Antonio Petrelli
2007/10/17, Christ Jochen <[EMAIL PROTECTED]>: > In my layout_with_servicecolumn.jsp I want to insert my tile footer, but > how to "forward" my attribute footeritems to this tile? You cannot do it! You have to create a definition, using "footer.jsp" as the template, put the attribute (with putList