ScopedModelDriven issues

2007-05-18 Thread tom tom
Hi, Has any one successfull getting ScopedModelDriven with session scoped form beans, I tried several times and it failed, the values only remains for request scope, it get reset each time. Is this a bug. Plese let us know how to proceed. Thanks

Re: AJAX query

2007-05-18 Thread Kavita Mehta
thanks ..it was the previous case only . Frank W. Zammetti [EMAIL PROTECTED] 05/16/2007 07: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: AJAX query When you say your updating it using AJAX,

URL question

2007-05-18 Thread meeboo
Hey all Can I somehow hide the action name in a URL to make it more search engine friendly? I am specifically talking about the index page (in for example http://www.myapp.com/index.action ). Cheers -- View this message in context: http://www.nabble.com/URL-question-tf3776809.html#a10679563

Populate two fields with one value

2007-05-18 Thread Mansour
how to populate 2 fields in my action with one value ? for example I need to populate the first name and last name with one value for searching: s:form action=searchAccount method=post theme=xhtml h4 Search Account /h4 s:textfield label=id name=acc.id / s:textfield label=AccountName Contains

Re: Populate two fields with one value

2007-05-18 Thread Guillaume Carré
2007/5/18, Mansour [EMAIL PROTECTED]: how to populate 2 fields in my action with one value ? for example I need to populate the first name and last name with one value for searching: try this: s:form action=searchAccount method=post theme=xhtml h4 Search Account /h4 s:textfield label=id

Re: [S2] Is there a way to turn of formatting of controls with ajax theme?

2007-05-18 Thread Musachy Barroso
Just to confirm what Dave said, in 2.0.x you will have to modify the template to remove the layout tags. In 2.1 the submit button will have the layout tags only if it is inside a form, for which the theme is either css_xhtml(divs) or xhtml(trs) (to keep backward compatibility). musachy On

[OT] mathematical algorithm in java

2007-05-18 Thread Ashish Kulkarni
Hi Are there any mathematical algorithm in java, for example CPM, or branch and bound algorithm Open source is good, but not a requirement, anything in C or C++ is also okay, can try to call them from java Can anyone provide some links for them Ashish

Re: [OT] mathematical algorithm in java

2007-05-18 Thread Antonio Petrelli
2007/5/18, Ashish Kulkarni [EMAIL PROTECTED]: Hi Are there any mathematical algorithm in java, for example CPM, or branch and bound algorithm I think that you did not use the correct words when googling :-) CPM and branch-and-bound are arguments of Operational Research. I googled Operational

Re: [OT] mathematical algorithm in java

2007-05-18 Thread Dave Newton
--- Ashish Kulkarni [EMAIL PROTECTED] wrote: Are there any mathematical algorithm in java, for example CPM, or branch and bound algorithm Just out of curiosity, did you try using Google and searching for, say, something along the lines of branch and bound +java or something? I could be wrong,

Re: Status of Tiles without Struts

2007-05-18 Thread Antonio Petrelli
2007/5/18, lightbulb432 [EMAIL PROTECTED]: Could somebody who's in the know here explain what the status of this project is, and how I can get it up and running in a simple way? Me! Me! :-) http://tiles.apache.org/ Antonio

Status of Tiles without Struts

2007-05-18 Thread lightbulb432
What’s the status of Tiles without Struts? I see all sorts of outdated and conflicting information on where to get it from, how to configure it, what dependencies it has, etc. Websites, blog posts, and mailing list postings all seem to tell me somewhat different things… Could somebody who’s in

Re: Populate two fields with one value

2007-05-18 Thread Mansour
I tried it. It's not working either. Guillaume Carré wrote: 2007/5/18, Mansour [EMAIL PROTECTED]: how to populate 2 fields in my action with one value ? for example I need to populate the first name and last name with one value for searching: try this: s:form action=searchAccount

Re: Populate two fields with one value

2007-05-18 Thread Dave Newton
--- Mansour [EMAIL PROTECTED] wrote: I tried it. It's not working either. What do you mean, populate two values in your action with one value? Under what circumstances would that population happen? Are you filling out a search form and attempting to search based on what was actually filled out

Re: Populate two fields with one value

2007-05-18 Thread Lance
Do you have the approptriate getters and setters? eg action.getAcc().setFirstName() action.getAcc().setLastName() Mansour wrote: I tried it. It's not working either. Guillaume Carré wrote: 2007/5/18, Mansour [EMAIL PROTECTED]: how to populate 2 fields in my action with one value ? for

Re: Populate two fields with one value

