Here we have application using struts and giving priviledges to some users or
some roles. We rely on container security to handle login. We simply put a
link to /jsp/admin which redirects to the / and, in web.xml, we ask for
everything under /jsp/admin to require authentification. This way
You can also change the locale by mapping
org.apache.struts.actions.LocaleAction to locale.do in your struts-config.xml,
using a dynaform.
The user can then switch language using somthing like
locale.do?language=frcountry=bepage=/jsps/myjsptogoto.jsp
country and page are optional arguments.
Hi,
I have compiled struts 1.2.4, because I had obtained an error, I put
traces in the code of struts, re-compiled and when the application loads
in Tomcat I obtain the next error.
2005-04-26 08:47:21,557 ERROR org.apache.struts.action.ActionServlet - The
/WEB-INF/web.xml was not found.
Also, check these out:
https://whirlycache.dev.java.net/
http://www.opensymphony.com/oscache/
Erik
temp temp wrote:
Is it similar to sessions ie each user will have his own cached
Object or all the users share the same
Cached object .
I have a jsp with multiple submit buttons .Each submit
Hi to everyone. I'm trying do develop a jsp page using tabs ( Ditchnet
JSP
tabs taglib). I've followed the example located at
http://209.61.157.8:8080/taglibs/ . It works, but the look and feel is not
the same as the example. In fact, the titles of the tabs appears one under
the other,
Your build is probably not correctly including a
copy of the DTD in the JAR. Struts uses
commons-digester to read the web.xml to learn
the servlet-mapping so that it can properly
expand action paths to resolvable URLs. Digester
allows you to register local copies of DTDs so as
to support
vinod wrote:
Is it possible to create the Action Mapping Definitions dynamically?
If so please help me how to do this.
Thanks in Advance,
Vinod.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
At 5:19 PM +0530 4/26/05, vinod perla wrote:
vinod wrote:
Is it possible to create the Action Mapping Definitions dynamically?
If so please help me how to do this.
To do this, you're really going to have to dig into Struts' code; as
it is now, you can't dynamically add new ActionMappings to the
Hello,
I am trying to create two modules. I am following the docs here:
http://struts.apache.org/userGuide/configuration.html
What I have done, is create both entries in my web.xml file like the example
shows:
servlet
servlet-nameunique/servlet-name
Yes, that is a good advise, thanks Michael!...
...but, what i have to do is a litle more complex. Does anyone know how to
acces the page context form a dataProducer in the cewolf tag library???...
I really need it, i have objects in session, objects needesd to create de
chart, but de interface
AJAX?
-Original Message-
From: Lucas Bern [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 8:39 AM
To: Struts Users Mailing List; Michael Jouravlev
Subject: Re: graphics
Yes, that is a good advise, thanks Michael!...
...but, what i have to do is a litle more complex. Does anyone
oh oh oh!...
AJAX, i have heard about that, but some requirements limit me to use it, i HAVE
to generate the chart on the server side
( would jave been wonderfull!!!, but, clients )
Yu, Ed [EMAIL PROTECTED] wrote:
AJAX?
-Original Message-
From: Lucas Bern [mailto:[EMAIL
You generate your charts on the server end and use AJAX to call a backend
action to access your session objects and stream the chart content back to
your javascript.
-Original Message-
From: Lucas Bern [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 8:51 AM
To: Struts Users
Hi all!
We are using Struts for the view in a intranet application. After
one year of developing the application, we need to improve the way we
do the JSPs, since we put many many scriptlet in the JSPs to check
whenever we should show the attributes, and when these attributes
shoud be
hi
tiles newbie.
am trying to incorporate Tiles to my existing struts project. can
someone please explain to me how the following is supposed to work?
1) have a page with classic 4 tile layout (header, menu, body, footer)
2) on selecting a menuitem, the body and menu tiles change.
if i submit to a
Hi
I have a struts tag like below
logic:equal name=loginForm property=singlesignon
value=0
/logic:equal
I tried to use jstl c:if tag as below
c:if test=${loginForm.singlesignon == '0'}
/c:if
i get error
An error occurred while evaluating custom action
attribute test with value
This looks to be an html issue and not a struts issue. I have a problem
where I have an html:text field on my jsp that will not allow me to set
the size of the displayed input field.
The value that should be displayed is PRM,WS,CORNER,24X48
The value that is displayed is PRM,WS,CORNER,24 with the
I'm not familiar with DynaValidatorForm but what does this give you:
c:if test=${loginForm['singlesignon'] == '0'}
/c:if
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 10:15 AM
To: user@struts.apache.org
Subject: question about jstl tag
From a JavaBeans point of view, the dyna attributes are not attributes
of the DynaValidatorForm, they are entries in a map that is an
attribute of the DynaValidatorForm. So, the following should work:
c:if test=${loginForm.map.singlesignon == '0'} /c:if
-Original Message-
From:
so you're saying that:
input type=text size=50 /
and
input type=text size=100 /
are rendered the same size on your browsers?
-Original Message-
From: Andy Dailey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 10:33 AM
To: user@struts.apache.org
Subject: [OT] html:text field
No. It is the fact that once I up the field length to display the whole
value on the screen, PRM,WS,CORNER,24X48, it only displays
PRM,WS,CORNER,24. and I was mistaken, Firefox displays it correctly.
-Original Message-
From: Abdullah Jibaly [mailto:[EMAIL PROTECTED]
Sent: Tuesday,
has anybody seen http://struts.application-servers.com
waiting for coments...
Lucas
-
250MB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
Abrí tu cuenta aquí
this is probably very simple but someone please tell me.
i've got the tile-defs set up - [name=classicLayout,
page=/mypage.jsp]. i've got the jsps set up. my problem is getting
from the action to the tile-def page.
currently my myAction extends struts.Action
where's the connection ???
thanx in
I'm wondering if anyone has any tips on how to render a pdf with struts. I
want to mask the name of the pdf and just stream it to client.
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Brian:
This is pretty simple. Just get the output stream from the response
object and stream the file down. Return null from the Action's
execute method:
private void returnFile(File f, OutputStream out) throws IOException {
FileInputStream fis = null;
try {
fis
great.. its the return null part i was missing.. thanks.!
-Original Message-
From: Nick Heudecker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 1:47 PM
To: Struts Users Mailing List
Subject: Re: PDF Streamed To Client
Brian:
This is pretty simple. Just get the output stream
hi,
My doFilter method looks like that:
public void doFilter(ServletRequest arg0, ServletResponse arg1,
FilterChain arg2) throws IOException, ServletException {
arg2.doFilter(arg0,arg1);
try{
HibernateSessionFactory.commitTransaction();
looks very interesting, has anyone experience in using it? is it stable?
would save a lo of time for if so...
kr,
guenther
-Original Message-
From: Lucas Bern [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 5:46 PM
To: Struts Users Mailing List
Subject: gui html
has anybody
Hi,
I'm trying to validate an input that doesn't allow a particular string,
just wondering how to construct the validation mask. Say, the input
shouldn't have the string microsoft. I tried [^(microsoft)], or
[^m][^i][^c][^r][^o][^s][^o][^f][^t], neither work. Any help is
appreciated.
thanks,
Thanx
It works,
Ashish
--- Karr, David [EMAIL PROTECTED] wrote:
From a JavaBeans point of view, the dyna
attributes are not attributes
of the DynaValidatorForm, they are entries in a
map that is an
attribute of the DynaValidatorForm. So, the
following should work:
c:if
After some additional research, IE is failing to submit HTTP
parameters. This error doesn't occur with Firefox. Guess I'll have
to keep digging.
On 4/19/05, Michael J. [EMAIL PROTECTED] wrote:
1) You checked that button value does not contain whitespaces? By the
way, cannot action strip
Or use the new DownloadAction - it is in the Struts 1.2.6 beta version,
Details on the wiki
http://wiki.apache.org/struts/StrutsFileDownload
http://svn.apache.org/dist/struts/v1.2.6/
Niall
- Original Message -
From: Nick Heudecker [EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 6:46
I have successfully used the following technique for file download via an
action:
Set the mimetype in the web.xml
Do nothing action always returns 'success' points to tiles def for file to
be downloaded
action-map:
action path=/fileDownloadAction
type=com.foo.action.SuccessAction
thanks jeff. I need something just a bit more scalable cause my app needs to
handle uploads and downloads of n number of pdfs.
But thanks all the same.
-B
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 2:39 PM
To: Struts Users
rmanchu wrote:
this is probably very simple but someone please tell me.
i've got the tile-defs set up - [name=classicLayout,
page=/mypage.jsp]. i've got the jsps set up. my problem is getting
from the action to the tile-def page.
currently my myAction extends struts.Action
where's the
This would be very easy to do via a Struts Plugin. You would need to add
some additional criteria in the key for sorting and other optional tests,
but by the time you finish, you would have practically rewritten
struts-menu.
http://struts-menu.sourceforge.net/
--
James Mitchell
Software
Follow Up: This works but im having a little trouble outputting the content
type appropriately.
-B
-Original Message-
From: Nick Heudecker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 1:47 PM
To: Struts Users Mailing List
Subject: Re: PDF Streamed To Client
Brian:
This is
Nevermind. Dumb question. I got it.
-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 4:01 PM
To: Struts Users Mailing List; Nick Heudecker
Subject: RE: PDF Streamed To Client
Follow Up: This works but im having a little trouble
Here are the other support methods. You can choose the one that works
best for you.
private void setHeaders(HttpServletResponse res, File f, String mimeType) {
res.setContentType(mimeType);
res.addHeader(Content-Disposition, attachment; filename=
+ f.getName());
Hi,
I'm wondering if it's possible to specify multi-level indexed property
validation in Struts validation.xml file. I used indexListProperty
attribute inside field, which works for one level of indexed property.
For multiple nested level indexed properties like
Brian,
While Nick's solution certainly works, it doesn't follow best
practices, MVC in particular (No offense Nick). Technically a view
component such as a Servlet or JSP should be responsible for writing
the response back to the client. The Action is responsible for flow
control and
Dave Newton wrote:
In the struts configuration file. Instead of using a path to the JSP you
use the name of the tile. You must also be using the Tiles plugin, as
detailed in:
i had defined it as that. and the error i get is below. menuAction is
the name of tile definition
Error :: Path
Hi all,
I currently wants to use some external APIs provided
by a jar file withing the Action Object in struts
framework. Can we configure web.xml or
struts-config.xml to use the jar? If so, do you know
how?
Thanks very much for your advice,
Thong Bui
Drop in WEB-INF\lib and refer needed classes in import?
On 4/26/05, T. B. [EMAIL PROTECTED] wrote:
Hi all,
I currently wants to use some external APIs provided
by a jar file withing the Action Object in struts
framework. Can we configure web.xml or
struts-config.xml to use the jar? If
Scott,
From what you have included, your understanding of struts seems incorrect.
The /*.do Struts mappings only work with Actions, not forwards. The
forwards are used internally by your actions (which return ActionForwards)
and cannot be seen over the web as a direct url. So, to reach
Now doesn't Struts Layout seem like the presentation layer of JSF?
Just an opinion.
Regards,
David
-Original Message-
From: Günther Wieser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 1:57 PM
To: 'Struts Users Mailing List'
Subject: RE: gui html
looks very interesting, has
I'm dragging this over to the user list from a Bugzilla ticket:
http://issues.apache.org/bugzilla/show_bug.cgi?id=34612
in which Ivan wrote (in part):
in my form in the reset() I set the checkbox to on.
If the user turns it off, I'd expect that despite my reset's actions, a
From: Ivan Jouikov [EMAIL PROTECTED]
What is that you talking about not allowing direct access to JSP? Can
you be more clear please?
Just that every request must go through a Struts Action, there are no URLs
that end in .jsp. This gives you the chance to do whatever setup you need
to do (such
Hi, how do I create layout tile hierarchies so that one layout extends
another and contributes additional content to it? What I'd like to have
is a base layout which contains markup common to every page, and then
'child' layouts that extned the base layout and add section-specific
additional
vinod wrote:
Thankyou very much Mr.Joe Germuska u've given enough information for me.
regards
vinod
On 4/26/05, Joe Germuska [EMAIL PROTECTED] wrote:
At 5:19 PM +0530 4/26/05, vinod perla wrote:
vinod wrote:
Is it possible to create the Action Mapping Definitions dynamically?
If so please
50 matches
Mail list logo