Yes, Jakarta's JSTL implementation makes use of MessageFormat for both the
EL and RT tag flavors.
See org.apache.taglibs.standard.tag.common.fmt.MessageSupport.
-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 10:39 AM
To: [EMAIL
. But still not on other
java.util.Collection types :(
-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 4:21 PM
To: Struts Users Mailing List
Subject: RE: jstl and collection sizes
That only works
I get the same thing with IE 6.0 with 128 bit encryption.
-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:29 PM
To: 'Struts Users Mailing List'
Subject: RE: websites that use Struts..
Baahhh, they don't like modern browsers
You can't AFAIK.
Some people do this:
c_rt:set var=colsize value=%= myCol.size() %/
Or this:
bean:size id=colsize name=myCol/
If you want to set a scoped variable to the size of the collection I'd
recommend the bean:size approach.
-Original Message-
From: John Thorhauer
That only works if the Collection is a List. If it isn't a List you can do
${myCollection[empty]}. Not allowing ${empty myCollection} for non-Lists
is odd, but that's what the spec says.
There's a thread about this oddity in taglibs-user.
http://shorl.com/dapofrypragragu
-Original
Woops. In addition to java.util.List it works on java.util.Map and arrays
and java.lang.String. But still not on other java.util.Collection types :(
-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 4:21 PM
To: Struts Users Mailing
Is there a utility that will take strings formatted according to printf and
convert them to MessageFormat in a Locale friendly way?
If not, is there a good website with guidelines on converting printf
formatted strings to MessageFormat strings?
TIA
Jerome
Not sure if this will help, but here goes. I have Form based JSPs that can
be used across multiple actions. Therefore these JSPs have dynamic form
action attributes. I didn't want to set the form action in the Action
class. Instead I define it in struts-config.xml on a per action mapping
Hi Brandon,
I just posted something on a different topic that may solve your problem.
Basically it is like your Solution #2, except it doesn't use a comma
delimited value getter/setter. Not sure why you need that. Anyway, here's
the posting URL.
http://shorl.com/dutydapedroho
-Jerome
The javadoc for ActionForward state you can use an absolute URI for the path
parameter. I've never tried it though.
-Original Message-
From: Micael [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 3:47 PM
To: [EMAIL PROTECTED]
Subject: Dynamic Forwards Offsite
How
I'm using it in production. Also JDeveloper 9i ships with Struts 1.1b2.
From reviewing the struts-dev list it appears that 1.1-b3 will be the
release candidate.
-Original Message-
From: Stillwell, Chris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 19, 2003 9:30 AM
To: 'Struts
I just checked the book. His approach is to just throw a servlet exception
when a sensitive form is resubmitted. I believe what Greg wants is a way to
display the results just as if the second submition did not occur.
-Original Message-
From: DUBCHAK, JOHN (SBCSI) [mailto:[EMAIL
I posted an idea on how to handle this a while back.
http://marc.theaimsgroup.com/?l=struts-userm=104404655411300w=2
Like I said in that post, I've never tried it.
If you can restrict clients to have Javascript enabled then I think John's
solution is the easiest. Since I have the luxury of
This has already been done by Ted in his book, I think. At least in the
downloadable draft version there is a Patterns chapter. Actually it is
Appendix D.
-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 11:57 AM
To: [EMAIL PROTECTED]
It appears I was wrong. You can only download the Tiles and Validator
chapters (these are the final versions).
http://www.manning.com/getpage.html?project=hustedfilename=chapters.html
Ted had sent me the draft of the entire book at one point but it looks like
you can't download these chapters
PROTECTED]
Subject: Re: [OT] Struts and Design Patterns
Figures... I own the book and left it at work. Anyone care to save
me a trip into the office to verify this?
Thanks,
Matt
--- In [EMAIL PROTECTED], Jerome Jacobsen
[EMAIL PROTECTED] wrote:
This has already been done by Ted
Here's something from the archives you might find useful.
-
Since this is essentially error text you are talking about, I think the
easiest way to handle this is through Struts's error tags:
html:text property=username ... / html:errors property=username/
Where
Try this:
html:messages id=success message=true /
If you omit message=true then the tag only looks for error messages under
Action.ERROR_KEY. With the message=true it will look for messages under
Action.MESSAGE_KEY.
-Original Message-
From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
-
From: Jerome Jacobsen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 1:47 PM
Subject: RE: Using the html:message tag
Try this:
html:messages id=success message=true /
If you omit message=true then the tag only looks for error
My guess is that you aren't really using the logic:iterate tag because you
forgot the taglib directive at the top of your JSP. If you do a view
source from your browser I'm guessing you'll still see the logic:iterate
tags in the output HTML.
-Original Message-
From: mech [mailto:[EMAIL
AFAIK the display tag is the best choice. With JSTL you'd have to build in
the paging and sorting yourself. If you can wait until the next release of
display taglib (now at sourceforge) I would strongly recommend that. There
are some key bug fixes in the next release.
-Original
Without using Javascript on the client, can the server detect if the client
has Javascript enabled? Is there something in the HTTP request header that
indicates this?
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL
Have you looked at OpenOffice (http://www.openoffice.org/)? They may have
Java APIs for doing this sort of thing.
-Original Message-
From: John Cavacas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 10:29 AM
To: 'Struts Users Mailing List'
Subject: [OT] Generating
I'd like to hear Craig and/or Ted respond to this topic. I think the
solutions presented this far are interesting, but would like to hear what
the Struts masters say. I haven't seen anything about this very common
problem in the two Struts books I have or in the online docs.
Come on Craig or
If you are iterating with c:forEach then use the iteration status which has
a count property. See this example:
c:forEach var=customer items=${customers} varStatus=status
tr
tdc:out value=${status.index}//td
tdc:out value=${status.count}//td
tdc:out
java -Djava.security.manager -Djava.security.policy=%APP_HOME%\java.security
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 8:05 AM
To: [EMAIL PROTECTED]
Subject: [OT] Tell VM to use a different java.security file other than
the
Very good question on a very difficult topic. This is one of the hardest
things in a transactional application. The a-d choices you listed are all
possibilities and the one you select depends on your situation/requirements.
What does the customer want to happen in this case? This topic is
logic:notEmpty name=session property=permissionsHashMap(Manage
Countries)
... User has the Manage Countries permission
/logic:notEmpty
Or with JSTL
c:if test=${permissionsHashMap['Manage Countries']}
... User has the Manage Countries permission
/c:if
-Original Message-
From: Jordan
Countries)
... User has the Manage Countries permission
/logic:notEmpty
-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 9:19 AM
To: Struts Users Mailing List
Subject: RE: hashmaps and hash tables in JSPs
logic:notEmpty name=session
Your CommonCode solution is the way I went (I called mine BaseActionHelper).
Your subclass of DispatchAction would look something like this below.
public abstract class MyDispatchAction extends DispatchAction
{
public ActionForward execute(ActionMapping mapping,
ActionForm
Correction. Your MyDispatchAction would not be abstract.
-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 11:29 AM
To: Struts Users Mailing List
Subject: RE: Override DispatchAction but keep the existing
funcationallity
Your
The framework could be extended to support this on a per-action basis. In
struts-config.xml we could have an additional element or attribute of the
'action' attribute to indicate the desired ActionForm populate/validate
behavior on invalid token.
-Original Message-
From: Craig R.
It applies to the ActionMapping, not the Action.
Subclass org.apache.struts.action.ActionMapping. Define your property in
the subclass. The in struts-config.xml add the className attribute to your
action elements like this:
action className=com.blah.MyActionMapping ...
set-property name=foo
Seems to me you could save a TransactionStatus token in the Session. Check for this
token in the Action that starts the Transaction. There are two double-submit cases.
Case 1: Transaction Complete (with or without error).
If the Action determines that it is a double-submit and the
Not sure, but maybe this:
bean:define id=popUpURLhtml:rewrite
page=AgreementList.do
paramName=customerDetails
paramProperty=customerId//bean:define
a href=
onClick=MM_openBrWindow('%= popUpURL %','popup','scrollbars=yes,widt
h=1000,height=500,left=10,top=100')Click Me/a
Couldn't you subclass Date and override toString?
-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 11:41 AM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: [OT] Display Tag Library - Sorting Dates
Since there seems to be a
The set-property applies to the ActionMapping, not the Action. You can
subclass ActionMapping and add a useToken property to it. Then the
action entity will need the className attribute set to your
ActionMapping subclass.
action className=com.blah.MyActionMapping path=blah...
set-property
Perhaps an Adapter could be created to do this (e.g.
MessageResourcesLocaleContext or StrutsLocaleContext). You could set it up
to be your default LocaleContext in the web.xml or via a Struts PlugIn. I
haven't actually looked to see if a Struts MessageResources could be adapted
to a JSTL
My friend Fred officially supports Struts.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JSTL-EL source code is under Jakarta Taglibs.
See class org.apache.taglibs.standard.lang.support.ExpressionEvaluator.
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 1:10 AM
To: Struts Users Mailing List
Subject: [OT] JSF JSTL EL
to keep it, as we
use it heavily
Dave
--
Dave Hodson
MessageCast, inc.
Email: [EMAIL PROTECTED]
http://www.messagecast.net
-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 8:07 AM
To: Struts Users Mailing List
Subject
.
David
From: Jerome Jacobsen [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: The display:* tag library
Date: Fri, 24 Jan 2003 15:50:01 -0500
To be clear I was just outlining what I thought would be an improved
display-like
I think a complete rewrite is needed AND a new API (same tags but different
tag attributes). Thus I would say an entirely new tag library. I'll call
the new version display2 and the current one display1 for clarity below.
- Follow JSTL conventions for attribute names and support JSTL-EL.
Good idea. Makes sense to me.
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 11:50 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: The display:* tag library
What do you think of two tag libs:
pager:*
table:*
If you have a JSP 1.2 container then you can use JSTL like this:
c:out value='${param[name]}'/
param is an implicit object in JSTL (it is a Map).
-Original Message-
From: Ben Starr [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 9:17 PM
To: [EMAIL PROTECTED]
Subject: Tag
3. Have an abstract BaseAction class for your webapp. All of your concrete
Actions subclass your BaseAction. Perform the login check in the
BaseAction's execute method. Make the BaseAction's execute method final.
BaseAction defines an abstract method called executeAction which the
subclasses
I think you can name your action with a .pdf extension, something like
http://localhost/xmltopdf.do.pdf. Not sure what you'd have to do with the
action mappings to allow this to work. Some versions of IE seem to use the
URL 'document' extension and the client systems extension to application
You could Serialize it to a byte array and then output the size of the byte
array. Or Serialize it to a file and look at the file size.
-Original Message-
From: Justin Ashworth [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 11:30 AM
To: Struts Users Mailing List
Subject:
If you're trying to conditionally hyperlink the contents of a certain column
of the current row then you'll have to use a Decorator. The current row of
the list is not exposed in a scripting variable or scoped variable. For the
reason why see
One pickup line I've heard is Excuse me, do you have the time?, but I've
never used it myself as I make it a policy not to date my users.
Seriously, another option is to have user Preferences that are supplied at
registration time and can be edited later. Then they don't have to keep
supplying
I sent Ed an email yesterday asking him the status too. No reply yet.
Instead of adding it to Struts I was hoping he'd add it to Jakarta Taglibs.
He used the packaging names of Jakarta Taglibs for his classes so I am
hopeful. I would like to see the JSTL-EL ability added to it as well. It
is a
See Struts html:rewrite tag. It should make your life easier. Something
like this:
bean:define id='pagingRequestURI'
html:rewrite page='/myAction.do' paramName='myField'/
/bean:define
display:table requestURI='%= pagingRequestURI %' ...
However in the rewrite you'll need myField to be a
Correction: need the paramId attribute too:
html:rewrite page='/myAction.do' paramId='myField'
paramName='myFieldBean'/
-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 3:30 PM
To: Struts Users Mailing List
Subject: RE: Passing
Hi Tobias,
What you are doing looks OK to me. You are correct in that you do NOT need
to do the following in your action:
I added this line:
request.setAttribute(mitarbeiterAuswahlForm,mitarbeiterAuswahlForm);
The bean is already stored in the session by the framework before your
action
-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
What's not so good?
Just one niggle, and it's more of a programming style issue, but
in their example code they have references to their business
objects. They explain that it is important to separate out
This is true for Tomcat, but not necessarily for other servlet containers.
Check your servlet container documentation.
-Original Message-
From: Robert J. Lebowitz [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 6:20 PM
To: Struts Users Mailing List
Subject: Re: Where does
: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 5:26 PM
To: Struts Users Mailing List
Subject: RE: Move to TilesRequestProcessor results in forwarding
exception.
With just the controller
processorClass=org.apache.struts.tiles.TilesRequestProcessor/ I get the
following
s properties of TilesRequestProcessor don't work anymore:
they are replaced by a common logging mechanism.
You should see some messages from the TilesPlugin, indicating what
happens.
Cedric
Jerome Jacobsen wrote:
OK. I added the following to my struts-config:
controller
logging mechanism.
You should see some messages from the TilesPlugin, indicating what
happens.
Cedric
Jerome Jacobsen wrote:
OK. I added the following to my struts-config:
controller
processorClass=org.apache.struts.tiles.TilesRequestProcessor
debug=9/
plug-in className
I just added the following to my *non-tiles* Struts 1.1b2 app configuration
file:
plug-in className=org.apache.struts.tiles.TilesPlugin/
As I understand it this should replace the RequestProcessor with the
TilesRequestProcessor. Well something changed because now I get an
exception when my
Interesting. With the plug-in tag removed I added the following:
controller processorClass=org.apache.struts.tiles.TilesRequestProcessor/
Now it works! So what was wrong with the plug-in usage? Was I supposed
to add some required set-property tags?
-Original Message-
From: Jerome
Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 2:53 PM
To: Struts User
Subject: Move to TilesRequestProcessor results in forwarding exception.
I just added the following to my *non-tiles* Struts 1.1b2 app
configuration
file:
plug-in className
files with the tiles
plugin. I suppose that the tiles factory has failed to initialize, and
so something goes wrong with the RequestProcessor. Can you check the
tomcat log file for tiles messages (maybe you need to enable the tiles
logging) ?
Cedric
Jerome Jacobsen wrote:
Interesting
If you aren't required to use Struts as the web framework you might consider
one of the open-source frameworks that are Swing-like.
There's Echo:
http://www.nextapp.com/products/echo/
And Millstone:
http://millstone.org/
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
All of the DynaActionForm examples I've seen contain simple Java types or
regular JavaBeans. Can a DynaActionForm contain another DynaActionForm?
Something like this:
form-beans
form-bean name=com.blah.LocaleForm
type=org.apache.struts.action.DynaActionForm dynamic=true
form-property
Oh Struts masters,
I get an exception when Struts populates my DynaActionForm from request
parameters. With DEBUG logging on I see the following:
INFO org.apache.struts.action.RequestProcessor - Processing a 'POST' for
path '/changeLocale' DEBUG org.apache.struts.util.RequestUtils - Looking
Hi,
I've used Struts 1.0 tags in my non-struts web applications with no
problems. I simply never used the message resources related properties of
any of the tags.
Now with Struts 1.1b2 I get the following exception for a simple bean:write
name='mybean'/.
javax.servlet.jsp.JspException: Cannot
Hi,
I've seen the Struts 1.1b2 example's use of the Token for transaction
control technique. This is in EditRegistrationAction and
SaveRegistrationAction.
However, I'd like to know if there is a more robost solution to this
problem. I'd like the ability to ignore the second posting and still
If you use the typical singleton pattern (private static member of the
class) then they won't go away until the JVM terminates. Another
alternative is to place them into application scope. There are many ways of
doing this.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL
Can you give us some details on the nice display tag library?
Is it something you came up with, found and modified, or just found?
What does it do for you?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 10:45 AM
To: [EMAIL PROTECTED]
In a Data Access Object (DAO). Keep your business object as persistence
agnostic as possible.
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
-Jerome
-Original Message-
From: Dan Cancro [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 26, 2002 2:01 PM
To:
If the piece that is slowing you down is writing the parsing (in Perl), you
may want to look at xconvert.
http://www.unidex.com/xflat.htm
Maybe you could use it to do the text to XHTML conversion.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, June
Huh? JBoss is FREE.
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 2:41 PM
To: 'Struts Users Mailing List'
Subject: RE: Please help clarify or confirm -- HttpSession
Kevin,
I actually thought about the EJB solution, but we are trying
You can't truly disable back and forward. You can open your site without
the buttons, but there are still ways for the user to issue back and forward
(ALT+LEFT ALT+RIGHT). Thus, you have to resort to javascript tricks. Do a
google search in comp.lang.javascript. There are tons of postings
Use cases are highly variable between authors, projects, companies, etc. :
My use case is not your use case.. Some are high-level, some
medium-level, and some low-level. So the answer really depends on the level
and domain of the use case. Some use cases will likely match Actions,
others a
I believe your workaround is the recommended approach. That is, use one
form bean for both forms. The form bean could implement two different Form
interfaces (one per html:form) to make the seperation more obvious.
-Original Message-
From: Tim Sawyer [mailto:[EMAIL PROTECTED]]
Sent:
in
the browser's history.
Something like: (Javascript)
window.history.go(-2)
but I'm not exactly sure how to detect the event that the
user clicks the back button.
Jerome Jacobsen [EMAIL PROTECTED] wrote:
This may not be possible, but I hope it is. I have a Your
request is being
The JDev 3.2.3 servlet container (Web-To-Go) does not recognize WAR files.
You'll have to exctract the WAR files, however the web.xml file will be
ignored. Any settings from web.xml will have to be added via the Web Object
Manager Wizard and/or the webtogo.ora file and/or wtgapp.xml file. The
Try adding out.clear() right before changing content type. Like this:
%
out.clear();
response.setContentType(application/vnd.ms-excel);
%
-Original Message-
From: yanming lu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 11:45 AM
To: [EMAIL PROTECTED]
Subject: Re: struts and
This may not be possible, but I hope it is. I have a Your request is being
processed, please wait.. page. Once the user gets to the results page and
hit their browser's Back button I want to skip that Wait page.
Here is the page flow:
Form Page - Wait Page - Results Page
--
To unsubscribe,
BeanUtils.populate(), so that in Struts indexed
multiselects not work
Jerome Jacobsen [EMAIL PROTECTED] on 05/30/2002 01:55:54
PM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Kevin Bedell/Systems/USHO
Got no answer on this one from commons-dev mailing list. Can someone here
can help?
---
Maybe I'm misunderstanding BeanUtils.populate, but shouldn't this work!
The exception says
IllegalArgumentException: type mismatch
Tried this with both BeanUtils
Have you looked at these opensource projects?
JBoss http://www.jboss.org/
OpenEJB http://www.openejb.org/
Castor JDO http://castor.exolab.org/
ObjectRelationalBridge http://objectbridge.sourceforge.net/
As for (1) I would have the business objects throw exceptions. I would have
the Struts
The best practice for form beans is that all properties be Strings. Your
Action can do the conversion both ways. For the request it converts the
String to the type expected by the business object. For the response it
converts the business object's type to the String to be set on the form
bean.
You can't use a JSP tag as the value of another JSP tag's attribute. You'd
have to use a JSP expression instead. I'm not sure if a utility exists to
get the message in the same way as the bean:message tag does. Let's assume
there is one called msgUtil.getMessage. Then you would do this:
http://chart2d.sourceforge.net/
http://gvf.sourceforge.net/
http://jcharts.sourceforge.net/
http://www.object-refinery.com/jfreechart/
http://openjgraph.sourceforge.net/
http://technet.oracle.com/tech/java/servlets/content.html
I've only used the last one (Oracle Chart Builder). Haven't
The Wafer project on SourceForge is a project to compare 19 open source Java
web frameworks (including Struts, of course). It is in it's alpha stage.
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/wafer/www/feature-
matrix2.html?rev=1.10
http://sourceforge.net/projects/wafer/
the following:
public String getParameter(HttpServletRequest request, String paramName)
{
String paramValue = request.getParameter(paramName);
if (paramValue == null) return request.getParameter(amp; +
paramName);
else return paramValue;
}
-Original Message-
From: Jerome Jacobsen [mailto
Hi,
I've tried this with Struts 1.0.1 and Struts 1.0.2 and both do the same
thing.
%
HashMap summaryLinkParms = ...
pageContext.setAttribute(summaryLinkParms, summaryLinkParms);
%
html:link href=index.jsp name=summaryLinkParms
inventory summary
/html:link
The above
== null) return request.getParameter(amp; +
paramName);
else return paramValue;
}
-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2002 18:44
To: Struts User
Subject: html:link with Map parameters generating amp; instead of
Hi,
I've tried this with Struts
IMHO JSP and technologies like it are fundamentally flawed. However, I have
not tried out other Java dynamic web presentation frameworks/technologies.
Enhydra's (http://www.enhydra.org/) architecture sounds promising. As I
understand it the HTML designer writes HTML. The Java web developer
I need to create a website that has menus in the header and sidebar.
I see the following challenges in implementing menuing:
1) Maintaining correct menu state when user hits Back, Forward, or jumps in
History.
2) Keeping the JSPs menu ignorant.
Any best practices on menuing which solve the
The docs on bean:define say that it will unconditionally create or replace
the bean with specified id. However I get an error if I want to replace.
For example:
jsp:useBean id=b1 class=MyClass
... init stuff
/jsp:useBean
jsp:useBean id=b2 class=MyClass
... init stuff
How can I get
html:form name=myform action=index.jsp
to produce
form name=myform action=index.jsp
instead of
form name=myform action=/index.jsp
???
I'm starting to use Struts in my project which has its own controller. All
of my JSPs use relative URLs to this controller. I do not want
The docs on bean:define say that it will unconditionally create or replace
the bean with specified id. However I get an error if I want to replace.
For example:
jsp:useBean id=b1 class=MyClass
... init stuff
/jsp:useBean
jsp:useBean id=b2 class=MyClass
... init stuff
Hi,
In what cases does the Struts framework remove a Session Form bean from the
Session? Is this supposed to be done explicitly by the JSP or Action object
writer?
Thanks,
-Jerome
96 matches
Mail list logo