Re: struts 2 - framework question

2010-03-08 Thread emil thushanga
i am not sure , whether this will helpful to you anyway i have done something as following, . . .

Re: struts 2 - framework question

2010-03-08 Thread john lee
possible for you to show me the psudo code for how to do it?   tks in advance   john --- On Mon, 3/8/10, emil thushanga wrote: From: emil thushanga Subject: Re: struts 2 - framework question To: "Struts Users Mailing List" Date: Monday, March 8, 2010, 3:39 AM Hi , You can define intercepto

Re: struts 2 - framework question

2010-03-08 Thread john lee
how apache/struts 2 handle multiple domain as your explain? could you explain in some detail? tks in advance   john  --- On Mon, 3/8/10, stanl...@gmail.com wrote: From: stanl...@gmail.com Subject: Re: struts 2 - framework question To: "Struts Users Mailing List" Date: Monday, March 8, 2010,

Re: struts 2 - framework question

2010-03-08 Thread john lee
Cimballi,   tks for your help, but i do not  quite understand about '...set the parameter statically in the action definitions...',  would you demonstrate me couple line of psudo code to explain this?   tks in advance   john /7/10, Cimballi wrote: From: Cimballi Subject: Re: struts 2 - fra

RE: Cannot find bean: "bookList" in any scope

2010-03-08 Thread tesla
its struts 1 struts version 1.2.9 and also i added this code "bookForm.getBookList().add("qwer") " to bookAction.java but still i cant see array elemtens at the browser its my struts config.xml mgainty wrote: > > > the short answer is you'll need to

RE: Cannot find bean: "bookList" in any scope

2010-03-08 Thread Martin Gainty
the short answer is you'll need to populate your arraylist for any of the elements in the list to 'show up' the long answer is you'll need to supply jsp/struts-config.xml,struts.xml and backend beans,contents of Action class and which struts version you are implementing on to be able to provid

Re: Cannot find bean: "bookList" in any scope

2010-03-08 Thread tesla
thx for helping but now when i run the application i see an empty page i can't see books which i retrive from my database i guess my arraylist is empty why it is?? -- View this message in context: http://old.nabble.com/Cannot-find-bean%3A-%22bookList%22-in-any-scope-tp27816517p27828192.html Sent

JSON not serializing all members of my object...

2010-03-08 Thread Stanley, Eric
All, running latest and greatest S2, and trying to convert a HashMap> To a JSON result. its all setup right, and it is serializing, but it always sets 2 of the members in the ProjectManager List objects to null. The members are Strings, one containing a phone number, and the other containing an

Expression tag.contains is undefined

2010-03-08 Thread Johannes Geppert
Hello, i want to include a freemarker template from the simple theme like this. <#include "/${parameters.templateDir}/simple/checkboxlist.ftl" /> But I run always in an freemarker template error when I use it. Expression tag.contains is undefined on line 39, column 14 in template/simple/checkb

Re: Cannot find bean: "bookList" in any scope

2010-03-08 Thread Paweł Wielgus
Hi All, also shouldn't it be < logic:iterate name="bookForm" property="bookList" >? Best greetings, Paweł Wielgus. 2010/3/8 : > You have bookList and listBook.  Change one of them. > > On Sun, Mar 7, 2010 at 8:25 PM, tesla wrote: > >> >> Hi i'm new at struts.I wanna write all the array element

problem with getText()

2010-03-08 Thread lucas owen
Hi Struts users: I'm working with Struts 2. I have following property file: solicitud.error.solicitante.enCalidad = Debe introducir en calidad de del solicitante. . . . solicitante.enCalidad = En calidad I know keys are similar, but not the same. When I try to retrieve getText(solicitud.erro

struts 2 display tag export problem

2010-03-08 Thread Rakesh K nair
Hi I am using following code for exporting all data from a table to excel and pdf. It works ok with the columns, but I can´t export the footer and caption tag. <%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="sx" uri="/struts-dojo-tags"%> <%@ taglib uri="http://displaytag.sf.net";

JQuery Struts 1

2010-03-08 Thread Jack Ryan
I see that there has been a plugin developed for asynchronous loading of UI components using JQuery in Struts 2. Could anybody tell me of anything comparable (e.g. custom tag libraries using JQuery) for Struts 1?

