('button.label.submit')}/
/s:form
/body
Suggestions, corrections, pointers, or links to examples/tutorials of how to
do this properly would be greatly appreciated.
Regards,
Lance Hill
the authenticated user from Spring Security for use in
an Action
Try:
SecurityContextHolder.getContext().getAuthentication().getPrincipal()
-Original Message-
From: Lance Hill [mailto:la...@baldhead.com]
Sent: Tuesday, March 16, 2010 5:15 PM
To: 'Struts Users Mailing List'
Subject: Getting
I am trying to get access to the currently logged in user, but when I call
SecurityContextHolder.getContext().getAuthentication(), the Authentication
returned is null. I am assuming the user is logged in since they have access
to the secure page I am testing, but I don't know how to tell for sure
, March 17, 2010 11:52 AM
To: Struts Users Mailing List
Subject: Re: SecurityContextHolder.getContext().getAuthentication() returning
null
2010/3/17 Lance Hill la...@baldhead.com:
Any hints about why SecurityContextHolder.getContext().getAuthentication()
would return a null?
Spring version
I need to access information about the currently logged in user. I don't
think putting the user into the session during login is how it is supposed
to be done, but I have not found examples of how to get access to the
current user from Spring/Spring Security. Can someone please provide a link
or
the authenticated user from Spring Security for use in
an Action
What mechanism are you using to handle authentication/authorization?
-Wes
On Tue, Mar 16, 2010 at 5:14 PM, Lance Hill la...@baldhead.com wrote:
I need to access information about the currently logged in user. I don't
think putting
using spring-security 2.0.4.
-Wes
On Tue, Mar 16, 2010 at 5:42 PM, Lance Hill la...@baldhead.com wrote:
I have Spring Security set up to use CasAutheticationProvider to provide a
UserDetails object.
I did find an example that uses the SecurityContext to obtain an
Authentication object
the
struts-spring-plugin 2.1.8 and when I started to implement spring security,
I used version 3 which requires spring version 3, but the plugin relies on
spring 2.5.6.
Thank you,
Lance Hill
and a Wordpress
site.
Thank you,
Lance Hill
Try zos.flush() instead of close()
It is not your responsibility to close the servlet output stream, it is the
container's.
2008/10/13 Ariel [EMAIL PROTECTED]
Hi Everybody:
I 'm using struts 1.2 version, in my web application I have a chart where
the user can add several files that are
told me this first thing.
Cheers,
Lance.
of date and haven't found any reference to tiles2
struts1 integration.
Thanks in advance,
Lance.
://tapestry.apache.org/tapestry5)
each to their own :)
2008/10/13 Martin Gainty [EMAIL PROTECTED]
Good Morning Lance
I would start here
http://www.jajakarta.org/struts/struts1.2/documentation/ja/target/userGuide/struts-tiles.html
Any reason for your optioning against Struts2.x?
Martin
2. Use (and probably fix) the Struts 1/Tiles 2 plugin:
This is what I'm after... thanks!
Spring 2.5 has an integration layer to Tiles 2:
Yep... that's the easy bit :)
Thanks,
Lance.
2008/10/13 Antonio Petrelli [EMAIL PROTECTED]
2008/10/13 Lance Java [EMAIL PROTECTED]:
Is it possible
You should be right if you implement the 4 indexed bean methods on your
form.
@see
http://java.sun.com/j2se/1.4.2/docs/api/java/beans/IndexedPropertyDescriptor.html#IndexedPropertyDescriptor(java.lang.String,
java.lang.Class)
Here is an example if your property holding the files is called
http://translate.google.com/translate_t?langpair=fr|en
Is just the usual disclaimer etc apart from the link
sudeepj2ee wrote:
HI
I could not understand the language pls can u communicate in english,
I have seen the link posted by you but the functionality what i want is
calling the
Why not draw all 3 pages but hide 2 of them and javascript the next page
on and off.
All pages inside the same form, last page submits.
Charbel Abdul-Massih wrote:
I am developing a wizard type flow with 3 pages in the wizard...
We'll call them page 1, page 2, and page 3...
I need
param name=expression[0-9]*(\.[0-9]+)?/param
Paolo Beccari wrote:
--- Paolo Beccari [EMAIL PROTECTED] wrote:
field-validator type=regex
param name=expression[0-9]/param
message key=requirednumber/
/field-validator
/field
/validators
--- Dave Newton [EMAIL PROTECTED]
Ah... pls ignore
Paolo Beccari wrote:
param name=expression[0-9]*(\.[0-9]+)?/param
Hi Lance, as already established (see previous posts), it is not a
matter of regular expressions.
The matter is: the variable in the Action is a Long (and MUST be a Long).
The regex validation does
This might also be because you are not specifying heights (and widths)
for images.
If you have any other static widths heights (menu area, header area
etc) you should specify them too.
Lance.
Al Sutton wrote:
P.S. If you're considering pre-compiling, the only thing you'll loose is
the lag
it locally on Weblogic 9.2 and Java 5...
I doubt it's a pre-compile issue now because the slowness and
streaming-like rendering is experienced on every request, not just the
first...
Any other ideas???
Thanks,
Charbel
-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: Wednesday
Firstly, I hope you are only using request scope for these forms.
Session scope would kill your application.
Have you tried experimenting with the JVM options?
(http://blogs.sun.com/watt/resource/jvm-options-list.html)
In particular -Xms (initial Java heap size) and -Xmx (maximum Java heap
You could use jsp tags to create a hidden template row.
Client side you can clone the template row using dwr.util.cloneNode()
then tweak the appropriate bits.
newtostruts struts wrote:
I'm trying to use DWR with Struts2. The problem is when I'm trying to build the row of a table
with a a
You could forward rather than redirect.
Another option is to use flash scope which has been discussed on this
list previously. My understanding of this is that a filter manages a map
on the session and requests have access to attributes added by the
previous request.
I have never implemented
I am saying the standard struts tags do check session scope if
scope=session or no scope is provided, so it's probably a bug in your
code.
Nuwan Chandrasoma wrote:
Hi,
I would go for JSTL tags, but i dont really get what you trying to say!
Thanks,
Nuwan
- Original Message - From:
Do you have the approptriate getters and setters?
eg
action.getAcc().setFirstName()
action.getAcc().setLastName()
Mansour wrote:
I tried it. It's not working either.
Guillaume Carré wrote:
2007/5/18, Mansour [EMAIL PROTECTED]:
how to populate 2 fields in my action with one value ?
for
I have used sitemesh in the past http://www.opensymphony.com/sitemesh/
This is a filter that intercepts the html on the way out, parses it then
decorates it with a header, menu etc. etc.
lightbulb432 wrote:
Great, thanks!
Out of curiosity, what are the alternatives to Tiles for JSP
You could use a lazy list and a factory to create your empty person objects.
private List persons =
org.apache.commons.collections.list.LazyList.decorate(new Vector(), new
InstantiateFactory(Person.class));
Cheers,
Lance.
Jaan Tark wrote:
problem solved, ignore
gonna write the problem
java.util.Set does not guarantee that the order of it's elements remain
constant and does not provide set(int,Object) or get(int) methods.
Use a List or an array in the web tier and perhaps convert to a set in
validation / middle tier.
Cheers,
Lance.
Jaan Tark wrote:
continues
so i can
HttpSession.invalidate() will remove all attributes from the session and
consequent calls to getAttribute() on an invalidated session will cause
an IllegalStateException.
It could be that an attribute with the same name is in another scope
(page, request or application) and is being picked up
, patternid)));
In your jsp you can get it by
html:text name=bean property=hashMap(7) /
@see http://struts.apache.org/1.x/struts-taglib/indexedprops.html
Cheers,
Lance.
jalal udeen wrote:
hi all
how to retrieve values from the HashMap
i have set it as
*hashMap*.put
This should do what your after
window.toolbar.visible = false;
window.menubar.visible = false;
Check out http://developer.mozilla.org/en/docs/DOM:window for more info.
Peter Neu wrote:
Hello,
I'm using Struts 1.x. Do you know how to disable the toolbars with dojo? Is
there a tutorial? I
to the file system and the wrapped response.
Cheers,
Lance,
nagesh.kumar wrote:
Hi All,
I have a scenario like I need to persist or get stream of generated output
JSP OUT PUT [HTML]
I have flow like ACTIONJSP gives HTML out oput to browser
Now I need to persist this generated html from jsp
,
I need to send a mail by using the same html generated by jsp
just like your idea [save the file to the server]
How can I implement this do u have any example where I can refer.
Thanks Regards
Nagesh Reddy.
-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: Tuesday
I think this is your problem...
FileInputStream fin = (FileInputStream) in;
Do you need to do this?
Can you do RcsaPOIEventListner.readExcelStream(in);
The input stream is coming from the request which is not necessarily saved to
disk / read from a FileInputStream.
Kirthi wrote:
I am
There are a couple of tricks
1. The referring page can be found in request.getHeader(referer)...
the referring page's request parameters can not be found though so this
will probably not work.
2. You can implement a javax.servlet.Filter
This pushes and pops pages (and their parameters) to a
(formFile.getInputStream());
Gotta go, good luck
Martin Gainty wrote:
Lance
saw this on nabble..
ExcelFileUploadForm excelForm = (ExcelFileUploadForm) form;
FormFile formFile = excelForm.getExcelFile();
InputStream in = (InputStream) formFile.getInputStream();
FileInputStream fin = new (FileInputStream
It sounds like you are still redirecting after the repsponse is comitted.
If you attempt to do this on tomcat, an error will be reported then
instead of redirecting, the redirect page will be included at the end of
the current page.
Gajbhe, Laxman (Contractor) wrote:
Lance,
Thanks for your
telling it to redirect itself. I'm sure one of the
s2 users out there have some suggestions here.
Lance.
Lance wrote:
It sounds like you are still redirecting after the repsponse is comitted.
If you attempt to do this on tomcat, an error will be reported then
instead of redirecting, the redirect
Sounds like a classpath issue to me.
Try searching your webapp for multiple struts.jar or
commons-fileupload.jar. Are they both in the same dir? (WEB-INF/lib
probably)
Michel Van Asten wrote:
Hi,
I got a strange problem...
I got this error message When I try to do an upload in my
I was doing this sort of dodgy thing at one stage, dynamically writing
jsp's to the filesystem
To get the real path of the webroot you can use the following code:
String webroot = pageContext.getServletContext().getRealPath(/);
if (!webroot.endsWith(/)) {
webroot += '/';
}
From memory this
You could use a reset button
input type=reset value=Label for reset button /
Chaudhary, Harsh wrote:
Yea, that's what I was thinking too. I was just wondering if Struts (or
some other API) has a built-in caching mechanism. Thanks though,
Harsh.
-Original Message-
From: [EMAIL
The response is considered committed once you have written to the
outputstream (perhaps in a jsp).
Once a response has been comitted, you can not redirect or forward etc.
The best solution is to redirect before you write anything to the output
stream, sometimes this is not possible.
Another
is loaded again with the wrong values
you previously typed and an error message. If you push a reset
button, it will reset to the wrong values ...
The only way is to use an action for this.
Mike
Lance a écrit :
You could use a reset button
input type=reset value=Label for reset button
I highly recommend using ant to manage your project including clean,
compile, deploy, javadoc, etc. etc.
http://supportweb.cs.bham.ac.uk/docs/tutorials/docsystem/build/tutorials/ant/ant.html
http://ant.apache.org/
srikanth_arr wrote:
i am new to struts when i compiling the my first struts app
I'm not a struts2 user (unfortunately) but this seems bad to me. From
what I see of the s2 tags, they abstract you from the fact that dojo is
being used under the hood.
Should struts2 have it's own core js that proxies through to the dojo
implementation?
Scott Nesbitt wrote:
Works great!
a href=bean:message key=contact.mail /Email Link/a
piloupy GOTTAPIL wrote:
Hi,
I'd like to do something like this in a JSP file :
html-el:link href=${contact.mail}Email Link/html-el:link
where contact.mail is a key from my MessageResources.properties.
I think the solution is quite simple,
You could implement a javax.servlet.Filter that is mapped to *.do that
pushes and pops to a session based stack.
Deep Blue Li wrote:
Hi,
I'm using the way now, but just wonder if is there anyway I can do it
using
serlvet API. Thanks!
Regards,
Deep Blue
On 4/19/07, piloupy GOTTAPIL [EMAIL
work. By changing this, request.getQueryString() will work as you
expect in your jsp so you may not need a filter after all.
Lance.
Lance wrote:
You could implement a javax.servlet.Filter that is mapped to *.do that
pushes and pops to a session based stack.
Deep Blue Li wrote:
Hi,
I'm using
You could implement a javax.servlet.ServletContextListener that is
notified when your webapp loads / reloads.
Needs to be attached to your webapp in web.xml.
zhangfan wrote:
On 4/18/07, Zhang, Larry (L.) [EMAIL PROTECTED] wrote:
I need to load an .xml file when Websphere server starts
Another option is to make a disabled style in your css and blur onfocus
html:select property=id styleClass=disabled onFocus=this.blur()
:
/html:select
Using a hidden element with the same name is slightly dodgy in that
form.elements[id] will return a different value depending if the
hidden
Do you have a getValue(String key) method?
I am not a s2 user but I have read the OGNL spec so sorry if I'm wrong
but OGNL needs
public PropertyType getPropertyName(IndexType index)
and public void setPropertyName(IndexType index, PropertyType value)
You could use fmt:formatDate / in JSTL
http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf
http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf
Peter Neu wrote:
Hello,
I need to format a number string in a html:text tag because the default
value must be written with a
Oops, i mean fmt:formatNumber /
Lance wrote:
You could use fmt:formatDate / in JSTL
http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf
http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf
Peter Neu wrote:
Hello,
I need to format a number string in a html:text tag
to embed the value in the html:text field so the
user is able to edit the value. That won't work with 2 tags. :o(
-Ursprüngliche Nachricht-
Von: Lance [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 16. April 2007 10:45
An: Struts Users Mailing List
Betreff: Re: HowTo Format Numbers in html:text
:
But that's more code than the brute force approach:
input name=usage value=bean:write name=Obj property=usage
format=##/ /
If have about 20-30 items. :o(
-Ursprüngliche Nachricht-
Von: Lance [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 16. April 2007 11:05
An: Struts Users Mailing List
Only way to get data into a Vector is by a scriptlet or in your action.
Struts 2's OGNL has a nice way of doing this but unfortunately with S1
we're left with dirty scriptlets in JSPs some of the time.
JSTL has a c:forTokens / that sometimes comes in handy where you
provide a comma separated
?
-Ursprüngliche Nachricht-
Von: Lance [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 16. April 2007 11:31
An: Struts Users Mailing List
Betreff: Re: AW: AW: HowTo Format Numbers in html:text tag?
Your brute force approach does not use html:text / tho?
Also, I have a suspicion that struts
Lance wrote:
Sorry, it helps if i read your question fully.
The way to do this is to name your html form elements using in the
struts (BeanUtils) conventions
If you have a form element named myVector[3] then struts will call
myForm.getMyVector().set(3, ?)
It is sometimes easiest to use
;
}
Instantiating my Vector in the constructor won't help...
Struts should call
myForm.getMyVector().set(0, ?)
Do I need to implement this metod? Do I need to write my own setters/getters to
do this?
How can I do this exactly?
Thanks,
MB
- Original Message
From: Lance [EMAIL PROTECTED]
To: user
therefore add one value to the Vector. I try to do this in my JSP,
because I don't know how to call a specific bean method from the action class...
Hope I could explain it clearly...
Thanks for you help,
MB
- Original Message
From: Lance [EMAIL PROTECTED]
To: Struts Users Mailing List
a bean method that performs the actual adding? I couldn't figure it
out...
Of course, when you press the submit button (not the add button) all the
previously added elements must be available...
I hope my goal is clear for you,
Thanks a lot,
MB
- Original Message
From: Lance [EMAIL
I hadn't heard of this before and it looks quite good.
Has anyone had good / bad experiences with it?
In particular with layout:collection / is it possible to get a
reference to the current object and use it in and onRowClick for example?
Antonio Petrelli wrote:
2007/4/13, OSMAN Mohamed
ew... that sounds icky!
have you considered DWR, it marshalls calls from javascript to java then
marshalls the result back into javascript objects for you.
http://getahead.org/dwr/overview/dwr
on the serverside you can use WebContextFactory.get().getSession()
Mahesh Parab wrote:
Hi David,
u
.
-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: 13 April 2007 16:35
To: Struts Users Mailing List
Subject: Re: ajax and struts 2
ew... that sounds icky!
have you considered DWR, it marshalls calls from javascript to java then
marshalls the result back into javascript
this problem / have a different suggestion?
Cheers,
Lance.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
this clears things up a bit.
trad-ex wrote:
Hi Lance,
Sorry for my misunderstanding your issue.
What I understood is:
Your Filter class works fine except file parameter.
Is this correct ?
So, after I looked over your implementation, I found the line below:
parameterMap
extend a common BaseAction and I was able to plug the filtering logic in
there. It would have been nice to do it in a filter. I'm still
interested if someone else has an answer.
Cheers,
Lance.
trad-ex wrote:
Hi Lance,
Just curious, I implemented multipart request handler using Struts 1.2
You could use DWR's reverse ajax which allows the server to push data to
clients rather than the clients polling which can be inefficient.
http://getahead.org/dwr/changelog/dwr20m1
http://getahead.org/dwr/download
YagNesh wrote:
Hi,
We have been trying to create a trading portfolio page
the request if i do
this.
I am using struts 1.3.5
Thanks,
Lance.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
at the similarities in all of the
nested tags I get the they're all broken in this way.
Cheers,
Lance.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
List'
Subject: RE: Upgrading to struts 1.3.5, nested tags are broken
Instead of using investor.name use record.name
Try this will work
-Original Message-
From: Lance Semmens [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 07, 2007 2:54 PM
To: 'user@struts.apache.org'
Subject: Upgrading
Problem solved... it ended up being one of our own custom tags that wasn't
cleaning up after itself. Have changed the tag to mimic the behavior in the
standard nested tags.
Cheers,
Lance.
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: 07 March 2007 14:22
stable but it's pretty close.
http://getahead.ltd.uk/dwr/changelog/dwr20m1
Lance.
-Original Message-
From: robin bajaj [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 21, 2006 2:41 PM
To: Struts Users Mailing List
Subject: session maintenance in struts webapp
Hi Folks,
In my Struts
It would be easy enough to do by writing a custom javax.servlet.Filter. You
would map your Filter to *.do in web.xml.
Alternatively you could configure a JDBC appender in log4j for
org.apache.struts.action.RequestProcessor at level debug although you might
find a bit too much junk is being
--
From: Lance Semmens [EMAIL PROTECTED]
To: 'Struts Users Mailing List' user@struts.apache.org
Date: Tue, 14 Nov 2006 09:51:00 +
Subject: RE: RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form
The only thing I can think is maybe
Not exactly what you asked for but LocaleAction can set the locale then
redirect to a page.
http://struts.apache.org/1.x/struts-extras/apidocs/
-Original Message-
From: Mahmoud Saeed(RSW) [mailto:[EMAIL PROTECTED]
Sent: 14 November 2006 23:30
To: user@struts.apache.org
Subject: custom
go wrong ?
Ken
於 四,2006-11-16 於 15:16 +,Lance Semmens 提到:
I think you're missing a '/'
forward name=success path=/showDocs.jsp /
To keep your webapp a bit cleaner, perhaps consider
forward name=success path=/WEB-INF/jsps/showDocs.jsp /
-Original Message-
From: Ken Hu [mailto
於 五,2006-11-17 於 10:22 +,Lance Semmens 提到:
hmm... are you using IE?
You may need to turn off show friendly error messages in the options
somewhere. I'm thinking you've got a server error that IE is hiding from you.
Any errors in the log?
-Original Message-
From: Ken Hu
scrap that idea... I was being a stupid head. cdms is your context path which
it ok.
-Original Message-
From: Lance Semmens [mailto:[EMAIL PROTECTED]
Sent: 17 November 2006 13:01
To: 'Struts Users Mailing List'
Subject: RE: can not reach the jsp file
The URL that I ask my browser
I think you're missing a '/'
forward name=success path=/showDocs.jsp /
To keep your webapp a bit cleaner, perhaps consider
forward name=success path=/WEB-INF/jsps/showDocs.jsp /
-Original Message-
From: Ken Hu [mailto:[EMAIL PROTECTED]
Sent: 16 November 2006 09:03
To:
to see what format the field names are
as an example.
HTH,
-ed
On 11/14/06, Lance Semmens [EMAIL PROTECTED] wrote:
The least messy way is to post to an addRecord action which adds a blank
record to your form. Form must be in session scope. This requires a page
redraw so is less responsive
to see what format the field names are
as an example.
HTH,
-ed
On 11/14/06, Lance Semmens [EMAIL PROTECTED] wrote:
The least messy way is to post to an addRecord action which adds a blank
record to your form. Form must be in session scope. This requires a page
redraw so is less responsive
as the formbean and
java.util.Map as the contained object for a given property, and the
framework does populate new records into the contained map for me.
-ed
On 11/15/06, Lance Semmens [EMAIL PROTECTED] wrote:
I realize your field names have to comply with the struts naming (ie so
usually
involves cloning an existing row and blanking out the fields.
Lance.
-Original Message-
From: Balwinder [mailto:[EMAIL PROTECTED]
Sent: 14 November 2006 10:05
To: Struts Users Mailing List
Subject: Dynamically adding row!
Hi All!
I am trying to add a row in a table dynamically
however I then loose the ability
to only get the checked value put into my action form after the page
is submitted.
From: Lance Semmens [EMAIL PROTECTED]
To: 'Struts Users Mailing List' user@struts.apache.org
I found this by googling struts crud
http://www.learntechnology.net/struts-crud.do
-Original Message-
From: santas [mailto:[EMAIL PROTECTED]
Sent: 14 November 2006 12:03
To: user@struts.apache.org
Subject: how to add edit/add/delete functionality
Hi all
i am new to struts
can anybody
A possible solution might be to
1. Set validate=false for your action.
2. Configure forwards for each of your error pages
2. Explicitly call form.validate() in your action
3. Call saveErrors() if validation fails
4. Redirect to the appropriate forward
Lance.
-Original Message-
From
that posts to a different action to your save.
Lance.
-Original Message-
From: Andrew Martin [mailto:[EMAIL PROTECTED]
Sent: 14 November 2006 13:36
To: Struts Users Mailing List
Subject: Validation + multiple Submit buttons
Hi,
I have just begun to add validation to my forms using struts
A couple of things to check
1. Is your get action using the same form as your post action?
2. Do the names of the checkboxes in the html match your form?
3. Where are you resetting the checkboxes? I'm hoping you're doing it by
overriding ActionForm.reset().
-Original Message-
From:
/
/html:select
/html:form
Any other suggestions welcome.
Thanks,
Lance.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
: html:form without writing a form in the resultant HTML
On 11/10/06, Lance Semmens [EMAIL PROTECTED] wrote:
1. Can I use struts tags (eg html:select) without wrapping them in an
html:form (I'm pretty sure the answer is no).
2. Can I wrap my tags in html:form but somehow not output form
Dojo has a control that sounds like what you're after.
http://dojotoolkit.org/
go to:
see it in action -- form widgets -- form tour and look at the state field.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 26 October 2006 14:30
To: user@struts.apache.org
On your upload form, your property that maps to your file upload input should
be of type org.apache.struts.upload.FormFile. Then save the FormFile
.getFileData() and FormFile.getContentType() to the database.
-Original Message-
From: Vijay Venkataraman [mailto:[EMAIL PROTECTED]
Sent:
On your upload form, your property that maps to your file upload input should
be of type org.apache.struts.upload.FormFile. Then save the FormFile
.getFileData() and FormFile.getContentType() to the database.
-Original Message-
From: Vijay Venkataraman [mailto:[EMAIL PROTECTED]
Sent:
and
where this should be plugged into struts. Also any problems I may come
across. I realize that only 1 instance of each action is loaded per
application. This is fine, my proxy will be loaded once and the delegate
action (which of course has no member variables) will be re-loaded.
Cheers,
Lance
Try html:form action=/process
-Original Message-
From: Marcello Savino [mailto:[EMAIL PROTECTED]
Sent: 18 September 2006 13:29
To: Struts Users Mailing List
Subject: R: R: Dynamically Generated html:Text
Something like that:
public class myMapForm extends ActionForm {
public
On jboss, this can be done by configuring the SystemPropertiesService.
@see jboss\server\all\deploy\properties-service.xml
Properties can be configured inline in the xml file or can be declared in a
separate file which is referenced by properties-service.xml.
Hello,
I'm searching for best
I do this using 3 actions
loadAction - called first time the page is loaded, populates the form with
values from the db, the form has session scope.
editAction - called by a click on the add or delete button, adds or removes
a row from the form. Add and delete buttons should post to this action
Displaytag will do it
http://displaytag.sourceforge.net/11/displaytag/tagreference.html
See the pagesize attribute.
-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED]
Sent: 01 August 2006 08:20
To: user@struts.apache.org
Subject: pagination
Hi All,
Am using
1 - 100 of 119 matches
Mail list logo