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) in

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: s:submit name=method:delete value=Delete / and s:submit value=Execute / I found it in http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html this post by Ian Roughley

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 s:submit name=method:delete value=Delete / and s:submit value=Execute / - then you don't need the logic to determine which button was clicked in the execute() method, and you can use the validation

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 class

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

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

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 version

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 decorator:usePage id=myPage / s:set name=currentPage value= / where value

[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 logic:equal name=pValueIn value=VC4S OK /logic:equal but

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 field

Problem in s:text tag

2007-10-18 Thread shan99
I have a tag like this s:textarea name=txtMsg cssStyle=width: 200px key=PROGRAM_SETTINGS / and also i have a radio buttin calld chkText I wnt to chang thr key of the s:text if user select 'yes' of that radio buttopn so i have to use a java script so how can i

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, the

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

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 portlet

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:

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 * include file=struts-default.xml/ constant name=struts.objectFactory value=

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 Wes

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

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

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

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 how

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 : package name=cap-default extends=struts-default,jasperreports-default action name=newapp class=com.mypage.TestAction

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

s:tree and Hibernate

2007-10-18 Thread Cosmin Stanciu
Hi! I have been trying for a week now to populate one s:tree 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

Re: s:tree 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 s:tree with the data from a database table but with no luck .

Re: s:tree 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

Struts 2 j4 and spring Error

2007-10-18 Thread Ádamo Azambuja
When i use this configuration on my web.xml: constant name=struts.objectFactory value= org.apache.struts2.spring.StrutsSpringObjectFactory / 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

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

Re: s:tree 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 additional

Re: s:tree 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). script function treeNodeSelected(nodeId) { dojo.io.bind({ url: s:url value='/tags/ui/ajax/dynamicTreeSelectAction.action' /?nodeId=+nodeId, load:

(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.

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:

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

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 Message

[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 user@struts.apache.org Sent: Thursday, October 18, 2007 2:02:45 PM

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 Sun

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 user@struts.apache.org 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

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

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: 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

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: html:text

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 struts-config form-beans form-bean name=processForm

RE: s:tree 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

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

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 user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject RE: (beginner) How to intialize a form's input item You're creating a new

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

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