Re: possible s:submit with parameter?

2010-03-08 Thread lucas owen
thanks to all you have been very very helpful!!! 2010/3/8 Alex Rodriguez Lopez > You can use hidden fields inside of the form which will be sent too on > submit as GET or POST params(usually good for IDs). > > Alex > > Em 05-03-2010 23:13, Adam Pinder escreveu: > > Any form textfield will be su

Re: How to do with Struts2(Similar to Web2.0 wizard)!!!!

2010-03-08 Thread emil thushanga
Hi , My idea is to create a jar file with your common codes and place it in your class path. Emil On Fri, Mar 5, 2010 at 9:44 PM, sharath karnati wrote: > Hi All, > >    I'm currently using Struts2 + Spring(DAO). > >    Say I have 2 web application, these two application are using file upload

Re: struts 2 - framework question

2010-03-08 Thread stanlick
If each company will have their own domain name this will solve itself. On Sat, Mar 6, 2010 at 10:18 PM, john lee wrote: > > my company is distributor, we plan to provide platform for our > customer(different store) to sell their product to indivual customers. > > http://www.xyz.om/store1 > http

Re: Cannot find bean: "bookList" in any scope

2010-03-08 Thread stanlick
You have bookList and listBook. Change one of them. On Sun, Mar 7, 2010 at 8:25 PM, tesla wrote: > > Hi i'm new at struts.I wanna write all the array elements which i defined > at > java class to the jsp file > but i'm getting this error > "javax.servlet.ServletException: javax.servlet.jsp.JspE

UriTemplates support in Struts.

2010-03-08 Thread Unmesh joshi
Hi, We wanted to expose Restful URLs as explained in (http://uritemplate.codeplex.com/). Currently struts has two action mappers which support Restful urls. RestFul2ActionMapper and Rest plugin's action mapper. The problem with Restful2 action mapper is that it expects parameter names in url e.

Re: AJAX Validation (calls to action methods work on submit, but messages not displayed nor page redirected)

2010-03-08 Thread Alex Rodriguez Lopez
I'm thinking this might be related to the AJAX Theme thing... is this required to work with AJAX validation? Any other requeriments aside from including the sx:head tag? Em 08-03-2010 11:11, Alex Rodriguez Lopez escreveu: Hi! I'm updating validations on my app to use AJAX. I followed this: h

Re: struts 2 - framework question

2010-03-08 Thread emil thushanga
Hi , You can define interceptors for each namespace. Emil On Mon, Mar 8, 2010 at 3:19 PM, Alex Rodriguez Lopez wrote: > It looks to me that you could use a combination of packages for each store > with different namespaces, but to save code repetition it would be good idea > to use wildcards (o

Re: struts 2 - framework question

2010-03-08 Thread Alex Rodriguez Lopez
It looks to me that you could use a combination of packages for each store with different namespaces, but to save code repetition it would be good idea to use wildcards (or go for the restful way as already suggested) in the config files and later on the action retrieve the full url to see whic

Re: S2 Forward to previous view (GoBack)

2010-03-08 Thread Girish Naik
Suppose the user is in Page 'A' and then he is redirected to 'B', now on page 'B' you want to redirect him to page 'A'. So we can do this by getting the request.getHeader("referer") on the submitting action of page 'A' and store it in page 'B' 's go back button. Regards,

Re: possible s:submit with parameter?

2010-03-08 Thread Alex Rodriguez Lopez
You can use hidden fields inside of the form which will be sent too on submit as GET or POST params(usually good for IDs). Alex Em 05-03-2010 23:13, Adam Pinder escreveu: Any form textfield will be submitted when page submitted which is effectively a parameter. Adam On 5 Mar 2010, at 19:46,

S2 Forward to previous view (GoBack)

2010-03-08 Thread Marsman
Hi! how can I forward to the previous view (for a "go back" button)? I've read about dynamic results. But how can I determine the view, the user comes from? Or is there an easier way to implement this (without javascript)? Titus -- View this message in context: http://old.nabble.com/S2-Forwar

RE: possible s:submit with parameter?

2010-03-08 Thread adam pinder
in the form, make your booklist a select box (with id as the option value) or display as text with a radio button group (i.e. each book has the same radio button id) when you press submit, the id of the book selected will be sent to the action and you can use that to retrieve the book detail