2007-05-18 Thread Ed Griebel
You should probably be doing this in your action class, not your JSP. If it should always be set to acc.firstName, then you could just hardcode a hidden field: input type=hidden value=${acc.firstName}/ On 5/18/07, Mansour [EMAIL PROTECTED] wrote: how to populate 2 fields in my action with one

[s2]checkboxlist problem

2007-05-18 Thread climbingrose
Hi there, I'm having problem with checkboxlist in Struts 2. Here is my jsp fragment: s:checkboxlist list=attributes name=test listKey=id listValue=name/ Now attributes is a list of Attribute objects. Attribute class look like: class Attribute { private Integer id; private String name; ...

Re: Populate two fields with one value

2007-05-18 Thread Mansour
Yes, I do have the correct setters for the Account object. Lance wrote: Do you have the approptriate getters and setters? eg action.getAcc().setFirstName() action.getAcc().setLastName() Mansour wrote: I tried it. It's not working either. Guillaume Carré wrote: 2007/5/18, Mansour [EMAIL

Struts menu

2007-05-18 Thread Archer
Hi Can anyone please help me to know to get the sub menu under main menu. I am using struts 1.3.8. I am not using struts menu. when a menu is clicked I should get a submenu opened under it. example: mainmenu: menu1 menu2 menu3 when i click menu1 it should open

Tiles fragment as XML

2007-05-18 Thread lightbulb432
How can I use the Tiles page shown below from the Tiles distribution example WAR in an editor that expects XML? What would the root XML element of this fragment be? %@ taglib uri=http://tiles.apache.org/tags-tiles; prefix=tiles % tiles:insertTemplate template=/putattributeslayout.jsp

Re: Status of Tiles without Struts

2007-05-18 Thread Lance
I have used sitemesh in the past http://www.opensymphony.com/sitemesh/ This is a filter that intercepts the html on the way out, parses it then decorates it with a header, menu etc. etc. lightbulb432 wrote: Great, thanks! Out of curiosity, what are the alternatives to Tiles for JSP

Re: Status of Tiles without Struts

