2008/2/11, Frank W. Zammetti [EMAIL PROTECTED]:
Marc, what aren't you happy about with the frame-based design? I've
done a lot of that over the years and, once you learn to avoid the
pitfalls, it's worked out great. I admit that in recent years I've
leaned towards iFrames when frames were
2008/2/11, Laurie Harper [EMAIL PROTECTED]:
Antonio Petrelli wrote:
2008/2/11, Marc Eckart [EMAIL PROTECTED]:
But we are not so happy with this frame aproaches in general. But we
don't
know how to integrate the different (indepentend) applications
transparent
to the users without
2008/2/12, Alvaro Ernesto Gomez Cerna [EMAIL PROTECTED]:
Bueno leo un poco de ingles pero prefiero mejor el español, pero te aviso como
voy en los avances asi que me ayudes a solucionar algunos travas que pueda el
tener.
Ti parlo in italiano, tanto tra italiani e persone di lingua spagnola
ci
2008/2/12, Asad Habib [EMAIL PROTECTED]:
Hello. I have the following definitions in place in my tiles-def.xml file:
...
There are several layers of nested tiles. I am having trouble using
this. Are there any examples of nesting that is several layers deep
online? Thank you.
I have to say
// For future i18n purpose
private String translate(String name) {
String i18Name = LocalizedTextUtil.findDefaultText(name, locale);
if (i18Name == null) {
i18Name = name;
}
return i18Name;
}
Grish escribió:
I'm
Tiles 2 has got a new home:
http://tiles.apache.org/
Please post Tiles 2 related questions to the Tiles Users mailing list:
http://tiles.apache.org/mail.html
Antonio
2008/2/11, Allen, Daniel [EMAIL PROTECTED]:
Hi.
I'm completely new at Struts and Tiles, but was given the task of
converting
hi
i have eclipse in that iam developing a web apllication,now i want to
develop the same using struts ,can it be done using the same eclipse,or else
i have to go for another one,pls help me out from this problem
tell me how can i develop struts application using ecllipse.
thanx
Thanks for the suggestion! I tried integrating it to my code but the problem
is findDefaultText always returns null. I traced the name and the locale
that I am passing and they are correct.
my package_en_US.properties is in my org.test.app.action package. My
interceptor is in the
Hello Antonio. Are you saying that multiple level nesting is not
possible with Struts Tiles? Cedric has demonstrated single level
nesting in one of his articles so I was hoping that it would be.
Anyway, I appreciate your feedback. If anyone has done this with
Struts Tiles, I would appreciate your
2008/2/12, Asad Habib [EMAIL PROTECTED]:
Hello Antonio. Are you saying that multiple level nesting is not
possible with Struts Tiles?
Yes it is possible: as long as you are able to do single-level nesting, you
can nest at all levels.
What I meant is that it is difficult since you have to
As far as I can tell, yes it can be done in the same Eclipse. If you
already have a
web application development setup using Eclipse then the only thing you
would require
to be able to use Struts in your application is just to drop the
relevant jars in e.g.
struts2 core, plugins etc and
U can use the same eclipse.
Simply create one project in your eclipse by selecting Struts project
and you can proceed.
-Original Message-
From: mohammed hussain [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 12, 2008 2:42 PM
To: Struts Users Mailing List
Subject: Need a Help
hi
i
Hello Antonio. Do you have access to any examples that I could look at? Thanks.
- Asad
On Feb 12, 2008 4:27 AM, Antonio Petrelli [EMAIL PROTECTED] wrote:
2008/2/12, Asad Habib [EMAIL PROTECTED]:
Hello Antonio. Are you saying that multiple level nesting is not
possible with Struts Tiles?
hi Giovanni Azua
thanx for ur response
can u tell me how can i add that plugin and jar
in myeclipse
thanx
On Feb 12, 2008 2:58 PM, Giovanni Azua [EMAIL PROTECTED] wrote:
As far as I can tell, yes it can be done in the same Eclipse. If you
hi Shailendra Kumar Gupta
In my eclipse struts project is not there,can u tell where i can find that
.
thanx
On Feb 12, 2008 3:00 PM, Shailendra Kumar Gupta [EMAIL PROTECTED]
wrote:
U can use the same eclipse.
Simply create one project in your eclipse by selecting Struts project
and you
2008/2/12, Asad Habib [EMAIL PROTECTED]:
Hello Antonio. Do you have access to any examples that I could look at?
Thanks.
The example is in the code that you posted :-)
.mainContentLayout contains .middleContentLayout.
.externalMainLayour contains .mainContentLayout.
definition
First get the struts plugin and copy it to your eclipse plugin folder
and you will get it.
-Original Message-
From: mohammed hussain [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 12, 2008 3:05 PM
To: Struts Users Mailing List
Subject: Re: Need a Help
hi Shailendra Kumar Gupta
In
I have read this discussion and I would like to know whether there is a
struts 2 way of doing the same that with ajax-tags-1.3 ajax:updateField tag.
http://ajaxtags.sourceforge.net/usage.html
Note: I have a selector and when I select one item I would like to set
the value for 2 input text.
Hello all,
I am working on the appfuse generated basic struts 2 project. It uses acegi
as a security framework for authentication and authorization. How can i
access the logged in user from the action?
To show the logged in user in the header.jsp page i used a jstl tag provided
by acegi as:
Hello all,
I just started working on struts 2 and stuck in a problem.
I have a page that consists of a select element and a submit button:
s:form name=conceptSelection action=sequenceSelection method=post
lis:select label=Select Concept name=concept list=banners
listKey=id
Hello, I'm getting some errors when using checkboxlist in situations
where the name attribute or listKey and listValue are null values.
The actual template doesn't tests for null values.
If you do not use the name parameter this error occurs: Expression
parameters.name is undefine
If the name
Great. Thanks!
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 12, 2008 5:14 PM
To: Struts Users Mailing List
Subject: RE: Source for Struts Tiles Plugin?
--- Allen, Daniel [EMAIL PROTECTED] wrote:
I downloaded this source code, but it's just the
--- Dave Newton [EMAIL PROTECTED] wrote:
--- Allen, Daniel [EMAIL PROTECTED] wrote:
I downloaded this source code, but it's just the main Struts core, as
far as I can tell. That's been helpful, but there are still gaps where
control is passed to the Struts Tiles plug-in.
--- Allen, Daniel [EMAIL PROTECTED] wrote:
I downloaded this source code, but it's just the main Struts core, as
far as I can tell. That's been helpful, but there are still gaps where
control is passed to the Struts Tiles plug-in.
Dave:
I downloaded this source code, but it's just the main Struts core, as
far as I can tell. That's been helpful, but there are still gaps where
control is passed to the Struts Tiles plug-in.
Does anyone know where the source for the plug-in is?
I've hit a total dead-end on the Apache
Actually, after all that, it turned out to be a stupid typo: my
context-param for DEFINITION_CONFIG pointed to tiles-def.xml and the
file was titlted tiles-defs.xml...
Thanks for the source link, though. That will no doubt continue to help.
~Dan Allen
-Original Message-
From: Lukasz
hello all
anyway i got the answer but dunno whether or not it is appropriate
i wrapped the jsp snippet to hide it if the user is not logged in as
authz:authorize ifNotGranted=ROLE_ANONYMOUS
div style=float: left; width: 100%; text-align: right;Welcome
authz:authentication
Hi,
By default, Tiles2 use tiles.xml, you can add additional config files
via DEFINITIONS_CONFIG -
http://tiles.apache.org/config-reference.html
Please check also DTD for tiles.xml, it was changed.
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
See http://struts.apache.org/dev/builds.html; releases are under
/tags/STRUTS_2_n_n.
Source distros are also available, see http://struts.apache.org/download.cgi
and follow the archive link http://archive.apache.org/dist/struts/. I believe
there is a S2.0.9 source distro there.
Dave
--- Allen,
PS: I'm looking for v2.0.9 specifically, if that makes any difference.
-Original Message-
From: Allen, Daniel
Sent: Tuesday, February 12, 2008 2:44 PM
To: Struts Users Mailing List
Subject: Source for Struts Tiles Plugin?
Hi. I'm trying to move a web app from Struts1/Tiles1 to
Hi. I'm trying to move a web app from Struts1/Tiles1 to Struts2/Tiles2.
Unsurprisingly, quite a few things are going wrong.
In particular, I have a tiles-def.xml file in WEB-INF/classes, and it's
not being picked up, or at least not being read properly. I was able to
trace through the definitions
Recently I have upgraded from Struts 1.1 to Struts 1.3.8. I get the
following exception during server-startup.( when I run Resin 3.1.3 -with out
internet access).
My Server starts successfully without any Struts issues if I've internet
access.
I checked for all the DTDs/XSDs TLD files which
thanks for reply,
I have not implemented any Authentication and Authorization. I want to do it
manually using struts2 tags
Wes Wannemacher wrote:
How are you performing the Authentication and Authorization? If you
are using container managed security, this will be done automagically.
As
I use maven + struts + eclipse + tomcat as my primary dev environment.
After having maven create the archetype, you should also go into the
project directory and do 'mvn eclipse:eclipse -Dwtpversion=1.5' This
will create .project and a few other files that will help eclipse do
what it needs to do.
How are you performing the Authentication and Authorization? If you
are using container managed security, this will be done automagically.
As an example, here are the docs for setting this up in Tomcat 5.5.x
-
http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html
-Wes
On 2/12/08, Dravid
I have 3 selects that I'd like to chain together using a similar
construct as the s:doubleselect / tag. Is this possible if not, what
can/should I use?
-Ryan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 01, 2008 3:18 PM
To: Struts Users
I think it all comes down to whether the different application/jsp's
are in the same domain. If they are, then iFrames might do the trick
nicely. Note that even if they are different subdomains, you can still
do cross-frame scripting, it just requires some playing around with the
Don't recall off-hand; IIRC there's a request wrapper that has a getRequest()
method that I thought returned the underlying request, but I could be
off-target on that one.
Personally I still think exposing the request via the action is a better way
of doing it, if this is the way you're going to
Ugh. Thanks for the info, but now there's another problem. I'm using
Tiles 2, and apparently it's manipulating the request url. When I do
this, I'm getting back the url to the Tiles template I'm using to render
the page, not the originally requested url Any ideas on how to get
around
The application works when I make a war and deploy it in tomcat but
not when I try to run tomcat from eclipse directly. It's obvious that
the problem has something to do with eclipse, so you're right, this
probably isn't the forum for it.
But i'm still wondering if people still use the Eclipse +
--- Dave Newton [EMAIL PROTECTED] wrote:
s:property
value=#context.get('com.opensymphony.xwork2.dispatcher.HttpServletRequest').getRequestURL()/
Too much cut, not enough paste:
s:property
value=#context.get(@[EMAIL PROTECTED]).getRequestURL()/
Dave
Ya know, this triggers a question of my own:
I have apps that use *tons* of iframes, and there *are* some drawbacks:
1. Without some sort of onload() built-in to every page, there's no
way of knowing if the frame has loaded when you update its .src
attribute. With an AJAX filled div, you'd
--- Jneto [EMAIL PROTECTED] wrote:
I work with struts 1 and I get paramters this way :
String v_name = request.getParameter(name);
How do I do with struts 2 in my Action attached?
public setName(String name) {
v_name = name;
}
then access via v_name or a getName() method.
There are a
Hi,
After a successful login I don't want to redirect the user to a hardcodes
page, but I want the user to be redirected where he wanted to go. E.g. if a
user clicks on 'sell' he will be forced to log in and after login the
sell-page should be shown. If he clicks on buy the buy-page should be
--- Gaurav Arora [EMAIL PROTECTED] wrote:
Tried to put a namespace=/ attribute in package tag, that didn't
work. Where do I find the config-browser plugin?
It's a standard S2 plugin shipped with the distro.
Yeah, I get an error when I access
http://localhost:8080/application/index.action.
--- Tommy Becker [EMAIL PROTECTED] wrote:
Unfortunately it is. I'm creating a url to another site using s:url
and passing the current url as a parameter. I suppose I don't *have* to
use s:url Is it not possible?
The S2 OGNL docs say there's access to the request *context*, which means the
Why would yo advise not to use ajaxtags?? Is it incompatible with dojo?
Thanks.
Musachy Barroso escribió:
sorry to be late to this discussion. Dave and Jeromy are right on the
spot. I would advise not to use ajaxtags project and go with what
Struts 2 provides, or use YUI which will play nicely
Hi
All
I need a help about the ActionContext
ActionContext context = ActionContext.getContext();
I work with struts 1 and I get paramters this way :
String v_name = request.getParameter(name);
How do I do with struts 2 in my attached Action ?
Thanks
//=My
Prashant Khanal wrote:
To get the logged in user from the action i used :
SecurityContext ctx = SecurityContextHolder.getContext();
if (ctx != null) {
Authentication auth = ctx.getAuthentication();
User loggedInUser = (User) auth.getPrincipal();
}
Tried to put a namespace=/ attribute in package tag, that didn't
work. Where do I find the config-browser plugin?
Yeah, I get an error when I access
http://localhost:8080/application/index.action. The struts.xml file is
in the classes directory.
As for the eclipse build, I changed the default
--- Gaurav Arora [EMAIL PROTECTED] wrote:
struts
package name=default extends=struts-default
action name=index class=com.codercorp.IndexAction
result/jsp/index.jsp/result
/action
action name=helloWorld
Set package namespace to /
package name=default extends=struts-default namespace=/
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Thanks for clarification!
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I created a new struts project using the maven archetype and then
imported it into eclipse. However when I try to run this project on
tomcat (through eclipse) i keep getting the following error :
Feb 12, 2008 9:15:00 PM org.apache.struts2.dispatcher.Dispatcher serviceAction
SEVERE: Could not find
Unfortunately it is. I'm creating a url to another site using s:url
and passing the current url as a parameter. I suppose I don't *have* to
use s:url Is it not possible?
/*
*/ http://www.motricity.com
Randy Burgess wrote:
If the value is not going into a struts tag then just use JSTL.
2008/2/12, Lukasz Lenart [EMAIL PROTECTED]:
when you using Struts 2.0.9 - tiles version is 2.0.4. I think the pom
for struts-tiles-plugin should contain such dependency, it looks like
a bug (or maybe I'm wrong)?
It *was* a bug and it is fixed in Struts 2.1.x
Antonio
Hi,
I've probably found the problem, struts-tiles-plugin doesn't depend
on tiles-jsp. You have to manually added it your pom.xml, like below:
dependency
groupIdorg.apache.tiles/groupId
artifactIdtiles-jsp/artifactId
version2.0.4/version
Antonio Petrelli wrote:
Frank, you might love this article :-)
http://thedailywtf.com/Articles/I-am-right-and-the-entire-Industry-is-wrong.aspx
Hehe :)
It's a good example of the typical taking an idea too far. The world
seems to be divided into the people that say frames are evil and
Your actions must extends ActionSupport (or implements LocaleProvider). Than
you must to implement this method:
public Locale getLocale() {
return [user logged locale];
}
Jim Young wrote:
Can anybody tell us how to change the locale from an
If the value is not going into a struts tag then just use JSTL.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
From: Tommy Becker [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
Date: Tue, 12 Feb 2008 10:31:09 -0500
To: Struts Users
Is there a way to get the URL for the current page using struts tags? I
thought I had access to the HttpRequest, and therefore could just use
getRequestURL() but it appears the docs have led me astray :/
http://www.motricity.com
NOTICE: This e-mail message is for the sole use of the intended
Hi Everyone,
Can any one suggest a way to change the Browes button to some thing called
Attach button using Struts2 tag.
I am using follwoing Struts2 tag which is generating the Browes button but
requirment is to have Attach button
s:file id=reference key=reference size=30
I am new to Struts 2 and if anyone can help me out I would greatly appreciate
it.
I am populating a select box with a list of job titles. After posting the
form I want to the list to remember the previous selection. (Ridiculously
simple stuff right?) But, I am missing something because after
Hi Frank,
thank you and all others for your answers ;-)
We have a similar aproach like you described. We have an application which
acts as a portal. This application has two frames - one top frame for the
navigation and another frame for hosting the embbeded (independet)
application.
One of this
Nevermind. I managed to find a working solution without creating
dymamic Result objects.
So in the interceptor code:
public String intercept(ActionInvocation invocation) throws Exception
{
ActionContext context = invocation.getInvocationContext();
Map session =
Is there any complete Howto or Tutorial right now on this issue?
Should be really of interest ...
Thank you,
Basti
Jeromy Evans - Blue Sky Minds wrote:
Varun Narang wrote:
Hello all,
I want to get started with the customzied tag writing for Struts2.
I was able to find out ftl files for
Yes I need. Because in the S2 configuration file I have to specify all
the parameters of the query string one by one.
In my app, I don't know the name and number of these parameters. So I
am building a Servlet Redirect Action Result in an interceptor like
this:
public String
Hi,
I am trying to use an action that returns directly instances of the
Result class, due to the nature of my application where the result is
dynamically decided by some logic.
My action class method is:
public Result doLogin() throws Exception
{
// etc...
if ( !validUser )
sorry for disturing u gupta,can u give me the link of struts plugin for
eclipse.
thanx
muzaffar
On Feb 12, 2008 3:26 PM, Shailendra Kumar Gupta [EMAIL PROTECTED]
wrote:
First get the struts plugin and copy it to your eclipse plugin folder
and you will get it.
-Original Message-
Are you sure you need to do it like this? You can use OGNL expressions in
your S2 configuration file to do things like set a URL to redirect to etc.
Dave
--- Filipe David Manana [EMAIL PROTECTED] wrote:
Hi,
I am trying to use an action that returns directly instances of the
Result class,
Hi
name=concept means the struts Action will call the setConcept()
method with the selected value as parameter. You want to add an
instance variable named conecept in your Action class. Add getters and
setters as well.
Regards
--
Markus Stauffer
On Wed, Feb 13, 2008 at 5:31 AM, Prashant Khanal
71 matches
Mail list logo