(buffer, 0, bytesRead);
}
bos.close();
//close the stream
stream.close();
} catch (Exception ex) {
throw ex;
}
file.destroy();
return (mapping.findForward(anywhereyouwant);
}
Laurent
to the Struts temp file.
I can't see how.
I understand that there is maybe no file at all, as a small size a file
will be stored in memory, but is the maybe existing underlying FileItem
avaiable in anyway ?
Laurent
I found that
onclick=this.value=${labelPrinterButton}
is working
Leon Rosenberg wrote:
hi,
try:
onclick=%=this.value='+labelPrinterButton+'%'
regards
Leon
On 8/29/06, Laurent Duparchy [EMAIL PROTECTED] wrote:
Hi,
I'm forced to use a scriptlet to insert a localized label into a tag
Hi,
I'm forced to use a scriptlet to insert a localized label into a tag.
The code is this ;
(Note : this code is changing a button display by an image, defined in
the css file. )
bean:define id=labelPrinterButton
fmt:message key=button.printerFriendly /
/bean:define
: Laurent Duparchy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 9:17 AM
To: Struts Users Mailing List
Subject: Re: taglib nested-el
Thanks for the response.
Unless I missed something, the taglib nested is not just a
cooler way to access child beans, or access beans inside,
say
Hi,
(Sorry if you already get this message, I'm sure if it had been sent.)
is there a taglib nested-el ?
If not, what is the turnarround to evaluate an expression within a
nested tag ?
-
To unsubscribe, e-mail: [EMAIL
, use the JSTL tags as I'm sure
most of the people on this list will tell you.
http://java.sun.com/products/jsp/jstl/
-Original Message-
From: Laurent Duparchy [mailto:[EMAIL PROTECTED]
Sent: 12 July 2006 07:41
To: user@struts.apache.org
Hi,
(Sorry if you already get this message, I'm
Hello,
I would like to know if there is any possibility of optimization in
Struts. Is there a cache of page to increase performance? Or memory
allocation? Anything to speed up the processing of pages?
Thx,
Laurent
fasten my application.
Regards,
Laurent
--
*Laurent Fallet*
Assistant Chef de projet
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
*Groupe MdB*
6 rue Van Gogh 93360 Neuilly Plaisance
Tel. 01.56.49.01.71 | Fax 01.56.49.01.67
www.MdBinformatique.com http://www.MdBinformatique.com
and I would like to have it as 32.00
I'm using the type Float for the form field (not String). Is there a way
to do that?
Thanks,
Laurent
--
*Laurent Fallet*
Assistant Chef de projet
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
*Groupe MdB*
6 rue Van Gogh 93360 Neuilly Plaisance
Tel. 01.56.49.01.71
Hi,
In my project I have a tag library. Its associated tld file is in the
webapp/WEB-INF directory. This works fine on my (linux) server but in
the Netbeans IDE (windows) the tags are never parsed. They stay as
prefix:tagname/ in the HTML served to the browser. The xmlns also
stays in the HTML.
Anna Krajewska wrote:
I have a problem with html:file tag. I want to set a styleclass or some
style parameters for the button, but when I set styleClass=button and
styleId=something (I did not manage to find what this attribute is for,
and there is no difference beetween situations when
Nimish Chourey , Tidel Park - Chennai wrote:
Are you sure there is no way out ? I really feel , there might be some way
out .
Hi,
I use tiles and I personnaly have no problem getting the error messages.
I use the NetBeans IDE. All my logs and 'normal' exceptions (that occur
in Java classes)
Hi,
I am using the Cache taglib from Jakarta Taglibs.
On the documentation page:
http://jakarta.apache.org/taglibs/doc/cache-doc/
there are examples of attributes having RTExpressions (one example is
key=${user}.${verbosity}), but the tld says none of the attributes can
be RTExpressions (you can
[EMAIL PROTECTED] wrote:
// Only add a row when changing the last row of the table
if (s+(rowWithData) == selectId) {
var row = table.insertRow(lastRowInTable);
var className = rowNormal;
if (lastRowInTable % 2 == 0) {
className = rowAlternate;
Hond4 wrote:
I have fllowing problem with my Struts app on Jboss. Here is my filter
String defaultEncode = UTF-8;
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse res = (HttpServletResponse) response;
Stphane Zuckerman wrote:
2) When I select foo, then some javascript reloads the page (it does
a post) with the foo argument, and the rest of the JSP is loaded. This
is the way I'd like to take, since some informations mustn't be in the
clear uselessly.
My problem is that I don't really
Daffin, Miles (Company IT) wrote:
What do people feel about using constants for property names?
In general I feel one should use constants for such things, but it is
far from easy in a web app to do so.
I can't really see the point. A property name is like a variable name,
it will never be
Andrew
Try something like...
html:text property=rcpt bean:message key='admin.msg.rcpt'/
/html:text
If that doesn't work try this:
c:set var=rcptbean:message key='admin.msg.rcpt'//c:set
html:text property=rcpt value=${rcpt}/
-
To
I just realised the problem only occures when my JSP files have the
.jspx file extension. Files whose names end in .jsp do not have this
problem. However, my question remains...
Thank you.
Laurent wrote:
Hi,
There is something I do not understand with the way JSP outputs XML:
If in my source
then handle
appropriately.
-- Jeff
Laurent wrote:
I just realised the problem only occures when my JSP files have the
.jspx file extension. Files whose names end in .jsp do not have
this problem. However, my question remains
Jeff Beal wrote:
Laurent wrote:
Of course, I can perfectly understand that in non-XML JSP mode there
may be glitches in the way the XML is parsed. However, I don't believe
it is acceptable to output something that isn't XML when you've
explicitly demanded to have XML. (For example, Mozilla
Hi,
There is something I do not understand with the way JSP outputs XML:
If in my source JSP file, I have something like this:
a amp; b
The XML parser should interpret this string as a b and represent it
internally as a b. However, when it ouputs that data to the XML file
being sent back to
Hi,
I need to do something like this:
jsp:element name=td
c:if test=${colspan != 1}
jsp:attribute name=colspan${colspan}/jsp:attribute
/c:if
jsp:body
loads more JSTL tags
/jsp:body
/jsp:element
i.e. set the colspan attribute of the td element only if colspan is not 1.
This doesn't
Tim Christopher wrote:
Hi,
Can anyone let me know when an ActionError should be used in place of
an ActionMessage, or visa versa. It seems like the ActionMessage is
preferred as it does not encourage markup to be placed within the
resources file.
Does this mean I should always use the
Nicolas De Loof wrote:
Can someone explain me what's wrong in HTTP / servlet API about char
encoding :
I'm using html:link to build a link with parameters, whose values use
french chars ('', '' ...)
I need to set useLocaleEncoding to get values in my servlet (that is not
a struts action) using
Joe Hertz wrote:
Something like this if youre using 1.2.x:
field property=propName depends=validwhen
var
var-nametest/var-name
var-value((item1 != null) or (item2 != null) or (*this* !=
null))/var-value
/var
/field
Thanks. Is this supposed to work with DynaActionForm's? I tried it and
it
Hi,
How does one implement dependence between property fields? Specifically,
I have three String fields and at least one of them must be non-null.
Can I write this in the validator.xml file? Or do I have to write a
custom validation rule?
Thanks,
L
Hello,
Does anyone have experience using (Mock)StrutsTestCase to test wildcard
actions (actions that end in *) and MappingDispatchActions?
Does it work? Are there any particular issues to be aware of?
Thanks,
L
-
To unsubscribe,
HI,
We've created a bunch of forms to allow users to create new object in
our database. All the forms have a name property in them, and
depending on the object, there are other properties. Most of our
validation is just a simple required.
However, we have a business rule which states that two
Jeff Beal wrote:
Have you tried
html:text name=profile.account property=name/?
Ahaaa! No I haven't. Thanks!
L
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Is there a flag I can set so that Struts tells me what it's doing? I'm
having a problem with one of my actions: when I click on it, I get a blank
page and I don't understand why. I'd like to be able to see what decisions
Sruts is taking in order to load my pages, to determine where I made a
HI,
While tracing my application, this is the debug output I get:
[DEBUG] RequestProcessor - Processing a 'GET' for path '/mainHardwareProfile'
[DEBUG] ActionConfigMatcher - Attempting to match '/mainHardwareProfile' to
a wildcard pattern
[DEBUG] BeanUtils - Cloning bean:
[EMAIL PROTECTED] wrote:
Hi, L.
Did you upgrade your struts.jar recently?
Yes.
The new struts action servlet calls a different method on actions, and it's default
implementation is to show an empty page.
Stumbled over this one also.
Sure, but I've got mappings that should load the correct page. I
Laurent Duperval wrote:
The foo parameter should actually read add. I changed it to see if
my class was being called and it isn't. Otherwise, I would get a
NoSuchMethodExcpetion. My class is defined as:
Grmblb. I found it. There was an execute() method in the class and if
that method
35 matches
Mail list logo