Hi all:
I have a page validated with Validation Framework, but I can get that page from
two diferent jsp inputs. When an error ocurs, the validator always turn me back
to the same jsp input (the one especified) not matter which was the selected
input. It is possible to set two values to "input"
You can't make a dropdown editable, but you can made an input field
selectable, if you are using gmail, try the search, that's what you want,
you can implement it with AJAX.
Regards
On 10/27/06, zhang xiao <[EMAIL PROTECTED]> wrote:
I think you should use it with javascript
>From: <[EMAIL PR
struts-config
The below form-bean is session scoped and hence using reset.
...
public class CustForm extends DynaValidatorForm {
public CustForm() {
}
public void reset(ActionMapping
mapping, javax.servlet.http.HttpServletRequest request) {
On 11/3/06, Patrice Le Cozler <[EMAIL PROTECTED]> wrote:
Hi,
I want to load a property file at webapp start. Since that property file
is
located in my webapp's directory structure, I want to be able to determine
its absolute name at runtime.
I tried "this.getServlet().getServletContext().getReal
On 11/3/06, robin bajaj <[EMAIL PROTECTED]> wrote:
Hi Adam,
Yes, I think html:errors is a pretty good validaiton mechanism.
Especially if you use the Struts validation framework (validation.xml,
validator-rules.xml) for
generating your errors.
Yes I am using validation.xml and validator-rules
Any given action can create an "ad-hoc" interceptor stack
login.jsp
/secure/home
Or, you can created your own named stacks and even declare a new
default interceptor stack for a package
Hi Adam,
Yes, I think html:errors is a pretty good validaiton mechanism.
Especially if you use the Struts validation framework (validation.xml,
validator-rules.xml) for
generating your errors.
For showing errors right beside each specific field that fails the
validation, you will need
to have t
Hi all I am using struts 1.2.9 and starting to work on error validation. So
far I have my login page using:
etc etc etc.
I was wondering firstly Is this still the best manner in which to display
errors ?
The second question which has more to do with the title is
How does one use
Sócrates Medina wrote:
Hello everybody.
I have 2 question :
1)
I've been feeling the needs, just for hobbie, to realize a "test"
videoconference or webcast system over the internet.
I would like to know if some of you have done something related and
where to
get information about it.
2)I wo
I forgot to mention that I am iterating over an arraylist of beans, and I
want each row in the table to associate with a single array list entry (eg a
single bean). I want the approve radio on button 1 to update the status of
the first bean in the list.
-Original Message-
From: Perry Minc
Maybe you can
- override setServlet() and do it after the servlet had benn set
- do another servlet that will load at startup and whose only job is to
find path ...
Mike
Patrice Le Cozler a écrit :
Hi,
I want to load a property file at webapp start. Since that property
file is
located in my
Hi all,
I'm trying to create a registration admin approval page, where an admin
signs in and sees all pending requests on their portal. My idea was to
display all information about the user, and then have a final column with an
approve/deny/noChange radio.
DN, First, Last, .., *Approve o de
Hi,
I want to load a property file at webapp start. Since that property file is
located in my webapp's directory structure, I want to be able to determine
its absolute name at runtime.
I tried "this.getServlet().getServletContext().getRealPath(PROPS_FILE)" but
"getServlet()" returns null when call
Mike Baroukh wrote:
You must use content-disposition header :
response.setHeader("Content-Disposition", "attachment;
filename=\""+myfilename+"\"");
You can also add a mime type with something like
String mimeType = getServletContext().getMimeType(myfilename);
response.setHeader("Content-Ty
On 11/3/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote:
On 11/3/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
>
> On 11/2/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote:
> > Hi,
> > This is the first time I am trying to use indexed properties with
> > DynaActionForm. Now the number of fields that I
On 11/3/06, temp temp <[EMAIL PROTECTED]> wrote:
I want all the parameters in ServletRequest object for this I am using the
method request.getParameterMap(). It returns java.util.Map which contains
request parameter name and its value.When I print out the Map I can read the
key but I c
Hi Rick,
I am using Struts 1.2. Unless Struts 1.3 provides something special on this
aspect,
following is my understanding :
a) If you have a bean that is NOT an actionForm, then you HAVE TO explicitly
put it in request scope using request.setAttribute("mybean",mybean);
to access it in the jsp
On 11/3/06, Balwinder <[EMAIL PROTECTED]> wrote:
Hi All,
I am developing an application in struts in which I needed to download a
file from a server. When iam clicking on download button, file lose its
extension and it with the action ie .do and does not open with the
associated application.
I suppose this values are array of strings ...
temp temp a écrit :
I want all the parameters in ServletRequest object for this I am using the
method request.getParameterMap(). It returns java.util.Map which contains
request parameter name and its value.When I print out the Map I can
On 11/3/06, Balwinder <[EMAIL PROTECTED]> wrote:
Hi All,
I am developing an application in struts in which I needed to download a
file from a server. When iam clicking on download button, file lose its
extension and it with the action ie .do and does not open with the
associated application.
A
Thats Objects default toString() method that does that .
try casting .out((String)value);
Levan Dvalishvili
Support Lead US
Verticali,Inc
(646) 736 - 6075
-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED]
Sent: Friday, November 03, 2006 11:04 AM
To: user@struts.apache.
You must use content-disposition header :
response.setHeader("Content-Disposition", "attachment;
filename=\""+myfilename+"\"");
You can also add a mime type with something like
String mimeType = getServletContext().getMimeType(myfilename);
response.setHeader("Content-Type",
mimeType==null?"
>But I don't...the bean seems to automatically be available to the jsp.
It is automatically available with something like
If you don't specify 'cope' attribute, it lokk in session, request and
application scope.
Of course, it must be a forward from on action to another else, if there
is a re
On 11/3/06, Bruno Melloni <[EMAIL PROTECTED]> wrote:
I am slightly confused about the status of Struts 2. Messages in this
list frequently say that Struts 2 is production-ready and very stable,
yet the Struts site does not show it as a General Availability release.
If a member of the Struts 2 p
Hi All,
I am developing an application in struts in which I needed to download a
file from a server. When iam clicking on download button, file lose its
extension and it with the action ie .do and does not open with the
associated application.
Any help is highly appreciated.
Thanks in adva
I want all the parameters in ServletRequest object for this I am using the
method request.getParameterMap(). It returns java.util.Map which contains
request parameter name and its value.When I print out the Map I can read the
key but I cannot read the value .
Here is the p
I'm trying to understand how and when beans are available within struts.
(1.3.5)
For example, if my Action class contains code like:
MyBean mybean = new MyBean() // NOT an ActionForm, just a regular bean
I would have thought (and the docs suggest) that I would need something
like
requ
On 11/3/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
On 11/2/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote:
> Hi,
> This is the first time I am trying to use indexed properties with
> DynaActionForm. Now the number of fields that I will have is not
certain. So
> does that mean I cant use DynaAc
I am slightly confused about the status of Struts 2. Messages in this
list frequently say that Struts 2 is production-ready and very stable,
yet the Struts site does not show it as a General Availability release.
If a member of the Struts 2 project reads this, could you please
clarify?
-
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jorge Martín,
Jorge Martín Cuervo wrote:
> It's a realy cool question, i've a complex webapp with a lot of
> differents diciplines:
>
> - xstl
> - xsl-fo
> - very large objects in session
These three are going to kill you. XSLT uses a ton of memory
http://tomcatbook.sourceforge.net/book/defaulthtml/ch04.html
I am curious if this a context interceptor or request interceptor and the
functionality you have built in?
M-
This e-mail communication and any attachments may contain confidential and
privileged information for the use of the
designat
From a framework perspective, it's not a difference that makes a
difference. The same with choosing between JSP and Freemarker or
Velocity. The Struts Tags supports all three views equally, and we
keep the door open for XLST and other alternatives.
So, from a development perspective, it's a stra
Do you maintain the actionform in the http session? If you do, it doesn't
matter whether the select is disabled or not. If it is disabled, the
actionform will not be changed since there is parameter in the request.
Regards
On 11/3/06, Dean, Michael <[EMAIL PROTECTED]> wrote:
MJ,
This is sligh
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: 03
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: 03
just curious, what's the benifits of configuring Struts Actions in Spring
? isn't Struts config file enough ?
Hi everybody,
I have written an Interceptor. How do I configure this Interceptor for every
action in struts.xml?
Regards,
Asish
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello !
I need an advice to choose templating framework for using as a view
with Struts 2. We had used Velocity with Struts 1.2 + Velocity-Tools
in the past. Struts has changed since that time :) Are there any
benefits of using FreeMarker against Velocity ?
Thanks !
-
Hi,
I have requirement where uploaded files exists in database as blobs. Now
i need to retrieve the file and push this to the browser.
I have no clue as to what the file type is. So i am not in a position to
set the content type clearly. Does any one know of a utility which can
identify the fil
39 matches
Mail list logo