Struts tiles layout performance

2006-04-06 Thread Raghuveer
In our Web application we are using struts,JSP for plumtree web application. Does there will be any performance issue using Tiles if i migrate from present normal layout to struts tiles layout . - To unsubscribe, e-mail: [

Bean Question

2006-04-06 Thread Neil Meyer
Good day, I have a bean something like this public class testBean implements Serializable { private String test1; private String test2; private String test3; private String test4; public String getTest1 () { return test1; } public void setTest1 (String test

CRUD tool

2006-04-06 Thread Rafael Taboada
Hi folks... I'm in a hurry... I have to finish my project and I want to know if there is a tool to generate CRUD... In struts obviously... Do u know a tool that it can generate my CRUD??? thanks so much -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me

Re: MVC Dilemma

2006-04-06 Thread olonga henry
But what about Transaction demarcation, where does JTA come into play? On 4/6/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > to complete to Joes very good suggestion: the business manager returns > service an object/list of objects which are in no way associated with > objects used in dao. The

Re: Use struts module with relative url path when forwarding request from webserver

2006-04-06 Thread Adam Hardy
Scott, try placing the shared javascript in a 'common' module and refer to it using a leading slash src="/common/js/base" Adam Scott Zhu on 06/04/06 18:25, wrote: I have encountered a problem related struts module and would like to see if you have any suggestions. A new requirement for ou

RE: Tree display in JSP page

2006-04-06 Thread Richard Allwood
You can create a Iterator class that traverses the tree structure. If you need to display the tree structure in the JSP page then the Iterator will need to maintain enough information about depth traversed/siblings to ensure that the tree structure can be rendered for each value iterated through.

Re: Apply errorStyleClass to multiple fields using Validator

2006-04-06 Thread Angelo zerr
Hi christophe; If you want, you can use FormView, to manage your render of your fields which have error. See http://formview.sourceforge.net/errors.html FormView is able to manage a behaviour (READ-ONLY, INVISIBLE,ERROR,...) for each fields of your form. It can be plugged with validator to manage e

Re: MVC Dilemma

2006-04-06 Thread Leon Rosenberg
to complete to Joes very good suggestion: the business manager returns service an object/list of objects which are in no way associated with objects used in dao. The typical name for this kind of object would be a TicketDTO. The struts action maps each TicketDTO into a TicketBean, which is the only

Email Validation for .info Domain Qualifier

2006-04-06 Thread Jeff Deskins
A user kept getting an email validation error when entering his email address (ex: [EMAIL PROTECTED]) on one of our sites that uses Struts. Apparently, the Struts email validation doesn't like the 4 character domain qualifier (.info in this case - I believe there may be others). I looked in valida

Re: MVC Dilemma

2006-04-06 Thread Joe Germuska
JSTL SQL calls don't conform to MVC principles in any way at all. I'd suggest creating a business manager service in Spring which has access to the two DAOs and having a Struts action call a single method on that business manager. This one sounds like read only, but if you have write operati

MVC Dilemma

2006-04-06 Thread olonga henry
Using Struts-Spring-Hibernate: I have a situation where I have to fetch a list of records from a table 'Ticket' (in database 1) in which a column is a employeeId so my action class calls the service layer which in turns calls the DAO layer to get the "Certain Tickets List". Now, there is another

Re: struts validator issues

2006-04-06 Thread Bart Busschots
Hi Victor, I don't have an explicit example but were I to have to do this I would use a validwhen validation that would look something like: test ((*this* < 10) or (*this* > 100)) You can find out more details on validwhen in the validator developers guide: http://struts.apache

Re: Validation

2006-04-06 Thread Laurie Harper
gokul balasubramanian wrote: Guys, I am yet to find a solution for this problem. I validate a form and if validation returned errors, which it does in this case y is the action still being called? even worse the errors are displayed on the action page than on the input page. baffles me. how d

RE:Shale tiles problem

2006-04-06 Thread Gary VanMatre
>It kind of reads like the tiles def name should end with a period. > > >http://struts.apache.org/struts-shale/shale-tiles/apidocs/org/apache/shale/tiles >/TilesViewHandler.html#getTileName(java.lang.String) Okay, that was a stupid comment. Please ignore this one. Sorry for the noise. Gary

Re: Shale tiles problem

2006-04-06 Thread Gary VanMatre
>From: Kevin <[EMAIL PROTECTED]> > > Attempting to implement Stand alone-Tiles with Shale. > > -tiles-core.jar and shale-tiles.jar in WEB-INF/lib > > -tiles-def.xml looks like: > > > > > > >-dialog-config.xml looks like: > > st

Shale tiles problem

2006-04-06 Thread Kevin
Attempting to implement Stand alone-Tiles with Shale. -tiles-core.jar and shale-tiles.jar in WEB-INF/lib -tiles-def.xml looks like: -dialog-config.xml looks like: -Link to dialog looks like:

Re: [Shale] Shale and navigation rules

2006-04-06 Thread Craig McClanahan
I didn't write this wiki page, and hadn't ever seen it before, so obviously I've not tried the proposed technique. I'll just throw in a couple of comments on what might be going wrong for you below. On 4/6/06, Hermod Opstvedt <[EMAIL PROTECTED]> wrote: > > Hi > > I read a Wiki page on MyFaces : >

[Shale] Shale and navigation rules

2006-04-06 Thread Hermod Opstvedt
Hi I read a Wiki page on MyFaces : http://wiki.apache.org/myfaces/Custom_Navigation_Handler, When I attempted to try this receipe, I ran into a couple of issues: In the Wiki entry it states that I should be able to declare a navigation rule as follows: /view.jsp edit /vie

Apply errorStyleClass to multiple fields using Validator

2006-04-06 Thread Christoph Olszowka
Hi, I'm being troubled by the following issue: I have got 3 text input fields that are all being validated if they are holding int numbers with help of validators intRange. By default the fields are holding a 0. As a special condition, the sum of the fields must be larger than 0, e.g. at least one

Proxy rewrites

2006-04-06 Thread Anil Arora
Didn't see this go through...resending...sorry for the duplicates... Hello, I'm fairly new to struts development (actually a non-UI developer trying to do some UI development) I'm trying to find an answer to a problem that I am having with Struts 1.2.9 and

Re: popup window

2006-04-06 Thread fea jabi
oh ok. got it. Thank you very much for your response. From: "Frank W. Zammetti" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" CC: user@struts.apache.org Subject: Re: popup window Date: Thu, 6 Apr 2006 13:57:02 -0400 (EDT) No, the path attribute is

Re: popup window

2006-04-06 Thread Frank W. Zammetti
No, the path attribute is still meant to point to some resource, usually a JSP. The JSP it points to should contain that markup. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] Java Web P

Re: popup window

2006-04-06 Thread fea jabi
instead of should I do > onLoad="window.close();">" redirect="false"/> From: "Frank W. Zammetti" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" CC: user@struts.apache.org Subject: Re: popup window Date: Thu, 6 Apr 2006 13:31:42 -0400 (EDT) You

Re: popup window

2006-04-06 Thread Frank W. Zammetti
You could do that, and just return null from the Action, that would work. I would suggest however that the JSP that successReturn points to should be the markup. I tend these days to want to stay away from dynamically creating markup in code (be it an Action or Servlet or whatever else). -- Fra

Use struts module with relative url path when forwarding request from webserver

2006-04-06 Thread Scott Zhu
I have encountered a problem related struts module and would like to see if you have any suggestions. A new requirement for our webapp is to use a webserver to forward requests to the real app server. So someone may request a url like: http://ws/abc/APPand we configure it to forward to http://as:

Re: popup window

2006-04-06 Thread fea jabi
Thankyou for your response. Do you mean instead of return mapping.findForward("successReturn"); I should write the below in dispatch action. return "onLoad="window.close();">"; From: "Frank W. Zammetti" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing L

Re: struts validator issues

2006-04-06 Thread Victor Ying
Hi Bart, Thanks for the information, my main questions how do you validate open interval like (0,10) in float field.do you have example for that? Thanks ---victor --- Bart Busschots <[EMAIL PROTECTED]> wrote: > Hi Victor, > > The key to the validator is that you can use > multiple validati

re: Struts and Ajax

2006-04-06 Thread mcmoisei
You also can do it transparently using ajaxanywhere.sourceforge.org Define a refresh zone around that dropdown you want to populate and then your onchange will do the regular re-post to bring data from server then instruct your zone to refresh and data will appear miracoulosly... :) There are

Re: Struts and Ajax

2006-04-06 Thread Frank W. Zammetti
On Thu, April 6, 2006 3:18 am, Madhav Bhargava said: > I do not want to put any Html generating logic inside my action class. Is > there any other elegant way in which i can generate the HTML for the drop > down. > > I can very well write different methods to generate the HTML code and then > call

Re: popup window

2006-04-06 Thread Frank W. Zammetti
Firstly, there is a Wiki page that may or may not be helpful: http://wiki.apache.org/struts/OpenWindowFromAction On Thu, April 6, 2006 10:24 am, fea jabi said: > want to open a popup window when the user clicks on a button. how to do > that? > do not want to update any fields when the window is c

Re: Preventing improper page navigation

2006-04-06 Thread Michael Jouravlev
On 4/6/06, Givler, Eric <[EMAIL PROTECTED]> wrote: > We have an application where we'd like to prevent the user from navigating > within the application using bookmarks or their history. If they do this, in > most cases, the proper queries will not have run and the application will be > in an i

Re: White page flashing between request and response.

2006-04-06 Thread Michael Jouravlev
On 4/6/06, Haim Raman <[EMAIL PROTECTED]> wrote: > Hi All > I am having an issue I am trying to solve and I do not have a clue how > to. > > The configuration used is jboss 4.01-sp1 running inside an apache 2.0 > web server on a Linux based machine with Struts version 1.2.4. > > When clicking on a

RE: White page flashing between request and response.

2006-04-06 Thread George.Dinwiddie
I would suggest sniffing the network traffic to see what's going on between the browser and server. This will give clues as to where you might look further. > -Original Message- > From: Haim Raman [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 06, 2006 10:55 AM > To: user@struts.apach

re: Struts and Ajax

2006-04-06 Thread Dean, Michael
Madhav: I think the idea IS: Once your data stream (drop-down content) is returned to the page (onReadyStateChange()), you'll have a JavasScript handler in place to refresh your drop-down (you manipulate and re-render the DOM node using Javascript). It is all done on the front-end... See

Re: Some questions

2006-04-06 Thread Frank W. Zammetti
Good show Mario! I think you did exactly the right thing. I wish you all the best with your choice. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] Java Web Parts - http://javawebparts.s

