what is the use of parameter attribute in action tag

2005-11-21 Thread Nandakishore Nekkanti
Hi Is there any option in struts-config.xml to send request parameters to the action. i guess parameter attribute in action can do this .Is this for that purpose. -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.5 - Release

struts-dialogs on maven repo

2005-11-21 Thread Nicolas De Loof
Hello Is struts-dialog extension available somewhere on maven repository ? This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,

Re: what is the use of parameter attribute in action tag

2005-11-21 Thread Sunil_Sahu
Nandan, parameter attribute in action-mapping is used for method name. you can get the request parameters from request object itself in action class, no extra setting is required. Ex if you have any parameter in request as type then use String type = (String) request.getParameter(type); Hope

Re: what is the use of parameter attribute in action tag

2005-11-21 Thread Nandakishore Nekkanti
Hi Tahnks for ur response. I want to send some request parametrs as query string in my first request to the action. This is just like this. localhost:8080/form.do?abc=nanda Here i can hard code Nanda in Action. Instead of hard coding in action is there any way for to do that. Rgds

bean:define and its behaviour....

2005-11-21 Thread Gaet
Hi, I'm sure this question is easy to answer for much of yours but I cannot figure out the following behaviour : bean:define id=myVar value=/ % myVar = content; % logic:notEmpty name=myVar % System.out.println(myVar is NOT EMPTY); %

Re: what is the use of parameter attribute in action tag

2005-11-21 Thread Nandakishore Nekkanti
I want to access abc Rgds Nanda kishore Nekkanti Software Engineer EvolveWare, Inc Riveresa complex, Baner Road, Baner, Pune - 411 045 Tel: +91 (020) 27290713 X 27 . Fax: +91 (020) 2729 1084 Email: [EMAIL PROTECTED] URL: http://www.evolveware.com There is a difference between an objective

Re: what is the use of parameter attribute in action tag

2005-11-21 Thread Sunil_Sahu
ok , then you can access abc parameter in your action class from request object. Nandakishore Nekkanti [EMAIL PROTECTED] 11/21/2005 03:11 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: what is the

What's wrong

2005-11-21 Thread Fulgencio Comendeiro, Eduardo
% { java.util.ArrayList list = new java.util.ArrayList(); list.add(textouno.texto1); list.add(textouno.texto2); list.add(textouno.texto3); list.add(textouno.texto4); pageContext.setAttribute(list, list, PageContext.PAGE_SCOPE); } % jsp:useBean id=list scope=page

Re: Reporting Tools

2005-11-21 Thread Aldo Vadillo Batista
If you want to make pdf documents, you could use itext http://www.lowagie.com/iText/ 2005/11/21, Meenakshi Singh [EMAIL PROTECTED]: Jasper Reports is a powerful open source tool. U can have a look at it at http://jasperreports.sourceforge.net I have used it in my project m satisfied with

How to call a dispatch-Action from a link?

2005-11-21 Thread starki78
in this example the first works and the second not: dispatch from a submit-buttom: //--this works html:form action=/lookupdispatch2 html:submit property=method bean:message key=button.nix/ /html:submit dispatch from a link html:link action=/lookupdispatch2.do

Re: How to call a dispatch-Action from a link?

2005-11-21 Thread Sunil_Sahu
To specify the corresponding value of paramId, you can use only one of the following approaches: Specify only the paramName attribute - The named JSP bean (optionally scoped by the value of the paramScope attribute) must identify a value that can be converted to a String. Specify both the

Re: How to call a dispatch-Action from a link?

2005-11-21 Thread starki78
thank you! I found out the following (part)solution: this works and calls the dispatch action: html:link action=/lookupdispatch2?method=nix/ /html:link this doesn't work: html:link action=/lookupdispatch2 paramProperty=method paramName=nix /html:link Can you give me a tip? Thanks! To

nested Sets

2005-11-21 Thread Bouvet Konsulent
hello, I am using Struts 1.2.7 together with Hibernate 3.0. My datamodel is not too complex, but one of my Struts-forms needs to fetch data from several tables. My tables are called A, B and C. One A contains many B's and one B contains many C's. In Struts, I would need to display data from all

