Rather than remember the name of the form bean, I use the following:
c:set scope=page var=formBean
value=${sessionScope[requestScope['org.apache.struts.action.mapping.instanc
e'].name]}/
Note that I uses session scoped form beans - the expression would have to
change slightly for request scoped
You're theory is correct. The input stream is consumed as it is parsed.
The process flow doesn't seem to match what I'm seeing (Struts 1.2.4). In
1.2.4 all off this is handled in the request processor - not the servlet.
The very first thing the request processor does (in processMultipart) is to
Quartz (http://www.opensymphony.com/quartz/) is a job scheduling system
which sounds like it could help you out.
I'd reconsider whether your code should really be in a Struts action. What
are you gaining by using Struts for a non-web bit of processing?
Paul
-Original Message-
From:
I've used Borland's OptimizeIt fairly successfully. I'm not sure of the cost
(there may be a free trial available) - it may well be cheaper to just buy
another processor!
Paul
-Original Message-
From: Ulrich Elsner [mailto:[EMAIL PROTECTED]
Sent: 2005/26/05 17:17
To:
In request scope, under the key 'org.apache.struts.action.mapping.instance'
is an object of type ActionMapping. The name property of this ActionMapping
is the name of the form bean being handled by the current request.
This relates to the form bean specified for the request being processed -
not
How does your system know to send the user to the login page in the first
place?
Typically an application (or the container if you are letting it manage
authentication) detectes that a request is made with no session/an invalid
session/a new session. It then sends the user to the login page.
Container managed security will do this for you (though it has some
drawbacks). If you don't need the advantages of container managed auth (such
as automatic propogation of credentials to EJBs) then you should consider
filters to implement this. Filters are a relatively recent servlet feature -
You can only submit one form at a time. This is an http issue - not a Struts
one.
The solution I have used is to combine all the neccessary fields into a
single form.
I typically do this with nested objects - so my form bean would have two
properties data search say. These objects themselves
project.
Thanks,
Dave
Paul McCulloch
I achieve this by having my tag include (pageContext.include() ) a JSP page
which has the other custom tags I want to use.
Paul
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: 2005/20/04 16:21
To: user@struts.apache.org
Subject: HTML:tags in a Tag
Hello,
Hi Scott,
I can't remeber if it was your question I replied to regarding
authentication where I recommended using a filter to do this, rather than
modifying the request processor. If it wasn't your question then I'd
recommend a serach of the archives. If it was you - I still think modifying
the
not exist? use a redirect to the login page? So
this filter would only look at incoming requests?
Thanks,
Scott
-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 9:33 AM
To: 'Struts Users Mailing List'
Subject: RE: Handling
The two approaches I have succesfully used are container managed
authentication Filters.
Filters are simpler more flexible than container managed authentication,
so unless you need a particular feature of CMA (e.g. automatic propogation
of credentials to EJBs) I wouldn't recommend it.
I
I don't 100% understand your tables. Where does ID come from (the values 1
2 exist in the first view, but 1,2,3,4 in the second).
Are the totals derived?
Give me the SQL for the first view and I'll have a look.
Paul
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL
target_target
-
VAL COL1COL2
month jan feb
val11 3
val22 4
Thanks,
Dennis
Paul McCulloch [EMAIL PROTECTED]
04/08/2005 10:47 AM
Please respond to
Struts Users Mailing List user@struts.apache.org
I use the approach outlined in
http://www.michaelmcgrady.com/button/jsp/button_talk.jsp. In summary each
button, when clicked, puts their value in a different request paramater - by
looking for the presence of a partcicular paramater a different dispatch
method can be called.
This approach should
I'm trying to access the request parameters (i.e. submitted form values) in
a custom tag. This is fine with 'normal' forms but with multipart forms
(enctype=multipart/form-data) this isn't working.
The code in the custom tag does, in essence, what the RequestProcessor does
- calls
Could the button on your parent submit the form to the backend with a new
popup windows defined as the target attribute (of the html form)? That way
your main form values are sent to the backend, but the results (i.e. your
wizard) is shown in the popup window.
Paul
-Original Message-
I don't think you need to do this. If you miss out the requestURI attribute
then the current request's URI is used, which will (in a typical struts
application) be the URI of the last action - not the JSP forwarded to.
If you need more help with this then post to the displaytag mailing list.
This is well of topic - please use [OT]in your subject in the future.
This is a classic multi user application problem. The problem is commonly
known as 'lost update' an often used solution is optimistic locking.
In my experience using a 'version' column on each table is easier to manage
than
I've sucessfully used
http://www.wintertree-software.com/dev/ssce/javasdk.html in my company's
product.
There are many ways to use this product - in my case I submit the form
containing the fields to be checked to an action (with the target set to a
popup window). This was hacked together,
It is not possible. This a restriction of JSP rather than Struts.
One workaround would be:
bean:define id=hunterMessage
bean:message bundle=brands key=hunter /
/bean:define
logic:equal name=item property=name value=%=hunterMessage%
Paul
-Original Message-
From: Ann Vah
Have a look at http://displaytag.sourceforge.net/
Paul
-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED]
Sent: 18 January 2005 09:34
To: Struts Users Mailing List
Subject: Re: How to limit the result?
After long search i found out that MSSQL does not support
I'd guess that RC1 means release candidate 1 - i.e. not the final version.
I *think* that jboss-4.0.1.zip is the final version.
Paul
-Original Message-
From: Jay Chandran [mailto:[EMAIL PROTECTED]
Sent: 13 January 2005 16:40
To: Struts Users Mailing List
Subject: Re: Regarding
Try the display tag mailing list http://sourceforge.net/mail/?group_id=73068
Paul
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 12 January 2005 14:03
To: user
Subject: display tag rendering problem
Hi all
I'd like to use display tags.Actually I
The latest version of displaytag supports a sortPropery setting. This allows
you to display a nicely formatted value but sort on the underlying data.
Column decorators are very rarely required now.
For example:
display:table id=currentRow ...
display:column sortProperty=someNumber ...
When you execute an action the name of the action from used is set in a
request scope attribute org.apache.struts.action.mapping.instance. It's a
fairly simple matter to get the actual actionform object if you know the
scope. For instance, all my forms are session scope so I can get the
just-used
down the road.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Thu, December 23, 2004 4:29 am, Paul McCulloch said:
When you execute an action the name of the action from used
is set in a
request scope attribute
1) You'll pretty much always have a valid session - the container will
create one for you if it isn't already there. What you need to do is
establish if an *initialised* session is there.
One way to do this would bet to, in your initialise session action, create a
session scope attribute to say
HashMap doesn't implement the Collection interface, and has no method for
getting an iterator.
Look at the methods values(), keySet() entrySet() on HashMap which do
return Collections.
Paul
-Original Message-
From: Wessel van Norel [mailto:[EMAIL PROTECTED]
Sent: 15 December 2004
Won't obfuscating your classnames make any analysis of a stack trace, for
example, very difficult?
Anyway - I would expect that any commercial J2EE code obfuscation tool which
changes classnames would know how to modify the XML files. EJBs for instance
are also referenced, by name, in xml config
In the services control panel select the relevant service, choose
properties, and then choose the Log On tab. You can now decide which user
runs the service.
Paul
-Original Message-
From: andy wix [mailto:[EMAIL PROTECTED]
Sent: 26 November 2004 09:25
To: [EMAIL PROTECTED]
Subject:
I'd start by getting things working running tomcat *not* as a service. Once
that is done switch to using a service.
If you look at the service Log On control panel you'll see a Allow service
to interact with desktop checkbox. This will need to be set for you to see
a program running on your
The attribute in org.apache.struts.taglib.html.BEAN is set by the
html:form tag. This is how the other html: tags know which form bean
they are dealing with.
I'd be interested to know why the other html tags are made aware of the form
bean this way, rather than directly asking their enclosing
I wasn't aware that Tomcat had any functionality related to running external
programs. I can tell you that I have successfully called external programs
(our own win32 commandline exes) from Tomcat and JBoss/Tomcat (using
Runtime.getRuntime().exec() as you do).
I think that, unfortunatly, it's
It looks like you are getting the return code from cmd, rather than
shutdown. Could it be that the process you spawn doesn't have it's
environment correctly set up - maybe it can't see shutdown?
I'd try 1) changing my call to exec to call shutdown, with a full path,
directly rather than getting
I don't use DynaForms, so I may be way off the mark, but in my ActionForms I
declare the file fields to be of type org.apache.struts.upload.FormFile.
My understanding of local classes is that they can only be used by the
declaring class - is my understanding wrong?
Paul
-Original
The approach you describe is known as optimisitic locking.
The alternative approach is pessimistic locking, where you mark the records
to be updated as locked at the time you get the records from the datasource.
No other process will be allowed to lock the records at the same time - so
no two
Your action could read the log file, store the contents into a request
scoped attribute. The contents of this attribute can then be displayed in
the relevant tile.
Paul
-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: 23 November 2004 14:40
To: Struts Users
When using RT expressions as attribute values the whole attribute must be a
single RT:
html:checkbox
property=%=Keys.APPLICANT_FULLNAME_CHINESE_NA%
onclick=%=clearAndDisable(this,' +
Keys.APPLICANT_FULLNAME_CHINESE_NA + ');%
N/A
/html:checkbox
Paul
-Original Message-
I think it is actually the source path of the *debug* configuration you are
using.
I just spent a good 20 minutes figuring this out - I've just upgraded to
1.2, but my debug source was pointing to 1.1 which caused a bit of
confusion.
Paul
-Original Message-
From: Adam Hardy
I've come round to Michael McGrady's way of thinking. LUDA is far more
complex than it needs to be.
See http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions
Paul
-Original Message-
From: Vaclavik Radek [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 1:47 PM
See http://marc.theaimsgroup.com/?l=struts-userm=109636066026332w=2
-Original Message-
From: Robin Mannering [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 3:21 PM
To: [EMAIL PROTECTED]
Subject: Bean Constants and JSP EL
Hi,
Wondering if anyone has encountered
That isn't the purpose of the (confusingly named) reset method. Reset is
there to, typically, deal with the html forms submit checkbox fields (they
don't submit anything if they are null).
Paul
-Original Message-
From: Leandro Melo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October
What a nonsense sentence! What I meant to say was:
That isn't the purpose of the (confusingly named) reset method. Reset is
there to, typically, deal with the way html forms submit checkbox fields
(they don't submit anything if they are null).
Paul
-Original Message-
From: Paul
A Map is proabably a better data structure to use than a collection. I'd
consider changing the way the rules are stored, or converting the Collection
to a Map in your action.
Paul
-Original Message-
From: Muhammad Momin Rashid [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 07, 2004
If the probelm is appearing in a development system then I find the easiest
way to do this kind of thing is to download the struts source use my
debugger with the struts code.
Paul
-Original Message-
From: Laurent Duperval [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 06, 2004
I have a specific action which destroys the existsing form bean and then
recreates it based on struts-config.
See: http://marc.theaimsgroup.com/?l=struts-userm=109351495917793w=2
Paul
-Original Message-
From: struts lover [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 06, 2004
Try:
c:set var=usernameError
html:errors property=username/
/c:set
c:if test=${usernameError != null}
trtdc:out value=${usernameError}//td/tr
/c:if
Or something similar.
Paul
-Original Message-
From: Robin Mannering [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October
I found this article the other day, if you fancy rolling your own JDBC
driver. http://www.fawcette.com/javapro/2001_12/magazine/features/jodonahue/
Paul
-Original Message-
From: joe a. [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 7:04 PM
To: [EMAIL PROTECTED]
Subject:
And your question is relevant on a Struts mailing list because ...?
Paul
-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED]
Sent: Monday, October 04, 2004 11:28 AM
To: [EMAIL PROTECTED]
Subject: Coonection pooling
Hi all,
Is there any design pattern that can be
The token is set in a session scope attribute named
org.apache.struts.action.TOKEN. It should be relatively straightforward to
include it's value within the link, as a parameter named
org.apache.struts.taglib.html.TOKEN. I suggest you take a look at the
TokenProcessor class if you have any issues
Try using request scope (rather than the default of page) when you use JSTL
to set your attribute value. Changes to the named attribute will be picked
up by any code which is executed afterwards.
Paul
-Original Message-
From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
Sent: Wednesday,
A simple solution would be to change your build process to combine the base
properties and the applications properties into one resource file.
Paul
-Original Message-
From: Woodchuck [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 30, 2004 2:23 PM
To: struts
Subject:
I don't think scoped attributes parameters are the same thing. Try
http://somehost/app/mypage.jsp?create=something to set a parameter.
Paul
-Original Message-
From: andy wix [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 30, 2004 3:59 PM
To: [EMAIL PROTECTED]
Subject: jstl and
The html:form tag will (or should!) render a hidden field, on your html
form, containing the token value.
Paul
-Original Message-
From: andy wix [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 29, 2004 5:18 PM
To: [EMAIL PROTECTED]
Subject: Refresh problem
Hi,
I have a
['myConstantsBean'].resultDisplayTypeId}
but it's still messy. Does anybody have any better ideas?
Thanks!
On 09/27/2004 04:53 PM Paul McCulloch wrote:
I think you can achieve what yopu want. For example:
bean:define id=somevarbean:write
property=whatever//bean:define
logic:equal
JBoss/Tomcat (which I assume you are referring to) has default behaviour
whereby the compiled JSPs get deleted on graceful server shutdown. Killing
the process hard gets round this issue, or there is a config setting which
disables this. You need to edit the tomcat config file
This is a basic html question - nothing to do with Struts. Try Google first
- http://www.google.com/search?q=input+text++right+align
Paul
-Original Message-
From: BOU Hou [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 9:34 AM
To: Struts Users Mailing List
Subject: how
http://www.displaytag.org/example-export.jsp
Paul
-Original Message-
From: Kranti Parisa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 9:56 AM
To: [EMAIL PROTECTED]
Subject: Need Help: exporting oracle database records to excel files
Hi eveybody,
need some
for answering so many questions today :)
-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED]
Sent: 28 September 2004 10:14
To: 'Struts Users Mailing List'
Subject: RE: Need Help: exporting oracle database records to
excel files
http://www.displaytag.org/example
.. but in our application we need to generate a
seperate excel file for the records...and how to obtain the freezing
properties for the generated excel file
Thanq
Kranti
On Tue, 28 Sep 2004 10:14:18 +0100, Paul McCulloch
[EMAIL PROTECTED] wrote:
http://www.displaytag.org/example
This will be done for you if you enable container managed security for your
web container.
Paul
-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 4:32 PM
To: [EMAIL PROTECTED]
Subject: Storing the last request - JAAS?
I need to
enable this) and
then access it via my action? Do you have a link to doc I can read?
Original Message Follows
From: Paul McCulloch [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Storing the last
And you've tried http://www.google.com/search?q=java+fax+api haven't you?
Paul
-Original Message-
From: Srinivas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 10:55 AM
To: Struts
Subject: Sending or Receiving Fax through My Application.
Hi Guys,
Could it be that you are using html-el rather than html?
Paul
-Original Message-
From: andy wix [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 14, 2004 12:30 PM
To: [EMAIL PROTECTED]
Subject: RTEXPR in struts html tags
Hi,
I can't get struts tags to accept expressions.
It sounds like you may have a misunderstanding of the interaction between
your browser and a web server.
Let's just talk static content first. You request a URL for an html page;
the server sends the page back to you. That's a request. Now if the html
page you recieved contains 2 pictures then
snip
Now let's think about a web application. In this case we have
the idea of
may sessions - but theses are just a way for the server browser to
snip
I've no idea what may sessions are. I probably meant to say In this case
we may have the idea of sessions.
Paul
You could make the response from the submit be an html page which executes
the relevant (parent.reload; close) Javascript.
Alternatively you could submit the form on the popup window so that the
response of this submission was displayed in the parent window (via the
'target' attribute of the
Although this is (probably) possible your object model is making things more
difficult than it needs to be.
I would consider remodelling this as a single Map of Items where each Item
has, in addition to it's other properties, a Collection of SubItems. This
will be fairly easy to render using the
In Outlook 2000 you can do this by choosing View:Current View:By
Conversation Topic, then click the data column to sort.
Paul
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 02, 2004 3:45 PM
To: Struts Users Mailing List
Subject: [OT]
Mailing List
Subject: RE: ActionForm: simply calling reset() or have to
recreate one ?
I see. Checked API doc, saw getServlet() call for
Action. Guess this is what I need to use.
thanks !
--- Paul McCulloch [EMAIL PROTECTED]
wrote:
I think it was me who pointed you down that route
I think it was me who pointed you down that route to destroy recreate a
form bean to clear any data in it.
reset() is not used for this purpose - read up on what reset() does.
servlet is a variable of Action and is available in all methods of your
own Action classes.
Paul
-Original
in actionForm validate?
I tried that but it is complainin about more than one identical action
definition in struts-config.
sebastian ho
On Fri, 2004-08-27 at 20:21, Paul McCulloch wrote:
One way to do this is to have multiple actions defined in
struts-config.xml,
each using the same
These files are need if you wish to use JSP EL in a JSP 1.2 container. If
you use a JSP 2 container then EL is supported for the standard struts tags
(by the container rather than the tags themselves). See
http://struts.apache.org/faqs/struts-el.html for more details.
Paul
-Original
Use fmt:message fmt:param tags instead of the Struts tag. If you can;t use
JSTL then extend the bean:message tag.
Paul
-Original Message-
From: Bharat Bhushan [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 6:02 PM
To: Struts Users Mailing List
Subject: More than 5 Arguments
A getter with a paramteter is not a bean property, and so won't be
accessible with the usual tags.
I'd suggest that the formatting of your date is the responsibility of your
view layer, and not the form bean. The easiest way to do waht you ar after
is to use the JSTL's fmt: formatDate tag:
One way to do this is to have multiple actions defined in struts-config.xml,
each using the same Action class. Each action can have a different input
JSP.
Paul
-Original Message-
From: Sebastian Ho [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 1:05 PM
To: Struts Users
in
the original
format (Czech).
Here is the snip of JSP code I am using:
bean:define id=date name=document property=lastChangedDate
type=java.util.Date/
fmt:formatDate value=%=date% dateStyle=FULL/
Radek
-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED]
Sent: Friday
Try the archive at http://marc.theaimsgroup.com/?l=struts-user
Paul
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 2:02 PM
To: Struts Users Mailing List
Subject: OT - Archive Search
Before I submit questions to the
Am I right in thinking that your solution works for image buttons, whereas
the LookupDispatchAction is for text labeled buttons?
Paul
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 2:35 PM
To: Struts Users Mailing List
Subject: Re:
missing?
Thanks,
Paul
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 2:54 PM
To: Struts Users Mailing List
Subject: Re: LookupDispatchAction (Newbie)
Paul McCulloch wrote:
Am I right in thinking that your solution works
the
functionality of the input type='image' tag.
Michael
Paul McCulloch wrote:
I'm confused. Looking at the wiki (ImageTagUtil class) it
seems that a non
null command will only be returned if there is a request
parameter with name
ending in .x. My understanding of html is that only
I use 3.2.3...
The debug messages can be turned off by playing with the log4j config file
in C:\jboss\jboss-3.2.3\server\default\conf\log4j.xml
You should deploy your application (as either a .war file, or a .war
directory) by copying to C:\jboss\jboss-3.2.3\server\default\deploy. I have
never
There was a thread asking exactly the same question earlier in the week.
Have a look in the archives.
Paul
-Original Message-
From: Woodchuck [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 5:06 PM
To: Struts Users Mailing List
Subject: Re: Struts or JSTL equivalent for
The method I use to is to remove recreate the form bean. I wouldn't use
the reset method - this is not for resetting the form bean in the way you
suggest - it is called for you by Struts. Here is the method I use to do
this:
public ActionForm recreateFormBean(ActionMapping mapping,
You could start with the documentation:
http://struts.apache.org/userGuide/struts-html.html#link
Paul
-Original Message-
From: PC Leung [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 1:39 PM
To: [EMAIL PROTECTED]
Subject: How to embed a method in a link inside a jsp
I've asked this before on the list and didn't get a neat answer. I've
resorted to using c:set scriptlets to extract the value from the static
and store it in a scoped attribute for use with JSTL.
Paul
-Original Message-
From: Janne Mattila [mailto:[EMAIL PROTECTED]
Sent: Thursday,
That's my approach too - the JSPs will either break or do nothing if called
directly.
Pau;
-Original Message-
From: David Suarez [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 2:21 PM
To: Struts Users Mailing List
Subject: RE: Question about authentication
I may be
No disrespect intended - but I'd be inclined to look at my own
code/environment before I started blaming the struts taglibs!
When I get into this sort of position I tend to remove all traces of my jsp
from the container (including the generated servlet etc), redeploy restart
the container. If
Is using forward as an exception handler's path valid? I didn't know you
could do that.
Anyway, I'd reduce the complexity of what you are doing: Start by using an
html page as your path, then try a JSP, then an action.
Paul
-Original Message-
From: Keith Bottner [mailto:[EMAIL
Sorry I'm not with you - there is not much context left in this message, and
I can't see the original post. I believe my suggestion dealt well with
problem described (though I can't be sure now).
Do you have a new requirement - Allow the user to re-use a previously
filled in employee search form.
I'd imagine that a localised version of a browser will display 'Browse' in
the appropriate langauge. Not easy to test though!
Paul
-Original Message-
From: struts lover [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 4:20 PM
To: [EMAIL PROTECTED]
Subject: localizing the
You don't need to populate a form for output. Forms are needed when you want
to gather user input.
Using your example I would have a form to gather the search criteria.
Submitting the form to the first action would gather a list of employess and
store that list in a request scope attribute. It
I think the problem is that you are using a static include. This is an
instruction to the jsp - java compiler that, you want to include the
current *page source* within itself!
You say you get a recursive loop - I'm surprised. I would expect that this
wouldn't compile at all - are you sure yuo
is not included in the source - it is just
completly ignored.
Have you any suggestion on this?
Thank you,
Terry
From: Paul McCulloch [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Recursive pages
One option would be to create your site in JSP. Periodically you could
extract the current site (in each language) as HTML (using wget or similair)
and put the resulting pages on the relevant http server.
Paul
-Original Message-
From: Hevia Vega, Andres [mailto:[EMAIL PROTECTED]
I've implemented this by relying on the behaviour of the virus scanner
installed on the server. The scanner here will not write a file with a virus
to the location on disk you ask it to - it writes it to a quarantine
directory.
My application uploads the file to the server then checks to see if
You can use *either* literals or RT expressions to provide an attribute
value to a JSP tag. You
cannot use both. See JSP.2.13.1 in the JSP 1.2 spec.
So, src=%=request.getContextPath() + /images/a.gif% should work,
though as other posters have noted this is unnceessary as html:img does this
kind
I'd grab the struts source and use your debugger. Put a breakpoint where
you get your NPE. You should then be in a pretty good position to figure
what you've done wrong with your code. The Struts source is generally easy
to understand and pretty well commented.
HTH,
Paul
-Original
1 - 100 of 137 matches
Mail list logo