Re: Struts and Ajax

2006-04-06 Thread [EMAIL PROTECTED]
If you would like to create a helper class for your ajax stuff, here is a link to show you what your Java code would look like. Follow Setup Configuration to see how to set it up. http://www.xoscript.org/opencms/opencms/documentation/aboutjava.html Here is what the JavaScript code would look like.

White page flashing between request and response.

2006-04-06 Thread Haim Raman
Hi All I am having an issue I am trying to solve and I do not have a clue how to. The configuration used is jboss 4.01-sp1 running inside an apache 2.0 web server on a Linux based machine with Struts version 1.2.4. When clicking on a link or submitting a form - after few seconds a white page is

Re: Sharing the action form by different actions

2006-04-06 Thread Michael Jouravlev
On 4/6/06, Carl Smith <[EMAIL PROTECTED]> wrote: > It is practical to share the same action form by different > actions, For example (I only listed two actions sharing the same form here, > but the questions apply for multiple actions sharing the same form): > > > >scope="session" name="shar

Re: Sharing the action form by different actions

2006-04-06 Thread Wendy Smoak
On 4/6/06, Carl Smith <[EMAIL PROTECTED]> wrote: > It is practical to share the same action form by different > actions, For example (I only listed two actions sharing the same form here, > but the questions apply for multiple actions sharing the same form): Sure. I have an app that uses a singl

