Hi
Why doesn't the html:image tag allow for the name attribute? I am trying
to use it within the iterate tag, ie
logic:iterate id=something name=someBean property=someCollection
html:image src=/images/image.gif name=something
property=someAttribute/
/logic:iterate
It does not recognise the
[mailto:[EMAIL PROTECTED]]
Sent: Friday, 19 July 2002 12:55 p.m.
To: Struts Users Mailing List
Subject: RE: html:image
I think maybe it's the property attribute instead? Not sure about that,
but you could give it a try.
-Original Message-
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent
Hi
I was wondering if there is a tag to generate a url link from a map, and
preserve the sessionid. Just like what html:link is doing. Ie
html:link page=somelink name=someBean property=someMap/
I want something like:
html:writelink page=somelink name=someBean property=someMap/
which will
Hi
I was wondering why isn't there a nested:img tag?
I want to have a nested image with a link, ie:
nested:img src=someimage.gif name=somebean property=someMap/
Is there an alternative?
I could do
nested:link name=somebean property=someMap/img
src=someimage.gifnested:link/
but it creates an
Thank you James and Arron for you reply. I'll give the border=0 a go while
waiting for the nested:img tag.
Keith
-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Friday, 7 June 2002 3:48 p.m.
To: Struts Users Mailing List
Subject: Re: nested img
Hi
I was
Hi
What is the simplest way to implement the Remember Me feature for user
logon? Do we just need to:
- write a cookie on the user's machine with username and password
- on logon page, check cookie. If found, logon
Are there existing samples (using Struts taglibs) that I can refer to?
Keith
Hi all
Struts uses reflection to populate the attributes into JavaBean, eg
html:text property=someAttribute/
At runtime, if someAttribute is not present we get an exception.
It would be really nice if we had a Struts Compiler that takes in 2
arguments:
- classpath
- source path
The compiler
: liudsm [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 19 March 2002 3:24 p.m.
To: Struts Users Mailing List
Subject: Re: html:radio
hi ,you can use as this :
html:radio property=selectedOption bean:write name=testOptions
property=data//html:radio
- Original Message -
From: Keith Chew [EMAIL
Hi
I have prepared an object called PreparedData and put that in the request
scope: request.setAttribute(preparedData, preparedData);
Then in the JSP, I want to display that preparedData to a set of radio
button values:
html:form action=/saveTest
logic:iterate id=testOptions
to you it case you strike the same problem in the
future.
Keith
-Original Message-
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent: Monday, 11 March 2002 9:26 a.m.
To: Struts Users Mailing List
Subject: RE: design flaw if using a template...
Hi Matt
I have done more research over
Message-
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent: 07 March 2002 21:15
To: Struts Users Mailing List
Subject: RE: design flaw if using a template...
Hi Matt
I am such an idiot.
In my template.jsp, I have:
template:insert template=/news.do/
This is equivalent to a jsp include. My
for dynamic web pages - several helpful
suggestions given when I posed similar question - pushlets seem pretty
funky!
Or you can just create the ouput in your action, and stream the info to the
page until it's done.
Dave
Keith Chew [EMAIL PROTECTED] on
03/07/2002 09:01:35 PM
Please respond
Hi
I would like to implement a live progress on a JSP, something like:
time = 0s
*
Synchronizing database...
time = 5s
*
Synchronizing database... DONE!
Sending mail to keith...
time =10s
*
Synchronizing database... DONE!
Sending mail to keith... DONE!
Essentially, I
Hi
Struts provides us with a nice MVC architecture, where:
- a user's click maps to an Action
- based on the results, the user is forwarded to the view
Now, I have a template.jsp which all pages will use. The template will
contain some views that are common to all pages, eg:
- Latest News
-
Tiles does not solve the problem. As far as I can see, Tiles makes it easy
to configure your presentation pages, and pass variables between templates.
It makes your presentation design work more OO.
However, my issue is more of an archietecture problem, not a presentation
problem.
Keith
-
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 4:28 PM
To: Struts Users Mailing List
Subject:design flaw if using a template...
Hi
Struts provides us with a nice MVC architecture, where:
- a user's click maps to an Action
- based on the results
other content.
E.g.
template:insert template=/WEB-INF/templates/myTemplate.jsp
template:put name=newspanel content=/news/shownews.do /
template:put name=content
... some html
/template:put
/template:insert
Matt.
-Original Message-
From: Keith Chew [mailto:[EMAIL
March 2002 12:54 p.m.
To: Struts Users Mailing List
Subject: RE: design flaw if using a template...
I did try it and it worked fine. I'm using the nightly build.
-Original Message-
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent: 06 March 2002 23:49
To: Struts Users Mailing List
Subject
Message-
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent: 07 March 2002 00:14
To: Struts Users Mailing List
Subject: RE: design flaw if using a template...
Matt, thank you very much for trying this out. I appreciate the time you are
spending to help me track the problem.
Can you give this a go
this content is a .jsp or an action mapping
url - it works.
Honestly, just use template:put as it is documented and your problems will
be solved.
Matt.
-Original Message-
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent: 07 March 2002 02:18
To: Struts Users Mailing List
Subject: RE
An alternative to putting it in the WEB-INF is to use Apache to filter the
request, eg:
Location /*.jsp
Deny from all
/Location
This has the advantage of:
- if you decide not to disallow JSPs, you can
- when you are developing, it's often handy to view the JSPs without going
through
-
From: Keith Chew [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 27, 2002 2:21 PM
Subject: RE: changing from *.do to /do/* screws up everything?
An alternative to putting it in the WEB-INF is to use Apache to filter
the
request, eg
I have a SuccessAction which only has one line in the perform() method:
return mapping.findForward (success);
This action is used for pass-through pages, including index.jsp.
Keith
-Original Message-
From: Bryan Field-Elliot [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 28 February
(struts templates that is),
you've
just shot yourself in the foot, haven't you?
Additional Thoughts,
Eddie
- Original Message -
From: Keith Chew [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 27, 2002 2:21 PM
Subject: RE: changing from
, and actions-mappings for everything else.
Then protect /do/* request your JSPs with /do/name.jsp and it'll go through
DefaultAction (search this list for more info), and having your welcome as
/index.jsp (notice no /do/)
Is this what you're looking for?
Matt
--- Keith Chew [EMAIL PROTECTED] wrote
Hi
Has anyone gotten the ssl extension to work with the latest snapshot of
Struts.
I am having some difficulties getting it to work.
Keith
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi
In the latest snapshot, if declared in the web.xml:
init-param
param-namemapping/param-name
param-valueorg.apache.struts.action.SecureActionMapping/param-value
/init-param
How do I get this Mapping in code?
I tried:
SecureActionMapping mapping =
ldn't find an example...
Keith
-Original Message-----
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 28 February 2002 12:58 p.m.
To: Struts Users Mailing List
Subject: sslext with snapshot...
Hi
Has anyone gotten the ssl extension to work with the latest snapshot of
Struts.
I
Hi
I have a template jsp file which on the side bar displays the Latest News.
The latest news is retrieved from the database. I can do a database access
from the JSP or from a custom taglib, but this does not follow the MVC
pattern.
So, what I have done is have a BaseAction class this extends
UML modeling: TogetherSoft
CMP data modeling: TogetherSoft
Cutting-code: IntelliJ
Debugging: IntelliJ
JSP Presentation: Macromedia Ultradev
Build: Ant
Deployment descriptors: XDoclet
Test: Ant + JUnit
Deploy: Ant
Regards
Keith
-Original Message-
From: Dave Wellman [mailto:[EMAIL
Yes, the ultradev plugin supports taglibs (look at Strut's Resources page).
Macromedia has some annoying bugs with formatting, but tolerable at the
moment.
Keith
-Original Message-
From: Molitor, Stephen [mailto:[EMAIL PROTECTED]]
Sent: Friday, 22 February 2002 10:42 a.m.
To: 'Struts
Hi Paul
I follow this design practice for both EJB and non-EJB applications. The
ones marked with * live at the application server JVM.
(1) Non-EJB environment
===
JSP - ActionBean - ServiceBean - DaoBean - DB
(2) EJB environment (BMP or Session)
-Original Message-
From: Keith Chew [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 2:47 PM
To: Struts Users Mailing List
Subject: RE: Best Approach for Database Access?
Hi Paul
I follow this design practice for both EJB and non-EJB applications. The
ones marked with * live
More pointers...
In the example I gave earlier, the DaoBean is responsible for communicating
with the database. So, you can implement the data access with any of these
technologies:
- direct SQL
- O/R mapper like Castor, Toplink, Cocobase
- JDO
- ...
In the CMP environment, the container will
Hi Kayode
Just a note, a Singleton will not work if you have a cluster of JSP
containers serving your application. You would have to use the database or a
stateful session bean if you want it to work in a distributed environment.
You could try the application context, but I am not sure if the
Hi
Let's start on url-rewriting. When you open a browser, eg
http://localhost/page1.jsp;jsessionid=111
All the browser has is the session id, right?
Now, clicking on Ctrl-N (new window) is no different from clicking on
Refresh. Let's assume you did a Ctrl-N, you now have 2 windows. Ok,
different applications) in the same computer via two
browser windows?
This is an interesting issue. Any help highly appreciated.
Jorge
- Original Message -
From: Keith Chew [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 24, 2002 3:53 PM
Subject
Hi
FYI, Data Access Objects (DAOs) is not a persistence mechansim, it's a
design pattern used to encapsulate the mechanism. The mechanism itself can
be JDBC (in the example you have given), Castor JDO, Sun JDO, or any other
O/R mapping tools' API.
Keith
-Original Message-
From:
Hi
Just some thoughts. You could use the delegate pattern instead of
inheritence. This will help decouple your FormBeans from your DaoBeans.
Keith
-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Thursday, 24 January 2002 9:10 a.m.
To: [EMAIL PROTECTED]
Hi Juan
You can try the greaterThan or lessThan for your authorization levels:
logic:lessThan name=user property=authorizationLevelId value=2
Some HTML goes here
/logic:equal
Hope it helps
Keith
-Original Message-
From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
Hi
I use a subclass technique where I can achieve both a generic form as well
as specific forms for each action. Eg
public abstract class GenericListForm extends ActionForm
public class OrderListForm extends GenericListForm
public class MessageListForm extends GenericListForm
In my case, both
You could extend it a a little bit further, ie a simple state machine for a
start (gradually moving to a more complex workflow system). In your simple
state machine, you can:
For all actions, it can be dependent on another action (eg
SubmitForumMessageAction and SubmitEmailMessageAction is
Opps, sorry, I didn't read your previous post and you are already using
tokens. Sorry...
FYI, there is a current workflow being developed for Struts, and you can
achieve the same results as the token with that.
Keith
-Original Message-
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent
43 matches
Mail list logo