Thanks. I have found out that unless you switch from one module to another
explicitly using say SwitchAction, the configurations like action mappings,
formbeans etc will not be available to you. So if the jsp is using some
tags, and other information thats dependent on these configurations, I
hello
i am searching for a good struts practise, open source, pattern or ready to
start tool to implement a dynamic menu in my website!
At the moment I am catching the relevant data from a database with attributes
like nodeId, name, parentId, contentList with Help from Data Object
Beans and
You could always write a Java applet that inspects the machine in some
way and launches the correct page in the browser. I assume that, in this
case the machines don't get moved much, so a simple configuration file
could be used to indicate the correct location.
Unfashionable as they are,
On Feb 11, 2005, at 10:29, Duncan Mills wrote:
Unfashionable as they are, applets do have their uses.
Perhaps. But this is really something which good, old DNS can easily
solve. There is a plethora of more or less obsolete record types
dealing with identity and location: GPOS, HINFO, LOC, TXT,
Hello, all!
Can anybody please tell why I can't get html:text tag to display a
message resource as its value so that text field appear on a page with
already internalized string?
html:text property=rcpt value=bean:message key='admin.msg.rcpt'/ /
The problem is that the string bean:message
Hi,
is it possible to validate formBeans that contain hashMaps, and if so, how?
The application im am working on requires an object, that has a variable
number of attributes. Thus, I would be loading the object with its
attributeset, create a DTO and then pass it to the my JSP page, which in
Andrew
Try something like...
html:text property=rcpt
bean:message key='admin.msg.rcpt'/
/html:text
Regards
Nigel Furber
Boxford Park Ltd
[mailto:[EMAIL PROTECTED]
(44) 1204 692579
Remove spamless from email address
-Original Message-
From: Andrew Stepanenko [mailto:[EMAIL PROTECTED]
Daffin, Miles (Company IT) wrote:
What do people feel about using constants for property names?
In general I feel one should use constants for such things, but it is
far from easy in a web app to do so.
I can't really see the point. A property name is like a variable name,
it will never be
Thanks for your reply, Nigel!
I've already tried that previously and but the text field remains empty...
Nigel Furber wrote:
Andrew
Try something like...
html:text property=rcpt
bean:message key='admin.msg.rcpt'/
/html:text
Regards
Nigel Furber
Boxford Park Ltd
[mailto:[EMAIL PROTECTED]
(44)
Hello,
I´ve a Problem with the using of the tag logic:notEqual Tag to compare
values of an double[]. In this array are normally double values or NaN
values. My Problem ist, that under ATG Application Server with JDK 1.2.2 the
following usage without problems works:
column represents a double
Here i put my code but width and height ,scrollbars,location
are all not working.
td align=left
a href=window.open(ViewProjectSummary.do?projectId=bean:write
name=collection property=projectId /, previewwin,width=700,height=460,
scrollbars=yes,resizable=yes,location=no);
Andrew
Try something like...
html:text property=rcpt bean:message key='admin.msg.rcpt'/
/html:text
If that doesn't work try this:
c:set var=rcptbean:message key='admin.msg.rcpt'//c:set
html:text property=rcpt value=${rcpt}/
-
To
Thank you, Laurent! It works now!
I had this idea previously but again it didn't work because I put a
message string into the value atrribute of c:set ... /.
And if to use this closing tag too everything is fine.
Thanks!
Andrew.
Laurent wrote:
Andrew
Try something like...
html:text property=rcpt
What if you did something like this?
bean:define id=rcptVal
bean:message key=admin.msg.rcpt/
/bean:define
html:text propertyrcpt value=rcptVal/
Todd
On Fri, 11 Feb 2005 13:03:37 +0200, Andrew Stepanenko
[EMAIL PROTECTED] wrote:
Thanks for your reply, Nigel!
I've already tried that
This code is saying that the URL the link points to is a string of
Javscript. That won't work. You'll need to handle the onClick event of
the link and execute that script in response to it. It MIGHT work if
you put javascript: in front of it, but I've never tried that and I
suspect it won't
it *should* work without the onClick event but with the javascript: keyword
before the link:
a href=javascript:window.open('ViewProjectSummary.do?projectId=bean:write name=collection
property=projectId /','previewwin','width=700,height=460,
scrollbars=yes,resizable=yes,location=no');
...
/a
Hi,
I am having the problem of designing my main menu. My main menu (or at least
I have designed like this) has two frames. left frame has all the options
for the application. The options need to look like a tree structure where
only the top level nodes are displayed. When the user clicks on a
Greetings from Peru
Hi, i'm new in this list. I want to know if anybody tried Struts
Studio IDE. Is it good?. Are there any other IDEs?. Because I'm new
using struts, i'w like to use an IDE that help me using struts.
Thanks
--
Rafael Taboada
To answer your question, no, I haven't used it. But, since you are new to
Struts, I'd actually caution against using such a tool.
As a general rule, I believe it is better to do things manually by hand
when you are new to them. I think you will get a better understanding of
how everything works
Yes, it's pretty straightforward to do this with just lists and DHTML.
You definitely don't need an applet for this.
See: http://www.gazingus.org/html/Using_Lists_for_DHTML_Menus.html
[EMAIL PROTECTED] 2/11/2005 9:47:36 AM
Hi,
I am having the problem of designing my main menu. My main menu
Hello Everyone,
I found this really useful development tool and wanted to share it for
anyone who hasn't already found it. It's called AppFuse.
http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse
great documentation and it works really well too. Have fun
Brandon
Hi Michael.
You should take a look at http://struts-menu.sourceforge.net/ and
http://demo.raibledesigns.com/struts-menu/dynamicMenu.jsp It is relatively
simple to implement/use and works fine in a WebApp.
Cheers,
Carlos
- Original Message -
From: Riedling, Michael [EMAIL PROTECTED]
Cheers for all the advice. I have already implemented JDBCRealm but
have decided to try out the SecurityFilter (as recommended) to see for
myself what it is like and what additional features it offers.
Unfortunatley I've had a few problems setting up the securityfilter...
To start off with
Hello,
I'm very begginer in java and struts so please forgive me for this question...
I've got servlet:
action-mappings
action path=/actions/register1
type=RegisterAction1
forward name=success
Use request.setAttribute(name, value) to put the data into request
scope, then from your jsp, use jstl to get to the value:
---
// in your action class:
request.setAttribute(foo, My String);
---
---
!-- in your jsp: --
c:out value=${foo} /
---
Google for a JSTL tutorial - there are a pile of
Have you looked at struts-menu. (http://struts-menu.sourceforge.net)
-Original Message-
From: Vijaya S [mailto:[EMAIL PROTECTED]
Sent: Friday, February 11, 2005 7:48 AM
To: Struts User mailing List
Subject: Need guidance in the presentation layer
Hi,
I am having the problem of
There's two ways you can go... One is to have an ActionForm associated
with your Action, another is to use request directly.
Using request directly, you simply do this in your Action class:
request.setAttribute(temp_, temp_);
(that's an unusual variable name... was that underscore a typo?)
...
Hi all
I'm in search of a good Struts and Tiles book. I have Struts
experience but not tiles.
I plan to use tiles though for a project I just started
Any thoughts?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
This might be work too...
a href=javascript:void(0);
onclick=window.open('ViewProjectSummary.do?projectId=bean:write
name=collection property=projectId
/','previewwin','width=700,height=460,
scrollbars=yes,resizable=yes,location=no');
...
/a
This way, the current browser window state is
No offense, but that is *crazy* *bad* advice Frank.
Larry
On Fri, 11 Feb 2005 11:22:26 -0500 (EST), Frank W. Zammetti (MLists)
[EMAIL PROTECTED] wrote:
%@ page language=java %
% String temp_ = (String)request.getAttribute(temp_); %
html
head
titletest/title
/head
body
My string is
I'm developing a new JSP-like presentation layer.[*] As part of it, I
am writing a Struts HTML tag library. If it looks suspiciously similar
to org.apache.struts.taglib.html...well, it is. I'm intending for the
usage to be identical. I've also been looking at the struts code while
implementing
Well the alternative then
The action class
package org.homedns.afogleson.web.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import
Yes Larry, I got that you think it's *CRAZY* *BAD* advice after the THIRD
eMail came through to me.
It wasn't advice first of all, it was one possible alternative. Should we
hide ways of doing things from people simply because we don't believe they
are the best approach, or even because they are
Last year when I started a new development project and chose Struts as
the core application development technology I looked at and evaluated
the three main IDE enhancements for Struts that I saw. I first decided
that Eclipse 3.0 was going to be my IDE of choice. I then evaluated
MyEclipse, Struts
Hello all,
Can anyone make a recommendation for a user friendly content
management system that can be integrated with a struts/tiles based application?
Wed like content authors to have the ability to use a web based
interface to author content, and publish it to a struts based
On Feb 11, 2005, at 18:23, Josh Holtzman wrote:
It wouldn't surprise me if there are at least a few items already
available
out there, and I'd prefer not to re-invent the wheel if necessary.
Not sure if this covers all your needs, but it's rather nice:
http://www.imdb.com/title/tt0175880/
Hi,
I would recommend another one: InfoGlue. Never used it, but seems quite cool.
I think it worths to take a look on it.
Cheers,
Daniel Silva.
--- PA [EMAIL PROTECTED] wrote:
On Feb 11, 2005, at 18:23, Josh Holtzman wrote:
It wouldn't surprise me if there are at least a few
I hope I didn't come across being anti-IDE... that wasn't my intent.
Even though I don't use an IDE myself for my web development work, I would
not dissuade anyone from using one. The point I was trying to make,
perhaps not as elloquently as I had hoped, was that starting out by hand
will
My responses are interspersed.
Daffin, Miles (Company IT) wrote:
What do people feel about using constants for property names?
I can't really see the point. A property name is like a
variable name, it will never be displayed or localized, so
why would you ever want to change it?
e.g.
Josh-
Have you looked at Rhythmix
http://www.percussion.com/products/rhythmyx/index.htm
Let me know what you think,
Marty Gainty
617-852-7822
- Original Message -
From: Josh Holtzman
To: user@struts.apache.org
Sent: Friday, February 11, 2005 12:23 PM
Subject: [OT] Content
On Fri, 11 Feb 2005 12:24:33 -0500 (EST), [EMAIL PROTECTED] wrote:
Yes Larry, I got that you think it's *CRAZY* *BAD* advice after the THIRD
eMail came through to me.
Hmm, I only sent it twice (once for each of the emails I got from you).
Odd.
It wasn't advice first of all, it was one
from Mailing LIST recipient
***
If you people are going to argue, please send it to each other, some of
us are glad its Friday and
don't give two hoots about a scriplet debate.
**
Eric D. Lemle
Senior
Now I feel like I have to reply to anyone that falls on the side of IDEs
and tools :) I really don't have to, but I'm an a***ole like that :)
You, and Brian as well, certainly make fair points. It is certainly fair
as well though to say that different people learn better in different
ways. I
On Fri, February 11, 2005 12:43 pm, Larry Meadors said:
Hmm, I only sent it twice (once for each of the emails I got from you).
Odd.
Not a problem, probably just the typical list posting issues that pop up
every so often. I should have thrown a smiley at the end of that first
paragraph, I can
How about View Direct Contenuity...
http://www.mobius.com/mobiuscorpsite/default.asp?Form=PageLayoutAction=Retr
ieveParentTagID={73D0FEB2-374A-43E9-A867-2B51DD58E06E}LanguageID={092D603E
-1164-4BCA-9397-4A0EF2484D86}GroupID={9D922248-68E2-4F3B-8C17-20B5AF46377D}
Ugly url, yes.. But a slick
It's not an argument Eric, it's a debate. Are not debates about how to
approach various problems part of what this list is for? After all, you
can ignore the threads you have no interest in, I do it all the time :)
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
On Feb 11, 2005, at 19:06, Chad Baker wrote:
Ugly url, yes..
This was quiet an understatement...
Common HTTP Implementation Problems
http://www.w3.org/TR/chips/
1.Understanding URIs
http://www.w3.org/TR/chips/#uri
But a slick interface (and a plug for the home team).
Considering the URLs... not
Bill Siggelkow's book has a downloadable chapter that discusses Tiles:
http://www.oreilly.com/catalog/jakartastrutsckbk/
On Fri, 11 Feb 2005 11:38:27 -0500, David Johnson [EMAIL PROTECTED] wrote:
Hi all
I'm in search of a good Struts and Tiles book. I have Struts
experience but not tiles.
On Fri, 11 Feb 2005 12:32:55 -0500 (EST), Frank W. Zammetti (MLists)
[EMAIL PROTECTED] wrote:
I hope I didn't come across being anti-IDE... that wasn't my intent.
... cut comments ...
Is that a reasonable middle-ground Brian? :)
Frank,
I agree with the middle ground and what Duncan said.
Ah, now that's more like Friday material: arguing about whether or not an
argument is a really debate.
P.S.
Frank, the reason you may see duplicate notes is that you've got yourself added
to the Reply-to field (I removed you for this reply). So, one to you and
another to the list...
Quoting
On Fri, February 11, 2005 1:46 pm, Kris Schneider said:
Ah, now that's more like Friday material: arguing about whether or not an
argument is a really debate.
That's classic! :)
P.S.
Frank, the reason you may see duplicate notes is that you've got yourself
added
to the Reply-to field (I
Hi List
I am sending my problem
I have one text box and for that text box i write one property in
Config file. But that text box may contain multiple value so i
introduced one Button named More when i clicked that btn another text
box generated.Now i have two text boxes of same property So
From: Paulo César M. Jeveaux [EMAIL PROTECTED]
Now i have two text boxes of same property So when i
enter any value in 1 text box same value assigned for another text box
as they have same property name.
Do you care about the order? If not, it seems like a String[] should work
(it certainly
Sorry. Just testing if I am subscribed. Ignore!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sup all,
Currently in our webapp we use velocity for email templating... anyone
have any better ideas or good experiences with other software?
Thanks
Wylie
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Hey All,
I'm currently trying to integrate sslext into my application. When I start up
it seems to be crashing on parsing
set-property property=secure value=true/
Has anyone gotten this exception? Suggestions?
Thanks!
Steven
java.lang.NoSuchMethodException: Bean has no property named
I'm not sure exactly what you mean with the checkbox problem, but for
the other, you should probably use indexed properties. You can search
the list archives and the documentation for 'indexed properties' and get
loads of information on them.
Here's the 5-second crash course:
Bean form
http://sf.net/infonoia
Josh Holtzman wrote:
Hello all,
Can anyone make a recommendation for a user friendly content
management system that can be integrated with a struts/tiles based
application? Wed like content authors to have the ability to use a
web based interface to author content, and
Did you set up your Struts config to use
org.apache.struts.config.SecureActionConfig for it's ActionConfig
class?
Either
action-mappings type=org.apache.struts.config.SecureActionConfig
...
/action-mappings
or per action,
action className=org.apache.struts.config.SecureActionConfig ...
I'm having an interesting issue. I have a form in which the only input is a
bunch of text boxes which correspond to quantities of products. The associated
form thus consists of just a HashMap. My JSP page is as follows:
... header stuff ...
tr
thProduct/th
thProduct Number/th
Does 1.2.4 support the following?
action path=/processSimple ...
forward name=success path=/jsp/simple/SimpleResults.jsp?id={0}
redirect=true /
/action
How would pass the argument in Action? Thanks.
-Betty
You can use the
dispatch=
for one argument but the others you must find a different way
Eric D. Lemle
Senior Programmer / Analyst
Intermountain Health Care
36 South State Street, Suite 1100
Salt Lake City, Utah 84111
United States of America (USA)
(801) 442-3688 -- e-mail: [EMAIL
parameter=dispatch
Eric D. Lemle
Senior Programmer / Analyst
Intermountain Health Care
36 South State Street, Suite 1100
Salt Lake City, Utah 84111
United States of America (USA)
(801) 442-3688 -- e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 2/11/2005 2:58:28 PM
Does 1.2.4 support the
What you can do is:
action path=/processSimple ...
forward name=success path=/jsp/simple/SimpleResults.jsp?id=
redirect=true /
/action
...then in your action:
ActionForward result = new ActionForward(mapping.findForward(success));
result.setPath(result.getPath() + myIdValue);
Hi Eric,
I am a little confused. I have been using this for a while. But with
another fw layer on top which allows passing up to 4 args. Are you telling
me that struts never support this syntax in struts config since 1.1?
Where would I put parameter=dispatch?
-Betty
-Original
I am assuming that I will need to do all the proper URL encode at this
level?
-Betty
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Friday, February 11, 2005 2:07 PM
To: Struts Users Mailing List
Subject: Re: argument to struts config forward mapping
What you
The other guys advice was great for your issue,
the
parameter=
is in the struts-config.xml action definition and used for running a
particular method in your action class,
then in that method you can put parameters via the
request.setParameter(
hope this helps.
action path=/MyAction
Yes.
Attachment 13818 would encode parameter values using UTF-8. Of course
if you use that, you can change it to whatever you need. You'd use it
like this:
ActionRedirect redirect =
new ActionRedirect(mapping.findForward(doRedirect));
redirect.addParameter(param1,value1);
Hubert,
Thanks for your help. But I am running into this exception, anything I am
doing wrong?
ActionForward forward = mapping.findForward(success);
forward.setPath(forward.getPath() +
URLEncoder.encode(simpleForm.getId(), UTF-8));
return forward;
You can't (and shouldn't) modify the result of mapping.findForward()
-- as you've seen, Struts won't allow you even if you tried.
Do this instead:
ActionForward forward = new ActionForward(mapping.findForward(success));
forward.setPath(forward.getPath() +
URLEncoder.encode(simpleForm.getId(),
Hubert,
I got passed that but now I am seeing the following:
The value of id is = {0}text ...
Howcome the value is not replaced correctly?
-Betty
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Friday, February 11, 2005 2:36 PM
To: Struts Users Mailing List
Remove the forward {0} from your mapping.
On Fri, 11 Feb 2005 15:14:12 -0800, Betty Koon [EMAIL PROTECTED] wrote:
Hubert,
I got passed that but now I am seeing the following:
The value of id is = {0}text ...
Howcome the value is not replaced correctly?
-Betty
-Original
For tiles, I recommend the link from the Tiles Userguide on the Struts site
to Tiles Advanced Features by Cedric Dumoulin. It is an excellent
explanation of many different ways to use tiles. I've referenced it myself
a few times when answering questions on the list because I *Know* I saw the
Hmm, I think something like this might do it:
inside your doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) method:
HttpServletRequest req=(HttpServletRequest ) request;
req.getRequestURI()
Eric Lemle wrote:
From inside a filter how do I get the name of the jsp that
Hey David,
I wrote an article on Tiles for Oracle Magazine that might be helpful to
you. You can get the link for it at:
http://www.jamesholmes.com/struts/
James
-Original Message-
From: David Johnson [mailto:[EMAIL PROTECTED]
Sent: Friday, February 11, 2005 11:38 AM
To: Struts Users
Hi folks,
Would anybody please tell me if Struts handles any methods other than get
and post?
Thanks!
Billy Ng
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Sat, 12 Feb 2005 12:49:08 +1300, Jason Lea [EMAIL PROTECTED] wrote:
Hmm, I think something like this might do it:
inside your doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) method:
HttpServletRequest req=(HttpServletRequest ) request;
req.getRequestURI()
Hi,
I have encounter this problem before too.
I have tried to get the destination jsp using a tag.
1. The tag can get the information of jsp and put it in the session.
2. Get the jsp information from the filter.
Hope this help =)
Cliff
- Original Message -
From: Eric Lemle [EMAIL
Brian Bezanson wrote:
I used a good Struts book --
amazingly (despite my hating the title) I found the Jakarta Struts for
Dummies book to be very well written and easy to learn from/reference.
+1. Worked for me, too.
Vamsee.
-
+1 on that article. That is how I first learned Tiles. Then get Ted
Husted's book. His Tiles chapter (which I think is on the net) is very
good.
--- James Holmes [EMAIL PROTECTED] wrote:
Hey David,
I wrote an article on Tiles for Oracle Magazine that might be helpful to
you. You can
I'm checking it out at we speak. Thank you gentlemen!!!
On Fri, 11 Feb 2005 21:41:08 -0800 (PST), Martin Wegner
[EMAIL PROTECTED] wrote:
+1 on that article. That is how I first learned Tiles. Then get Ted
Husted's book. His Tiles chapter (which I think is on the net) is very
good.
81 matches
Mail list logo