*in the struts-default.properties file,the struts.serve.static is set true;
*
*why the icons still couldnot be displayed?*
*What should i do?Any other suggestions?*
2007/8/21, Jeromy Evans [EMAIL PROTECTED]:
The resources are in the 2.0.9 jar under /org/apache/struts2/static
They are served
Please help me.
Action class code
/*
* AbstractUserRecordsAction.java
*
* Created on August 20, 2007, 6:04 PM
*/
package struts.action;
import hibernate.pojo.AbstractDetailsPojo;
import hibernate.pojo.AbstractLoginPojo;
import hibernate.pojo.AbstractUserInfoPojo;
import
Thank you very much Zarar and Alvaro for your hints.
Yes. I'm using spring, and I'll take a look at Acegi, and maybe
Berkano, too.
Best regards.
--
Robi.
I'll take a look at the
Alvaro Sanchez-Mariscal wrote:
I agree. You should first try Acegi.
If your auth needs are very specific, you
Hello Experts,
I want to call an Action within the Action result and I am trying following
Struts XML.
action name=Action1 class=MyCalss
result/Action2.action/result
/action
But its not working.
How can I fulfill this requirement..?
I am really looking forward to get any solution as
Add the result type :
action name=action1 class=MyCalss
result type=redirectActionaction2/result
/action
action name=action2 class=MyCalss2
...
/action
(redirect-action if you are in version before 2.0.9)
Sawan [EMAIL PROTECTED]
21/08/2007 08:50
Veuillez répondre à
Struts Users
The problem is cause by the apache httpserver.
I integrate Tomcat and Apache server together,When i just use
Tomcat as the server,it works.I have checked Apache's configure
file and found that all gifs and pngs are routed for apache to handle. I
comment these commands,then it works again.
But that
Hello all,
I am using struts 2 to develop a web-application. I'm having problem when I
submit a form having any Swedish character (like ö, å or ä) in a testbox, it
becomes '?' in the action class. In the begining of the jsp file, I have the
code below:
!DOCTYPE html
PUBLIC -//W3C//DTD
hello,
i want to use confirm dialog box in my application, but i faces some
problem.
so please let me know how i can do my work
s:url action=
s:param name=Bucket value=%{Bucket} /
/s:url onclick=confirm('sure to delete') Delete
i have done this , it will show confimdialog box and if
hello,
i want to use confirm dialog box in my application, but i faces some
problem.
so please let me know how i can do my work
s:url action=
s:param name=Bucket value=%{Bucket} /
/s:url onclick=confirm('sure to delete') Delete
i have done this , it will show confimdialog box and
What you accidentally did is one of the performance improvement
recommendations on the wiki:
http://struts.apache.org/2.x/docs/performance-tuning.html
Apache is faster than the FilterDispatcher at serving the static files.
They're included in the jar for deployment convenience.
If you extract the
Hello,
I want to implement Delete functionality in my Struts web application with
confirmation dialog box and did not find any solution for this yet. Please
suggest me for any solution.
Thanks
sawan
--
View this message in context:
s:hidden name=bucket/
s:a href=javascript:delete('${Bucket}');Delete/a
script
function delete(id) {
if(confirm('sure ?')) {
document.forms[0].bucket.value = id;
document.forms[0].action =
deletebucketaction.action;
Did u try
*request.getUserPrincipal().getName();*
On 8/20/07, balak31 [EMAIL PROTECTED] wrote:
Hi ,
I am newbie to Struts2. I have the following issue while configuring the
container managed security in Struts2 with Websphere Application Server
6.1.
..Need urgent assistance Please...
Hi,
I have a JSP which has a drop down selection box which I populate using an
arraylist of string objects present in the formbean. How do I get this
arraylist of string objects back into the formbean when an action is submitted?
Regards,
John.
CAUTION - Disclaimer
yeah,but it doesn't hurt much if we develop in a LAN.
just leave the tomcat to do those jobs(use only tomcat as a server or
configure the apache to tell
Apache server to route these jobs to Tomcat) during the development-time ,
we could only use these extracted files when deploy application to
Hi Folks,
I am using Struts 2.0.6 to create a web application on the
Spring/Hibernate stack. Validations in my application are done with
xwork 2.0.1 validators and I have a query in this regard which I hope
one of you can help me out with.
Domain objects in my application are created in 3
Hi Musachy,
Is the issue with tabbedpanel (default tab requested twice) resolved
in the latest version?
Also, where can I find a roadmap for version 2.1?
Thanks in advance.
Alvaro.
On 8/21/07, Musachy Barroso [EMAIL PROTECTED] wrote:
The ajax tags are just becoming stable using Dojo 0.4.2,
Hello all,
is there anyone who can give me some light on this problem? I need this very
urgently. Hope you'll be kind enough to response quickly.
~ Arif
Md. Ariful Islam [EMAIL PROTECTED] wrote: Hello all,
I am using struts 2 to develop a web-application. I'm having problem when I
submit
Is there a workaround in order for this to work ?
s:tree theme=ajax
rootNode=%{groupTreeModel}
childCollectionProperty=children
nodeIdProperty=id
nodeTitleProperty=name
I don't remember having any similar problems with the Finnish locale which
is nearly the same as the Swedish one. The cause of the problem is probably
that the parameters are in wrong encoding (UTF-8 most probably). Since you
are using ISO-8859-1, check that the browser in the form page is
Hi
Try this. Create a directory template/ajax in your application and copy
the file tree.ftl from this page
https://issues.apache.org/struts/browse/WW-1813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
You can search for this string
I did download the tree.ftl file from the file attachement but still doesn't
work. The link you gave me is not an actual file but a diff file which I
don't know how to use it. :(
Manu Mahajan-2 wrote:
Hi
Try this. Create a directory template/ajax in your application and copy
the file
Hi,
I have an application that gathers rates from the user. There are up on 500
rates to collect. These rates will be inputed into text fields all on one
jsp page.
Is it possible to create a collection of input text fields similar to the
html:multibox that will gather the rates entered into the
It worked !!! Thanks, Toni, thanks a lot.
It was the locale, as I'm using an us_EN machine.
Toni Lyytikäinen [EMAIL PROTECTED] wrote: I don't remember having any similar
problems with the Finnish locale which
is nearly the same as the Swedish one. The cause of the problem is probably
that
Sorry about the link that came in because I copy pasted text from the
web page and thunderbird copied the hyperlink as well. Please ignore the
link. I assume you have got the correct tree.ftl file.
Please note that the parameter passed to the javascript callback
function will not be the
No problem. I took the latest version from svn (it had the description with
the topic notification fixed) and still doesn't fire any event because I
tested it with an alert function. I also created the path /template/ajax and
put the tree.ftl file in there. What's wrong with it ?
Manu Mahajan-2
Hello all,
I am quite beginner and need some help with the flow of my application.
When a user click on the Back Button from a specific page, the last request
is called again,
How can I avoid this behaviour ?
See below for the concrete situation where this is a problem for me :
I have a first
Thanks mleneveut,
Its working for simple action calling, But I have a request variable in my
URL and if I simply redirect to the specified action then I lost the
variable.
E.G..
I have following URL
http://localhost:8080/Action1.action?Argument=Sawan
Now if simply call the action then I
This is the link to the file that I used
http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/resources/template/ajax/tree.ftl?view=markuppathrev=528866
All I did was
1. added this file to a template/ajax folder in my app
2. modified the function treeNodeSelected in
I just found out this wonderful attribute redirect in the forward element
!
Thank you all.
debussy007 wrote:
Hello all,
I am quite beginner and need some help with the flow of my application.
When a user click on the Back Button from a specific page, the last
request is called
Following JSP scriplet is working fine
jsp:useBean id=costDistForm class=CostDistForm scope=session/
%
float totalPaymentAmount = 0.0f;
List compItems = null;
compItems = costDistForm.getCompleteItems();
Iterator it = compItems.iterator();
while (it.hasNext())
{
ItemCostRowForm row =
action name=action1 class=MyCalss
result type=redirectAction
param name=actionNameaction2/param
param name=argument${myVarContainingTheValue}/param
param name=argument2stringHardCoded/param
/result
/action
Sawan [EMAIL PROTECTED]
I think it is fixed on trunk(future 2.1), you could download an
snapshot and give it a try.
musachy
On 8/21/07, Alvaro Sanchez-Mariscal [EMAIL PROTECTED] wrote:
Hi Musachy,
Is the issue with tabbedpanel (default tab requested twice) resolved
in the latest version?
Also, where can I find a
Hi.
I have been trying to use Sitegraph for quite sometime now with no
luck. I there any application with demonstrates its use.
I tried the Action given below. It generates an image but only the
JSP's and the Actions there are no links between them..
The other problem I had was that
I'm using an autocompleter w/o ajax:
s:autocompleter name=stay.teacher.countryName theme=simple
list={'España','Portugal','Francia','Alemania','Holanda','Estados
Unidos'}
dropdownHeight=200 value=%{stay.teacher.countryName} /
The HTML generated is:
select
Hello,
I'm facing difficulties with freemarker tags, when I try to include one
inside the other.
the JSP :
[EMAIL PROTECTED] prefix=s uri=/struts-tags %
[EMAIL PROTECTED] uri=/WEB-INF/tag_test.tld prefix=test %
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
Hi,
I'm facing the same problems as:
http://www.nabble.com/Refreshing-div-after-a-session-timeout-tf3918532.html#a1127
http://www.nabble.com/-S2inner-div%2C-session-timeout-and-login-page-tf2930534.html#a8193302
John,
The problem is not very clear from your email . Are you losing the dropdown
items when the JSP reloads after submit ?
The list of items in the dropdown must reside in a separate bean, and the
item you select from it should be in another bean attribute -- i'm assuming
you've taken care of
I have several struts-config-xml files .I mapped them in my web.xml.
Each struts-config has its own application-resources.
Action servlet mapping in web.xml
servlet
servlet-nameaction/servlet-name
I'm using Struts 1.3.9, with Tiles. I've one action that calls to a
definition
struts-config.xml
action path=/customer/verGraphPortfolio
forward=verGraphPortfolio.pantalla/
riles-def..xml
definition name= verGraphPortfolio.pantalla
Why are you using modules? You could just have one module with multiple
configuration files.
On 8/20/07, temp temp [EMAIL PROTECTED] wrote:
My application has several modules (several struts-config files
)and each module has its own application.resources files.
How to handle
I am not aware of anything like that. But it sounds like a good enhancement
request in JIRA :)
On 8/21/07, nfuser [EMAIL PROTECTED] wrote:
Hi,
I have an application that gathers rates from the user. There are up on
500
rates to collect. These rates will be inputed into text fields all on
I see you are not using modules. That's good. Your problem is caused by not
providing different aliases for the 3 MessageResources. Use the name
attribute to fix this. One is the default, the other should have names.
On 8/21/07, temp temp [EMAIL PROTECTED] wrote:
I have several
I don't understand why you haven't provided a path attribute on the
definition. Definitions need to resolve to a resource. I don't see a JSP
listed.
On 8/21/07, Jose Luis Martinez Avial [EMAIL PROTECTED]
wrote:
I'm using Struts 1.3.9, with Tiles. I've one action that calls to a
definition
Please, this problem is making me crazy, I really need to solve this problem.
Please HELP !!
I´ve tryied a lot of things and nothing works..
Thanks.
rrecoba wrote:
Hi, I need to set an initial value and key for an autocompleter. How can
id do this? I can set the initial value, but can´t
The question is that I don't need to forward to a JSP. The controller
takes the HttpServletResponse and writes in it, and that is the response
to the user. Before that I put the image as an attribute in the request,
and in a JSP template I recovered it form the request, and wrote it, but
the
I'll have to investigate this.
On 8/21/07, Jose Luis Martinez Avial [EMAIL PROTECTED]
wrote:
The question is that I don't need to forward to a JSP. The controller
takes the HttpServletResponse and writes in it, and that is the response
to the user. Before that I put the image as an attribute
I've tried to modify the execute method of TilesPreProcessor from
...
if(uri == null)
{
log.debug(no uri computed, so pass to next command);
return false;
}
if(controller != null)
{
log.trace(Execute controller: +
Resending...
On 8/20/07, j alex [EMAIL PROTECTED] wrote:
Hi,
Just checking one more time if someone has an answer to my below email. We
decided to go with XML validation, and as i understand it, we cannot have
validation files based on action methods, but can only name it by action
alias.
I was having the same problem. What I did ? Autocompleter ? NO THANKS. i used
DWR.
Herrera
rrecoba wrote:
Please, this problem is making me crazy, I really need to solve this
problem. Please HELP !!
I´ve tryied a lot of things and nothing works..
Thanks.
rrecoba wrote:
Hi, I
I have the following interface that I'm trying to read variables from:
public interface ServletMappingConstants
{
String SECURE_PREFIX = secure/;
String STATIC = static;
...
}
If my Action implements this interface, I can refer to these strings with
the OGNL expression @[EMAIL PROTECTED].
try :
@[EMAIL PROTECTED]
musachy
On 8/21/07, mraible [EMAIL PROTECTED] wrote:
I have the following interface that I'm trying to read variables from:
public interface ServletMappingConstants
{
String SECURE_PREFIX = secure/;
String STATIC = static;
...
}
If my Action implements
This works if I use the fully-qualified class name for
ServletMappingConstants. In the framework's current EL, it's possible to do
MAPPING.STATIC, so I'm trying to create a similar short syntax with Struts 2
for easier migration.
Thanks,
Matt
Musachy Barroso wrote:
try :
@[EMAIL
Namespaces don't seem to work when my filter-mapping has a path like the
following:
filter-mapping
filter-namestruts/filter-name
url-pattern/struts/*/url-pattern
/filter-mapping
However, they seem to work fine when my url-pattern is /* or *.action. Is
this a known issue?
I didn't know about it, but kind of expected it, as struts is used
to map to the resources inside the jar file, so is probably getting
confused and building wrong paths. (should be fixable anyway :) )
musachy
On 8/21/07, mraible [EMAIL PROTECTED] wrote:
Namespaces don't seem to work when my
The path doesn't seem to matter - if I use /foo/*, I get the same issue. It
seems to be related to struts.enable.SlashesInActionNames since I have to
set it to false in order to get /foo/action.action to work.
Matt
Musachy Barroso wrote:
I didn't know about it, but kind of expected it, as
56 matches
Mail list logo