Handling requests through servlets vs struts action class ?

2007-05-18 Thread jasdeep
Hi All, I am developing a web application which is going to receive and send millions of sms's . I am using Kannel (www.kannel.org) as my SMS gateway server. Now kannel server recognizes each sms and i have configured it to send recived SMS to my web application . Firstly was using the struts act

dbase

2007-05-18 Thread jalal udeen
hi i have to design a query analyser that any query given i have to display that table how can i do that and how can i display the table in jsp thanks j

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

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 u

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: 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': In other words, what that says is 'set the value of the acc.lastName input to the value acc.firstName has when the form is rendered'. The value submitted for acc.lastName would therefo

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 String

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,

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 excep

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 el

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 tags to start and end the form block. Then inside the form, xslt is used to

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 injec

[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 sp

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 b

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(); Http

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 Olivi

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 ac

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

[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. _

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

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" %> -- View this message in conte

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 templating

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: 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: On 5/18/07, Mansour <[EMAIL PROTECTED]> wrote: how to populate 2 fields in my action with one value ? for example I need to populate th

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 P

[s2]checkboxlist problem

2007-05-18 Thread climbingrose
Hi there, I'm having problem with checkboxlist in Struts 2. Here is my jsp fragment: Now "attributes" is a list of Attribute objects. Attribute class look like: class Attribute { private Integer id; private String name; ... (getters & setters) } The "test" property is a list of String an

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 exa

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 ou

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

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 t

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 wr

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 "Operation

[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: [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 5/

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: Search Account -- Guillaume Carré ---

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: Search Account I tried this. This is not working. Thanks - To uns

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 S

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" To Struts Users Mailing List cc Subject Re: AJAX query When you say your "updating it using AJAX", do you mean you are making an AJAX r