Sharing the action form by different actions

2006-04-06 Thread Carl Smith
It is practical to share the same action form by different actions, For example (I only listed two actions sharing the same form here, but the questions apply for multiple actions sharing the same form): Then the question is:is it a good practice to set up the sharedForm

popup window

2006-04-06 Thread fea jabi
want to open a popup window when the user clicks on a button. how to do that? do not want to update any fields when the window is closed from where the popup window was opened by click of a button. The below code is in jsp, dispatchaction of a popup window. In jsp: value="${btnReturn}"/> IN

Re: I get exception : Path http://www.mywebsite.com/ does not start with a "/" character

2006-04-06 Thread Antonio Petrelli
Legolas Woodland ha scritto: Hi Thank you for reading my post when i click on some of my links in the web application The server return an exception like : java.lang.IllegalArgumentException: Path http://www.mysite.com/ does not start with a "/" character org.apache.struts.action.RequestProces

Re: How to get only dijest from this group ???

2006-04-06 Thread Vinit Sharma
Send mail to the following for info and FAQ for this list: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Similar addresses exist for the digest list: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> To get messages 123 through 145 (a maximum of 100 per request), mail: <[EMAIL PROTECTED]> To get an in

Re: Validation

2006-04-06 Thread vijay venkataraman
Gokul, Why don't you just pull the source code and debug it. If you had done that, by now you would have found a solution to your problem. Thanks, Vijay Venkataraman gokul balasubramanian wrote: Guys, I am yet to find a solution for this problem. I validate a form and if validation return

