If you mean HTTP request parameters, then they are accessible from all JSP
pages included in a Tiles definition, since they share the same HTTP
request.
But remember that it is not a good practice. It is better to use an Action
that, eventually, puts some beans in the request scope and then you acc
Anybody know a tool for scanning unclosed JDBC resources? I've done a
simple logging facility in my app to keep track of connections in the
pool at runtime but I'm just wondering if there's a less eye-straining
way to do it.. something like a code analyzer of some sort...
Br,
-Yves-
--
A bus sta
Scott,
You could obtain the parameters from within the
ServletContext.getInitParameter() method. This can be accessed from an
Action or PlugIn class and stored by you. Then, you could pull the values
into your ActionForm. How could you store it? In a JNDI context, in a
class, etc.
Inside a Pl
Jonathan,
Check the list archives for this solution. The trick had something to do
with attributes having to be nested to be seen in any included tiles. To be
more clear, does nav.jsp actually do a tiles:insert or does it just try to
do the tiles:getAsString tag by itself? I vaguely remember t
I would do this... assuming I have no form needed for the page I would
just use Struts Forward action class.
Assuming the tile def is ".mynewBody"
then do
Al
-Original Message-
From: Daniel PC Leung [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005 9:13 PM
To: Struts Use
Thank you, Allen.
I have tried your advice.
But I do not know how write that entry in struts-config.xml if change
it to
because I do not have a form to associate the link
On Wed, 2 Mar 2005 22:06:14 -0500, Fogleson, Allen
<[EMAIL PROTECTED]> wrote:
> But why would you do an html:link to a jsp?
>
But why would you do an html:link to a jsp?
Link to an action. (even if it is just a ForwardAction) and then forward
to the definition now you only need to write the layout.jsp that can be
"standardized" across the site, and put different bodies and such in it
as needed.
Al
-Original Messag
I have the following tiles definition file
in a.jsp I am trying to put title in:
in nav.jsp I have
when a.jsp is rendered I get:
[ServletException in:/co
Scott,
You should be able to open the web.xml with the commons digester. Do you
have an example of your "context-param" from your web.xml and whatever "xml"
objects you nested it inside? Is it at top-level (directly under "" or inside another component? I've never used a context-param in
web.xm
The email name of Jonathan "wo_shi_ni_ba_ba" means "I am your father".
Is it appropriate to be on list and let other "child" to answer
Jonathan's question?
On Wed, 2 Mar 2005 17:31:21 -0800 (PST), Jonathan M Z
<[EMAIL PROTECTED]> wrote:
> It will be 5. You can overwrite the value of the var
> in y
It will be 5. You can overwrite the value of the var
in your jsp page. if you don't specify var1 in your
jsp, it defaults to 10
--- draegoon Z <[EMAIL PROTECTED]> wrote:
> if I do this:
>
>
>
> path="/tiles/SOME_TILE.jsp">
>
>
>
>
>
> and then:
>
> (or is
Yes, I am using tiles-def.xml
If mylayout.jsp is defined in tiles-def.xml,
do I have to write a mylayout.jsp?
If yes, then I have to write 2 jsp files
for each change of body layout.
Can I write only 1 jsp file for each change
of body layout?
On Wed, 2 Mar 2005 18:21:44 -0500
I am using tiles as the following:
However I wish to pass parameters to nav.jsp. how do
I do this?
thanks
__
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com
if I do this:
and then:
(or is it beanName?)
what will be the value of var1? Or will this work at all?
I basically want a default value in the definition, but a way to change the
value in a JSP page.
--
pageContext.setAttribute("bar",projects,PageContext.PAGE_SCOPE);
it's an attribute in the page scope, not session, does
it have to be in a session? I am only using it for
the current page...
--- Eric Lemle <[EMAIL PROTECTED]> wrote:
> Is bar in the session?
>
> >>> [EMAIL PROTECTED] 3/2/2005 12
Eric is correct. If you use the tiles-def.xml file you can get rid of a
lot of duplication. In this case you could do exactly what you want by
creating definitions in the xml that extend the original and only change
the body portion.
To me it is a lot easier to use the tiles-d
HELP? The only thing that I can think of is that the statement
...is doing something that the javascript
childWindow=window.open( 'AttachmentAction.do?attachment_id='+id,
name,
'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,wi
Is there any convenient method of unit testing Tiles
controllers? While controllers can double as actions,
I'd rather not include create forwards for each of
these "view" controllers in order to make them
accessible by a URL. What mock objects might I need to
initialize and correctly collaborate wi
In fact we have this kind of tool, but it's special to our website, so it
will not help you much.
However, it wasn't a big deal to write such a tool using Jakarta Http Client
and some multithreading.
You should also look at Jmeter and HttpUnit, they provide similar
functionality out of the box (yo
In fact we have this kind of tool, but it's special to our website, so it
will not help you much.
However, it wasn't a big deal to write such a tool using Jakarta Http Client
and some multithreading.
You should also look at Jmeter and HttpUnit, they provide similar
functionality out of the box (yo
HELP? The only thing that I can think of is that the statement
...is doing something that the javascript
childWindow=window.open( 'AttachmentAction.do?attachment_id='+id, name,
'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,wid
I think if you use the tiles-defs.xml configuration properly you can
eliminate lots of files.
But I don't use that file yet.
-Eric
>>> [EMAIL PROTECTED] 3/2/2005 12:53:59 PM >>>
I do not think it's possible... I hope someone can
prove me wrong.
--- Daniel PC Leung <[EMAIL PROTECTED]> wrote:
> I
Is bar in the session?
>>> [EMAIL PROTECTED] 3/2/2005 12:45:03 PM >>>
thanks I am running into a related problem with radio
buttons:
when rendered it says:
[ServletException in:/calc/ProjectManagerMain.jsp]
Cannot find bean under name
org.apache.struts.tagli
Hi there,
I'm using struts 1.1.
Problem:
I would like load multiple resource-bundles.
Examples would be:
adaResources.properties
adaResources_sv_SE.properties
bedaResources2.properties
bedaResources_sv_SE2.properties
I've tried to configure struts.config different ways
but it seems it
I heard there were some questions regarding AppFuse on this mailing
list. Just wanted to let you know that I'm listening, so feel free to
ask any questions you have.
Matt
AppFuse Lead Developer
-
To unsubscribe, e-mail: [EMAIL
Hi Antonio.
[EMAIL PROTECTED] schrieb:
I had a similar problem with jdk 5.0, but with tomcat 5.0.28. In that case
I was using Apache Forrest (as a webapp). Under my Struts webapp I put
Apache Xerces (the latest version) under WEB-INF/lib, because it seems
that the parser under jdk 5.0 is buggy (it
Dear all,
I wanna ask if there exists some kind of tool/application that simulates user
traffic to a web site.
For example a tool that lets you set up 50 users that make certain requests,
post certain form data etc
and of course profile these actions (maybe show charts, too).
Anyway, if no such
You have a typo there... valudate="true"
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005 2:43 PM
To: user@struts.apache.org
Subject: Need Help Deciphering Error:
Hello,
I am getting the following error and I cannot quite figure out what
I do not think it's possible... I hope someone can
prove me wrong.
--- Daniel PC Leung <[EMAIL PROTECTED]> wrote:
> I have a standand Tiles layout.
> ie. it has header, Left, Body and footer.
> In one of the body, I have this.
>
>
>
> key="securityMaint.userAccountMaint"/>
>
thanks I am running into a related problem with radio
buttons:
when rendered it says:
[ServletException in:/calc/ProjectManagerMain.jsp]
Cannot find bean under name
org.apache.struts.taglib.html.BEAN'
What's wrong?
thanks
--- Eric Lemle <[EMAIL PROTECTED]>
Hello,
I am getting the following error and I cannot quite figure out what I am doing
wrong? Can anyone give me some insight into this?
Here is the circumstance:
I have a jsp page that does a href to this action: "/action/uploadAssets"
This will display a simple JSP page that shows a html form w
Ok it's a trivial mistake, didn't actually put
anything in the Vector.
--- Jonathan M Z <[EMAIL PROTECTED]> wrote:
> hi folks,
> I am trying to iterate a through a Vector of object
> of
> class Project where project has getter and setter
> getDescription(),setDescription(),etc
> In the jsp page
I think this is what you are looking for
-Eric
>>> [EMAIL PROTECTED] 3/2/2005 12:09:49 PM >>>
hi folks,
I am trying to iterate a through a Vector of object of
class Project where project has getter and setter
getDescription(),setDescription(),etc
In the jsp page I first created bean o
hi folks,
I am trying to iterate a through a Vector of object of
class Project where project has getter and setter
getDescription(),setDescription(),etc
In the jsp page I first created bean of name bar.
Vector v=new Vector();
Project p1=new Project();
p1.setName("project1");
p1.setDescription("des"
I noticed this too, but putting the '/physrcrtadmin' in there doesn't
matter, it still doesn't work...???
But I do think it might be some kind of path or reference issue.
Thanks,
-Eric
Eric D. Lemle
Senior Programmer / Analyst
Intermountain Health Care
36 South State Street, Suite 1100
Salt L
Doesn't matter if the & sign is there or not, already tried that.
Works both ways, I only put it there because the struts framework tags
were putting it in the first one when using...
-Eric
Eric D. Lemle
Senior Programmer / Analyst
Intermountain Health Care
36 South State Street, Suite 1100
Sa
Disregard this - DoubleRange does match NaN.
-Original Message-
From: BLOOMFIELD, TOM F [AG-Contractor/1000] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005 12:14 PM
To: 'Struts Users Mailing List'
Subject: Validator 1.2.6 + NaN
If I use DoubleRange:
min
0
If I use DoubleRange:
min
0
max
1000
And the number I'm validating is NaN, the number passes validation.
I realize NaN is a valid double and thus I would expect it to pass "required"
and even "double" tests, but fail the range above.
How can I test for
This is probably a personal opinion based on my having more experience with
Struts but we recently did 3 fairly large sized apps 2 of which we used
struts/spring and the third (which was actually the first) used just struts.
All three have the potential to use EJB or POJO Facades.
We originall
On Wed, 2 Mar 2005 11:33:13 -0500, David Johnson <[EMAIL PROTECTED]> wrote:
> Related question. Isnt spring sort of an alternative to Struts? Can
> they work together? How? :)
Spring is more than one thing :-).
There is indeed "Spring MVC" which is a framework designed to solve
the same problems
Mathew, Manoj wrote:
Hi guys
I am in the design face of a huge J2ee web application. Though my application is a very good candidate to go for EJBs, I am so reluctant to go with it, based on my previous bad experiences. I was looking at "Spring". What you guys think about that?
Spring is great.
David Johnson wrote:
Related question. Isnt spring sort of an alternative to Struts? Can
they work together? How? :)
Yes, struts+spring is the default for the appfuse toolkit. And they
play together WONDERFULLY. For instance, lets say that you have a view
you'd like to use... Jasper Reports
David Johnson wrote:
hi all
I have been meaning to doeanload AppFuse after reading about it on
this list (http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse) but I
havent yet. Has anyone used it?
+ you can use a set of constantly evolving best practices without having
to figure/work them out y
Related question. Isnt spring sort of an alternative to Struts? Can
they work together? How? :)
Do you feel like AppFuse is bloatware in any way? How is performance?
On Wed, 2 Mar 2005 10:20:52 -0600, Steven Leija
<[EMAIL PROTECTED]> wrote:
> Hey David,
>
> I've used this project for a while now
Hi guys
I am in the design face of a huge J2ee web application. Though my application
is a very good candidate to go for EJBs, I am so reluctant to go with it, based
on my previous bad experiences. I was looking at "Spring". What you guys think
about that?
thank in advance
Matt
-Messa
Thanks for your reply.
It is better to use a delegate or a manage layer than use a Struts
Action class. And I want to make sure that when I implement the delegate or
manage layer, I shouldn't use J2EE instead of POJO, it is correct?
Tim
- Original Message -
From: "Erik Weber" <[EMAIL PRO
Hey David,
I've used this project for a while now and it's outstanding. You can literally
get the foundation for a webproject setup and deployed to a tomcat server in a
matter of a minutes. There is continuous work being done on it for additional
functionality and improvements. It is consi
Gunther,
Is there a reason you didn't do this using a servlet filter instead of
a custom request processor? IMO, servlet filters are less intrusive,
support filtering for JSPs and static pages as well as Struts actions,
and its easier to selectively apply them using URL patterns.
Also, I notice
hi all
I have been meaning to doeanload AppFuse after reading about it on
this list (http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse) but I
havent yet. Has anyone used it?
--
-Dave
[EMAIL PROTECTED]
-
To unsubscribe, e-ma
hi scott,
well, i'll try my best.
here's the code from the execute method of MyRequestProcessor (that's the
one included in the struts-config.xml):
public class MyRequestProcessor extends TilesRequestProcessor {
public void process(HttpServletRequest req, HttpServletResponse res)
I have a standand Tiles layout.
ie. it has header, Left, Body and footer.
In one of the body, I have this.
Whenever it is clicked, only the body portion is changed.
I have to use 2 jsp files to make it happen,
UserAccountMaint.jsp:
Can I use only 1 jsp file so t
What precisely do you mean by "design a web site from scratch"? If you
are looking for an HTML editor only, then have a look at this page:
http://www.thefreecountry.com/webmaster/htmleditors.shtml
There's quite a few listed there, one of them is bound to serve you well.
In fact, some of what is
Anybody know a very good free tool to design a web site from scratch? Sorry for
this off topic question. But I believe that people in here are experts of UIs.
Any body has any suggestions? Also wondering if there is any free tool to
design a Letter pad and a logo.
thank you
Matt
-Mess
In addition to not needing the ampersand, the first and second href seem
to point differently. The first points to:
/physrcrtadmin/AttachmentAction.do
The second to:
AttachmentAction.do
Which may be the same place already if whatever page you got this from
is in the same directory tree but it's
Hello Gunther,
I read last night about the tiles tempating functionality, so I have a little
better handle on it today. It actually is a nice way to create some parts of my
app, so I will revisit it today and try and prototype a couple of pages
together. But as far as handling the session expir
Yes it is, but it is rather nonsense. It is a kind of listing words
Regards
Sebastian Hennebrueder
http://www.laliluna.de
Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB
David G. Friedman wrote:
http://wiki.apache.org/struts/LocalSpellingWords
Is that German? Do we have many ot
How can I access the current Tiles definition name from the execute method of a
custom Tiles Controller class?
Thanks,
Jonathan.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Take a look at this:
http://www.lifl.fr/~dumoulin/tiles/doc/tutorial.html#_Toc521292375
And remember that a definitions-config MUST BE an XML that follows the
Tiles configuration DTD.
Ciao
Antonio Petrelli
Jonathan M Z wrote:
>I am a bit baffled by creating tiles definitions in
>jsp(not XML)
>her
58 matches
Mail list logo