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
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,
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
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
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
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
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
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
--- 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,
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
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
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
--- 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
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
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
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;
...
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
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
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
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
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
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
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
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
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
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
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();
--- 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.
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
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
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
--- 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
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
-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
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
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,
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
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
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
-
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
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
41 matches
Mail list logo