Re: Struts and Ajax

2006-04-06 Thread chuanjiang lo
go take a look at http://javawebparts.sourceforge.net they have a ajax dynamic double select servlet.. On 4/6/06, Madhav Bhargava <[EMAIL PROTECTED]> wrote: > > Hi All, > > I have 2 drop downs in my JSP. One drop down gets populated based on the > value selected in the other drop down. At prese

Session LOST between Request processor and Action

2006-04-06 Thread Shafiqul Islam
hi, It seems that I am loosing the session information between the Request processor and Action. Any idea to what I may be doing wrong? Thanks. ---Struts-config--- http://struts.apache.org/dtds/struts-config_1_2.dtd";> ---RequestProc

Validation

2006-04-06 Thread gokul balasubramanian
Guys, I am yet to find a solution for this problem. I validate a form and if validation returned errors, which it does in this case y is the action still being called? even worse the errors are displayed on the action page than on the input page. baffles me. how do i tackle this problem?

Preventing improper page navigation

2006-04-06 Thread Givler, Eric
We have an application where we'd like to prevent the user from navigating within the application using bookmarks or their history. If they do this, in most cases, the proper queries will not have run and the application will be in an indeterminate state. We thought the solution was to simply

struts web app performance suggestions

2006-04-06 Thread Jeff Thorne
I am seeing slow performance with a few initial pages of my struts app. Here is the flow of the app. 1. Index.html forwards to index.jsp. 2. index.jsp loads user cookies into session. 3. if member cookie found forward to load member page struts action. 4. if no member co

How to get only dijest from this group ???

2006-04-06 Thread A. Lotfi
Hi, I get lot of email from this Mailing List, could you please show me how to set it so I will get only dijests ? thank you. - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.

RE: Shale Clay HTML layout

