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)
here
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]
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
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
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
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
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
I have a standand Tiles layout.
ie. it has header, Left, Body and footer.
In one of the body, I have this.
td
html:link page=/UserAccountMaint.jsp
bean:message key=securityMaint.userAccountMaint/
/html:link
/td
Whenever it is clicked, only the body portion is changed.
I
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)
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,
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
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
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
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
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 and
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
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
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.
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 that
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
If I use DoubleRange:
var
var-namemin/var-name
var-value0/var-value
/var
var
var-namemax/var-name
var-value1000/var-value
/var
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
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:
var
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
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 think this is what you are looking for
logic:iterate name=myVector id=myProject indexId=i
bean:define id=mydescription name=myProject
property=description /
bean:write name=mydescription/
/logic:iterate
-Eric
[EMAIL PROTECTED] 3/2/2005 12:09:49 PM
hi folks,
I am trying to iterate a
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 first
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
thanks I am running into a related problem with radio
buttons:
logic:iterate id=element name=bar
html:radio idName=element value=name
property=pName
/html:radio
/logic:iterate
when rendered it says:
[ServletException in:/calc/ProjectManagerMain.jsp]
Cannot find
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
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
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
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 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
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:
logic:iterate id=element name=bar
html:radio idName=element value=name
property=pName
/html:radio
/logic:iterate
when rendered it
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 have a
HELP? The only thing that I can think of is that the statement
html:link action=/AttachmentAction.do? paramId=attachment_id
paramName=mutableForm paramProperty=attachment_id
target=ResumeAttachment
...is doing something that the javascript
childWindow=window.open(
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
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
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.
definition name=.default path=/mylayout.jsp
put
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:45:03 PM
if I do this:
tiles-definitions
definition name=someTile path=/tiles/SOME_TILE.jsp
put name=var1 value=10 /
/definition
/tiles-definitions
and then:
tiles:insert definition=someTile (or is it beanName?)
tiles:put name=var1 value=5 /
/tiles:insert
what will be the
I am using tiles as the following:
tiles:insert definition=common.default
tiles:put name=body
value=/calc/AssessmentCalcMain.jsp/
tiles:put name=nav value=/common/nav.jsp/
/tiles:insert
However I wish to pass parameters to nav.jsp. how do
I do this?
thanks
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.
td
html:link page=/mylayout.jsp
/html:link
/td
Can I write only 1 jsp file for each change
of body
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:
tiles-definitions
definition name=someTile
path=/tiles/SOME_TILE.jsp
put name=var1
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 your jsp
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 webapp
... or inside another component? I've never used a context-param in
I have the following tiles definition file
tiles-definitions
definition name=common.default
path=/layout/defaultLayout.jsp
put name=header value=/common/Top.jsp/
put name=menubar value=/common/Side.jsp/
put name=nav value=/common/nav.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
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 html:link action=myAction
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
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
action path=/newBody type=org.apache.struts.actions.ForwardAction
parameter=.mynewBody/
then do
html:link action=newBody/
Al
-Original
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
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
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
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
54 matches
Mail list logo