Re: nested Sets

2005-11-21 Thread Danny Lee
You just have to organize something like seto of B's in yur A and set of C's in your B. This has to be done per Hibernate (bag's in hibernate.cfg.xml and List getters setters in DAO Classes). When you've done this, you can iterate all the attributes without big prob's. After user submiting

how to display error messages from actions?

2005-11-21 Thread Kanuri, Chand
hi all, i am trying to display error messages.it works fine with the following code(works for both form validation messages and messages from actions). logic:messagesPresent div id=errorList ul LIhtml:errors //LI /ul /div /logic:messagesPresent now

struts portal bridge question

2005-11-21 Thread Ashish Kulkarni
Hi Is there any tutorial, or document which shows how to use this struts portal bridge, Is there a place to download all the required jar files etc i checked this site http://portals.apache.org/bridges/multiproject/portals-bridges-struts/index.html but did not got a lot of info or documentation

Re:nested Sets

2005-11-21 Thread Bouvet Konsulent
thanks for the answer! I have tried to follow your suggestions, but I can not get Struts to populate my Hibernate POJOs... This is the code I am using: MyForm.java: private Set Bs; //this also has a getter and setter B.java (which is a Hibernate-generated POJO) contains e.g. the following

Re: nested Sets

2005-11-21 Thread Bouvet Konsulent
sorry for the bad formatting in my previous mail... I try again: thanks for the answer! I have tried to follow your suggestions, but I can not get Struts to populate my Hibernate POJOs... This is the code I am using: MyForm.java: private Set Bs; //this also has a getter and setter B.java (which

Re: NEWBIE Problem with Tiles

2005-11-21 Thread Greg Reddin
On Nov 19, 2005, at 2:11 PM, Laurie Harper wrote: I haven't been tracking the status of the 'standalone Tiles' work, but I believe it's either done or close to done. I haven't had much time to work on Standalone of late. I've been trying to shore up the doc for the Struts version. But,

Re: How to call a dispatch-Action from a link?

2005-11-21 Thread Borislav Sabev
starki78 wrote: thank you! I found out the following (part)solution: this works and calls the dispatch action: html:link action=/lookupdispatch2?method=nix/ /html:link this doesn't work: html:link action=/lookupdispatch2 paramProperty=method paramName=nix /html:link Can you give me a

first mail - test mail

2005-11-21 Thread Viral_Thakkar
CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are

https + ssext + loadbalancer

2005-11-21 Thread Viral_Thakkar
Hello All: I have a scenario in my project where I am traversing to https page from http page. I am using struts+sslext for this implementation. There is a problem if I keep load balancer in front of my application server. Https page gets opened with URL having host name as of application

Re: bean:define and its behaviour....

2005-11-21 Thread Gaet
Nobody knows the answer to this trivial question? Thanks - Original Message - From: Gaet To: Mailing List Struts Sent: Monday, November 21, 2005 10:08 AM Subject: bean:define and its behaviour Hi, I'm sure this question is easy to answer for much of yours but I

struts validator

2005-11-21 Thread fea jabi
Have a jsp with a checkbox. If this is checked have to make sure 2 other textfields are not empty. i.e if order checkboxs checked want to make sure that the custName and the custNumber are entered. Is the below right to do the same? formset form name=SetupForm field

Re: nested Sets

2005-11-21 Thread Danny Lee
Well, your problem is storing the value in formulaPart. What is formulaPart? You are populating the form, and you have lot of input fields after populations. So you have to have formulaPart[x] as a property, and List formulaPart in the scope! Read this:

Re: Sync session across webapps

2005-11-21 Thread Martin Gainty
Joseph- JMF has the ability to handle multiple remote unicast targets via RTPManager class I invite you to look at http://java.sun.com/products/java-media/jmf/2.1.1/apidocs/javax/media/rtp/RTPManager.html HTH, Martin- - Original Message - From: Mathew Joseph [EMAIL PROTECTED] To:

RE: https + ssext + loadbalancer

2005-11-21 Thread Viral_Thakkar
Please respond. -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 9:17 PM To: user@struts.apache.org Subject: https + ssext + loadbalancer Hello All: I have a scenario in my project where I am traversing to https page from http page. I

Re: struts-dialogs on maven repo

2005-11-21 Thread Michael Jouravlev
On 11/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote: Is struts-dialog extension available somewhere on maven repository ? As far as I know, it does not. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: struts-dialogs on maven repo

2005-11-21 Thread Wendy Smoak
On 11/21/05, Michael Jouravlev [EMAIL PROTECTED] wrote: Is struts-dialog extension available somewhere on maven repository ? As far as I know, it does not. Would you like it to be? You don't have to build it with Maven to get it into the repository, it's just a matter of getting files into

Re: bean:define and its behaviour....

2005-11-21 Thread Gaet
Thanks for reply Michael, Imean that it's certainly trivial for experimented users with strutsnot like me :o) I try to look...but I can't find the solutionwhy this variables are different... Cordialement, - Original Message - From: Michael Jouravlev To:

RE: bean:define and its behaviour....

2005-11-21 Thread James Harig
Hi Gaet, If you are interested in knowing what is going on, you can look at the java servlet that is generated from your .jsp. For Tomcat, the servlets are in the CATALINA_BASE/work directory. -Original Message- From: Gaet [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005

Re: struts validator

2005-11-21 Thread Niall Pemberton
What you have specified means that the custName field is only valid when the checkbox is set and custName is not null - you also want it to be valid when the checkbox is not set Try the following... var var-nametest/var-name var-value((order != 'true') or (*this* != null))/var-value /var

RE: nested Sets

2005-11-21 Thread David G. Friedman
Are you positive that your action has done a Hibernate query that returns a set of data into your POJO so that your problem is only the nested iteration? Are you positive your beans are being saved in a scope (most likely request or session, not application), etc. ? Regards, David

Re: bean:define and its behaviour....

2005-11-21 Thread Michael Jouravlev
Gaet, This is not a Struts thing, this is a JSP thing. read bean:define documentation [1] and look at the source code generated by servlet container as James suggested. Documentation states clearly in the very first sentence that bean:define creates a _new attribute_ (in the scope specified by

Re: struts validator

2005-11-21 Thread fea jabi
the form is not getting validates I think action path=/PerformDispatchAction type=com.PerformDispatchAction name=SetupForm scope=session validate=true input=/pages/Setup.jsp parameter=method forward name=successSave path=/PrepareAction.do

Re: struts-dialogs on maven repo

2005-11-21 Thread Michael Jouravlev
On 11/21/05, Wendy Smoak [EMAIL PROTECTED] wrote: On 11/21/05, Michael Jouravlev [EMAIL PROTECTED] wrote: Is struts-dialog extension available somewhere on maven repository ? As far as I know, it does not. Would you like it to be? You don't have to build it with Maven to get it into

bean:define errors in eclipse 3.1.1 WTP

2005-11-21 Thread Garner, Shawn
I try to edit my JSP in Eclipse 3.1.1 WTP (Web Tools Project) however I get errors on variables defined by ID tags for example: snip bean:define id=myValue1 type=String/ bean:define id=myValue2 type=String/ %=(myValue1 + - myValue2)% /snip The above snip of code will result in Eclipse telling

Re: struts validator

2005-11-21 Thread Niall Pemberton
Can you show the struts-config.xml for your SetupForm - is it using DynaValidatorForm? Also have you configured the validator plugin in the struts-config.xml? Another thing I noticed - the snip of your validation.xml shows two default formsets? Niall - Original Message - From: fea

Re: struts validator

2005-11-21 Thread fea jabi
Thankyou Niall. My Form was not using the DynaValidatorForm. Once I set that it works fine. I do have one more question though. How to make sure that the number entered in one of my text field is a positive integer? Thanks. From: Niall Pemberton [EMAIL PROTECTED] Reply-To: Struts Users

Re: Dynamically altering struts configuration

2005-11-21 Thread Benjamin Lerman
I don't actually know. I found out. With a ModuleConfig object you can retrieve the ActionForm mappings and modify it. But why would you want to? I want to be able to define an external module that plugs in an existing struts application. This module must define a .jsp file and a form to

Re: Sync session across webapps

2005-11-21 Thread Laurie Harper
Mathew Joseph wrote: Hi, In my web application there are 2 webapps and single login for both. And in UI we are given links to different modules of both webapps. Actually the end user is not (should not be) aware of 2 webapps. The problem what I am facing is, If someone try to work/use

[shale] Design questions

2005-11-21 Thread Alexandre Poitras
Hi! First of all, congratz on the good job. Shale looks very promising. We are currently implementing JSF in my organization. I already knew about Shale but I hadn't checked its progress in a while and I must say I am impressed so far. Actually, I stumbled upon the project while I was looking for

Re: struts validator

2005-11-21 Thread Laurie Harper
Just add the extra constraint to your validation ruleĀ”, i.e. change var-value((order != 'true') or (*this* != null))/var-value to var-value((order != 'true') or ((*this* != null) and (*this* 0)))/var-value L. fea jabi wrote: Thankyou Niall. My Form was not using

Re: What's wrong

2005-11-21 Thread Rahul Akolkar
On 11/21/05, Fulgencio Comendeiro, Eduardo [EMAIL PROTECTED] wrote: % { java.util.ArrayList list = new java.util.ArrayList(); list.add(textouno.texto1); list.add(textouno.texto2); list.add(textouno.texto3); list.add(textouno.texto4); pageContext.setAttribute(list, list,

Re: getInitParameter struts TC5

2005-11-21 Thread Rahul Akolkar
On 11/21/05, Chris Pat [EMAIL PROTECTED] wrote: Hello What is the correct syntax in the struts-config.xml and the syntax in the Action, to establish/retreive an default parameter for the default application. I have tried: web.xml context-param param-nametotalSamples/param-name

Re: bean:define errors in eclipse 3.1.1 WTP

2005-11-21 Thread Rahul Akolkar
On 11/21/05, Garner, Shawn [EMAIL PROTECTED] wrote: I try to edit my JSP in Eclipse 3.1.1 WTP (Web Tools Project) however I get errors on variables defined by ID tags for example: snip bean:define id=myValue1 type=String/ bean:define id=myValue2 type=String/ %=(myValue1 + - myValue2)%

Re: how to display error messages from actions?

2005-11-21 Thread Sunil_Sahu
Add following entry in your resource bundle errors.header = ul errors.footer = /ulhr errors.prefix=li errors.suffix =/li Use html:errors/ in your jsp page, it will display error in separate row. hope it helps Sunil Kanuri, Chand [EMAIL PROTECTED] 11/21/2005 06:31 PM Please respond to

Re: How would you solve this problem?

2005-11-21 Thread Yujun Liang
My experience is to implement 2 or 3 use cases of this popups and study the common behaviour and refactor the code base to support more generic cases. I am not sure whether the following can help you but I would use a Array to carry the fields and value to and fro the popups. var map = new

Applet Problem

2005-11-21 Thread Deepa Khetan
Hi, I have a problem, not related to Struts. In my application, i have an Applet used for uploading files, by the Users. This Applet has to get downloaded on the local machine for the User. But this can be downloaded even if i am not loggin in and give the path for the Applet from my browser,

Re: [shale] Design questions

2005-11-21 Thread Craig McClanahan
On 11/21/05, Alexandre Poitras [EMAIL PROTECTED] wrote: Hi! First of all, congratz on the good job. Shale looks very promising. We are currently implementing JSF in my organization. I already knew about Shale but I hadn't checked its progress in a while and I must say I am impressed so far.

Re: Dynamically altering struts configuration

2005-11-21 Thread Simpy Ahuja
can you please demonstrate how u did that? where do we use the ModuleConfig Object... On 11/22/05, Benjamin Lerman [EMAIL PROTECTED] wrote: I don't actually know. I found out. With a ModuleConfig object you can retrieve the ActionForm mappings and modify it. But why would you want to?

RE: https + ssext + loadbalancer

2005-11-21 Thread Viral_Thakkar
Did anyone face similar issue? I have a scenario in my project where I am traversing to https page from http page. I am using struts+sslext for this implementation. There is a problem if I keep load balancer in front of my application server. Https page gets opened with URL having host name as