2006-04-06 Thread hermod.opstvedt
Hi The use of sessionid has nothing to do with these. It is a functionality of the applicationserver. If the browser does not support cookies, it will append the sessionid to the URI regardsless of what the application is implemented with. Shale/Clay by it self does not govern this if so was no

Re: Some questions

2006-04-06 Thread Dakota Jack
There are, however, frameworks whose time has passed and that have no reason except backwards compatibility to be available. The right thing to do with these frameworks is to label them as obsolete so that people will not be lured into using them when they are a poor choice. Choices are good. No

Re: looking for struts authorization authentication

2006-04-06 Thread Adam Hardy
A. Lotfi on 05/04/06 20:05, wrote: Hi, I looked for a struts that different categorie of users login and got forwarded to different pages, please help me if you have a tutorial or web application . thank you, your help is appreciated. If you are looking for example applications, try browsing th

Shale Clay HTML layout

2006-04-06 Thread Kevin
Hello, I was wondering if anyone could answer the following. If we were to implement a Clay Tile-like HTML layout thus binding JSF components to HTML tags would the result be similar to .do,.faces,.jsp where a servlet-container will tack on a JSessionId or does the use of Clay alleviate that.

Tree display in JSP page

2006-04-06 Thread Vinit Sharma
Hi, I've a class, which looks like: public class Tree { private String label; private int level; private Tree childRef; private Tree siblingRef; private Tree startRef; } I'd like to diplay this data structure on my JSP page. Its a trick, as recursion is not possible in JSP as compared

Re: Any relation imaginable between Struts and HiveMind?

2006-04-06 Thread Ted Husted
On 4/6/06, Julian Tillmann <[EMAIL PROTECTED]> wrote: > today I stumbled across the jakarta > project "HiveMind", where you can > develop services, that work > between your application code and the underlying J2EE. > > Has someone an idea on or any experience from practicing a combination > between

Re: Login with roles

2006-04-06 Thread Ted Husted
On 4/6/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote: > I recommend Spring Acegi. You can mix it with Struts or whatever web > framework you like. Good suggestion! * http://acegisecurity.org/ * http://www.javalobby.org/articles/acegisecurity/part1.jsp Apache Roller uses Acegi now, and it's bas

Re: R: how to handle requests submitted using java script with a LookupDispatchAction subcalss