2007-05-18 Thread lightbulb432
Great, thanks! Out of curiosity, what are the alternatives to Tiles for JSP templating? Assuming I'd like to use JSP for the view, what ways of making a maintainable website are there? Of course I could use the JSP include action and directive, but that wouldn't be maintainable (or would it in

RE: Status of Tiles without Struts

2007-05-18 Thread LAMY Olivier
Hi, A question I see in documentation [1] : container.render(myapp.homepage, request, response); But in last version 2.0.3 : this method doesn't exists anymore ? What is the new one ? Thanks, -- Olivier [1] : http://tiles.apache.org/tutorial/basic/pages.html -Message d'origine- De

Re: Populate two fields with one value

2007-05-18 Thread Adam Ruggles
I have to ask... why don't you just set it in the action? public String execute() throws Exception { this.lastName = this.firstName; ... } Mansour wrote: Yes, I do have the correct setters for the Account object. Lance wrote: Do you have the approptriate getters and setters? eg

RE: Status of Tiles without Struts

2007-05-18 Thread LAMY Olivier
Ok. See in sources. If someone interested : HttpServletRequest request = ServletActionContext.getRequest(); HttpServletResponse response = ServletActionContext.getResponse(); container.render( location, new Object[] { request, response } ); -- Olivier -Message d'origine- De : LAMY

Re: Struts 2 providing injection

2007-05-18 Thread Ian Roughley
Struts2, or more precisely XWork, uses an early version of Guice. I was wondering about doing the same thing on a current project, and my initial thought was that you would need to define the beans being injected via the struts.xml configuration file or to provide a way to supply the managed

Re: Tiles fragment as XML

2007-05-18 Thread Antonio Petrelli
2007/5/18, lightbulb432 [EMAIL PROTECTED]: How can I use the Tiles page shown below from the Tiles distribution example WAR in an editor that expects XML? Please ask this question, regarding Tiles 2, in Tiles Users mailing list: http://tiles.apache.org/mail-lists.html Antonio

Re: Status of Tiles without Struts

2007-05-18 Thread Antonio Petrelli
HEY ALL!!! For questions regarding Tiles 2 ask the Tiles 2 Users mailing list, please: http://tiles.apache.org/mail-lists.html Antonio 2007/5/18, LAMY Olivier [EMAIL PROTECTED]: Ok. See in sources. If someone interested : HttpServletRequest request = ServletActionContext.getRequest();

[OT] Re: Tiles fragment as XML

2007-05-18 Thread Dave Newton
--- lightbulb432 [EMAIL PROTECTED] wrote: How can I use the Tiles page shown below from the Tiles distribution example WAR in an editor that expects XML? What would the root XML element of this fragment be? It's JSP. d.

Struts 2 providing injection

2007-05-18 Thread Will Smith
Hi, I have an action that I've been injecting with Guice. I just noticed that there is an @Inject annotation defined in com.opensymphony.xwork2.inject. I'm assuming that this allows you to use struts 2 as the di provider. So I tried removing my com.google.inject.*imports that bring in the @Inject

Map Backed Property problem

2007-05-18 Thread Mulligan, Scott H
I am trying to use a map-backed property but my form values are not getting into the Map. When I debug the code I see the descriptor being returned by PropertyUtils is a MappedPropertyDescriptor, but the mappedWriteMethod is null. The mappedReadMethod looks good though (name=getHostInfo). My

[S2] – No result defined for action ERROR

2007-05-18 Thread shadman
I’m attempting to put a tutorial together that does NOT use Spring. My goal is to compare Spring and Spring MVC with Struts 2 and Guice. The issue I’m having is probably simple, but I can’t seem to find any good non-Spring examples of passing a selection parameter into the Action to retrieve a

Re: [S2] – No result defined for action ERROR

2007-05-18 Thread Dave Newton
--- shadman [EMAIL PROTECTED] wrote: but I can’t seem to find any good non-Spring examples of passing a selection parameter into the Action to retrieve a specific record for display on another JSP. I'm not sure what Spring has to do with this except that the DAO/service would be injected

OOM Error (Java heap space) from 1800+ form elements, am I doing something wrong?

2007-05-18 Thread Forsberg, Mike
A form of approximately 1800 form elements is causing java.lang.OutOfMemoryError: Java heap space. When 1000 form elements are used, no such error. The environment: - JBoss 4.0.5 - Struts 1.1 - A jsp page using struts html:form tags to start and end the form block. Then inside the form, xslt is

Re: OOM Error (Java heap space) from 1800+ form elements, am I doing something wrong?

2007-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike, Forsberg, Mike wrote: A form of approximately 1800 form elements is causing java.lang.OutOfMemoryError: Java heap space. When 1000 form elements are used, no such error. [Am I doing something wrong?] Yes, you are using 1800 form

Re: [S2] – No result defined for action ERROR

2007-05-18 Thread shadman
Dave Newton-4 wrote: --- shadman [EMAIL PROTECTED] wrote: but I can’t seem to find any good non-Spring examples of passing a selection parameter into the Action to retrieve a specific record for display on another JSP. I'm not sure what Spring has to do with this except that the

Re: Populate two fields with one value

2007-05-18 Thread Mansour
Yes, I am going to do this in my action. But out of curiosity, I would like to know how to do this. I tried what you did (in my original post) and didn't work. Ed Griebel wrote: You should probably be doing this in your action class, not your JSP. If it should always be set to acc.firstName,

Map Backed Property problem

2007-05-18 Thread Mulligan, Scott H
I figured out my problem and decided to post the answer in case anyone else runs into it. Apparently, the BeanInfo class looks for a setter method with the same parameter type as the getter method. In my case I was getting a String but setting an Object. Changing the Object parameter to a

Re: Populate two fields with one value

2007-05-18 Thread Laurie Harper
It didn't work because you're saying 'set this hidden field to the value the user hasn't entered yet': s:textfield label=... name=acc.firstName id=fn / s:hidden name=acc.lastName value=${fn} / In other words, what that says is 'set the value of the acc.lastName input to the value

Re: URL question

2007-05-18 Thread Jeromy Evans - Blue Sky Minds
If you mean you want a request to http://www.myapp.com/ to execute input.action, you can: - create an index.html with an http redirect header to index.action; or - setup your webserver or container so that index.action is the default welcome file (rather than index.html, index.jsp etc); or -

Re: [S2] Freemarker vs struts taglibs

2007-05-18 Thread Caine Lai
I have been using Freemarker with Struts 2 for my latest project and I'm loving it. The syntax is a gazillion times (yes, exactly that many) better than JSP in my opinion. As far as differences in the tags, there isn't any. You can do the same thing using the Freemarker Struts tags as you can

Re: [S2] Freemarker vs struts taglibs

2007-05-18 Thread Jeromy Evans
If you're a new user of Struts2 and JSP then I suggest you simply start with JSP as there's far more resources and tutorials available. You only must become aware of Freemarker once you wish to extend the default themes. Within Struts2, by default Freemarker templates are used when rendering