2006-04-06 Thread Nava Krishna Mallela
Hi Diaconu Eduard, I aready have a key(EffortTracker.getProgram) mapped to the value( getPrograms). i.e. application.resources file contains, EffortTracker.getPrograms=getPrograms and protected Map getKeyMethodMap() { Map map = new HashMap(); map.put("EffortTracker.getPrograms"

Any relation imaginable between Struts and HiveMind?

2006-04-06 Thread Julian Tillmann
Hi, today I stumbled across the jakarta project "HiveMind", where you can develop services, that work between your application code and the underlying J2EE. Has someone an idea on or any experience from practicing a combination between HiveMind and struts? I haven't got a clue on how I c

Re: Some questions

2006-04-06 Thread Ted Husted
On 4/6/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote: > BTW, I respect every Open Source projects, they are the reason why the > Java world is so great and Tapestry is indeed a good framework. Ditto. I think it's very cool that Apache Struts links to several alternative products directly from ou

Validator rule question

2006-04-06 Thread Rivka Shisman
Hello Friends, I have a DynaValidatorForm in which there 2 String properties: action and student_birth_date. I have a date validation like this: datePatternStrict

Re: Struts newbee

2006-04-06 Thread Ted Husted
On 4/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > i have a question. Can two ActionForms be associated with the same Action > class .. > if yes how. One of my favorite approaches is to use "coarsely grained" ActionForms. Rather than have discrete ActionForms for each Action, I create one

Re: Some questions

2006-04-06 Thread Alexandre Poitras
Well Tapestry is a good choice but if you want to use a component-oriented framework, you should also give a try to JSF. I had heard so much FUD about it so I was thinking it was probably going to suck but since it was an official specification, I was willing to give it a try. Well after using it i

RE: how to handle requests submitted using java script with a LookupDispatchAction subcalss

2006-04-06 Thread Krishna, Mattam \(M.\)
Hi, Change ur script as follows, it may solve ur problem.. Add u r webRoot name and method name. Still u have problems send a mail.. function resubmit(form_name,method_value) { document.forms[form_name].method.value= method_value; docu

Re: Login with roles

2006-04-06 Thread Alexandre Poitras
I recommend Spring Acegi. You can mix it with Struts or whatever web framework you like. On 4/6/06, Ted Husted <[EMAIL PROTECTED]> wrote: > On 4/6/06, Jamal <[EMAIL PROTECTED]> wrote: > > Hi, I want to write a login application with roles, any help please. > > thank you your help is appreciated >

R: how to handle requests submitted using java script with a LookupDispatchAction subcalss

2006-04-06 Thread Diaconu Eduard
protected Map getKeyMethodMap() { Map map = new HashMap(); map.put("getPrograms","getPrograms"); return map; } ApplicationResources.properties getPrograms=getPrograms in jsp -Messaggio originale- Da: Nava Krishna Mallela [mailto:[EMAIL PROTECTED] Inviato:

Re: Login with roles

2006-04-06 Thread Ted Husted
On 4/6/06, Jamal <[EMAIL PROTECTED]> wrote: > Hi, I want to write a login application with roles, any help please. > thank you your help is appreciated The Struts JSP Taglib Logic tags can key on the JAAS security role. * http://struts.apache.org/struts-taglib/tagreference-struts-logic.html * ht

how to handle requests submitted using java script with a LookupDispatchAction subcalss

2006-04-06 Thread Nava Krishna Mallela
Hi, Please guide me overcome this issue. My jsp page has two list boxes, the values in one of those boxes(dependent list box) are populated depending on the selected value in the other one (independent listbox). I tried submitting the value selected in the independentlistbox using javascri

Re: Struts newbee

2006-04-06 Thread Krishnakanth
Hi Saritha, I read the mail u send as a reply of Praveen's mail.I've also a little experience in struts.But I've a doubt in this reply.I'm telling this from my small knowledge in struts.. You told that we got only one form bean in the perform()/execute() method.But I th

RE: Struts newbee

2006-04-06 Thread Ramkumar.Sakthivel
Hi, You cannot have two action forms associated with one action. I suggest you use nested beans in your action form. HTH. Thanks and Regards, S.Ramkumar Associate Consultant - Investment Banking PrimeSourcing(tm) "Add Value Reduce Risk" i-flex solutions limited, Bangalore Ph:+ 91-80- 22086000/5

Re: struts validator issues

2006-04-06 Thread Bart Busschots
Hi Victor, The key to the validator is that you can use multiple validations on the one filed so you can combine things like less than and more than to give you an open range etc. Another very powerful validation is 'valid when' which allows you to set up complex checks that related to other f

Re: Struts newbee

2006-04-06 Thread Lakshmi Saritha
Hi Praveen, Hope you are doing well... I want to share something regarding your question. Generally, the Action.perform() method takes only a single form bean as a parameter(of course, it takes 4 parameters: ActionForm,ActionMapping,HttpServletRequest,HttpServletResponse). So, surely we

Re: Some questions

2006-04-06 Thread Mário Lopes
Guys, please calm down! I've taken another approach onto choosing the right framework. Instead of doing the top-down analysis (picking the framework and then seeing what it could offer) I did the other way around, a bottom-up analysis. So, I realized that I needed lots of AJAX and that was absolu

Struts and Ajax

2006-04-06 Thread Madhav Bhargava
Hi All, I have 2 drop downs in my JSP. One drop down gets populated based on the value selected in the other drop down. At present this is done using a Tag handler call. The control goes to a rendering action which then forwards the call to the JSP. From within the JSP the tag handler is invoked p