On 12/18/05, Irfan Shaikh <[EMAIL PROTECTED]> wrote:
> No, user can add has many row he needed before submit... I had just added
> one row to handle this scenario... It should work for as many row user has
> added...
I would start from verifying that browser sends all rows to the
server. If you us
I think, ArrayIndexOutOfBoundsException actually shows that changes to the
DOM are being submitted.
ATTA
On 12/19/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> On 12/18/05, Irfan Shaikh <[EMAIL PROTECTED]> wrote:
> > No, user can add has many row he needed before submit... I had just
> add
Same way I need to create a table and all fields are editable when user
double clicks.
Irfan can you tell me how can we create a new row using java script?
-Original Message-
From: Irfan Shaikh [mailto:[EMAIL PROTECTED]
Sent: Monday, December 19, 2005 1:12 PM
To: Struts Users Mailing Lis
Hi All.,
In my JSP I have the lot of input field and provide the RESET and NEXT
Button. While clicking next button I am doing form validation for input filed.
My problem is ,When page gets loaded and give input field value and click RESET
button,all values are gets Resets. Fine.
Enter input
Uses the HTMLArray values to populate each cell of table.
Parameters : eTable : Table which has to be processed
HTMLArray : Array of HTML Components that need to be used in the
cells..
function insertRow(eTable, HTMLArray, CellFocus) {
// Insert the row and set the color etc.
var
so, have you been able to submit successfully?
On 12/19/05, Irfan Shaikh <[EMAIL PROTECTED]> wrote:
>
> Uses the HTMLArray values to populate each cell of table.
> Parameters : eTable : Table which has to be processed
> HTMLArray : Array of HTML Components that need to be used in the
> c
Not yet, let you know once done with that..
Thanks :)
On 12/19/05, atta-ur rehman <[EMAIL PROTECTED]> wrote:
>
> so, have you been able to submit successfully?
>
> On 12/19/05, Irfan Shaikh <[EMAIL PROTECTED]> wrote:
> >
> > Uses the HTMLArray values to populate each cell of table.
> > Parameters
I want to prevent user from double submiting data. Searching the internet i
found this js code:
Because i use html:submit my code is:
But when i use this code, after clicking on submit button i get error on page
message in IE.
my question is: how can i prevent user from double clicking subm
U may have to use validToken method provided by struts
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 19, 2005 6:29 PM
To: user@struts.apache.org
Subject: submit double click, js and html:submit
I want to prevent user from double submiting dat
"But when i use this code, after clicking on submit button i get error
on page message in IE."
Can you throw us a bone here? What is the error?
Larry
On 12/19/05, Amol Yadwadkar <[EMAIL PROTECTED]> wrote:
> U may have to use validToken method provided by struts
>
> -Original Message-
>
Stanislav wrote:
But when i use this code, after clicking on submit button i get error on page
message in IE.
Uh... what's the error?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EM
I am getting same error when i submit the form having newly added row.
Error is :
javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:
Well, error is "Error on Page" (left bottom corner). Details: something about
wrong method.
> "But when i use this code, after clicking on submit button i get error
> on page message in IE."
>
> Can you throw us a bone here? What is the error?
>
> Larry
>
>
> On 12/19/05, Amol Yadwadkar
Can you give me some code example?
- Original Message Follows -
> U may have to use validToken method provided by struts
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 19, 2005 6:29 PM
> To: user@struts.apache.org
> Subject: su
Details: Error: Object doesn't support this property or method
- Original Message Follows -
> Well, error is "Error on Page" (left bottom corner). Details: something about
> wrong method.
>
>
> > "But when i use this code, after clicking on submit button i get error
> > on page mess
Stanislav-
You can set the items property to disabled in javascript..take a look at
http://forums.devshed.com/java-help-9/disabled-submit-button-returns-null-206877.html
Sok szerencset,
Martin-
- Original Message -
From: "Stanislav" <[EMAIL PROTECTED]>
To:
Sent: Monday, December 19, 2005
FYI, I didn't see anything wrong with the Javascript on that submit
button, so I threw together a quick test page, just straight HTML, and
sure enough, no error occurs for me (IE6)... my guess is that something
else about the page is interacting in an unexpected way, or just the fact
that your usin
Hi all,
I know this is more of a JSTL question but it would be really helpful
if anyone could help me understand the usage of c:out with Expression
Language (EL) which replaces the .
I believe Struts did not implement EL for tag and few
others and suggests using instead.
I have a situation whe
Hi,
I did spend much time on OpenLazlo but gave it up because of lack of
appropriate constructs for
dynamic GUI design and lack of proper support.
I would love to use Ajax since it is a light-weight solution. But don't want
to deal with all
the Javascript coding. I wonder what people are usi
On 12/19/05, Srini Pillai <[EMAIL PROTECTED]> wrote:
>
>
> This is the code I tried to display a link with a value in the dynamic
> form:
>
>
> .
> ?methodToCall=removeElement&id= value="${request['FAEditorForm'].id_${counter}}" />">Remove
> .
>
struts tags (from what I remember
I suggest AjaxTags from Java Web Parts:
http://javawebparts.sourceforge.net
Hit the javadocs link, then jump to the taglib package, the documentation
for the package should give you a good idea what its all about, then you
can grab the JWP distro and try out the sample app for some working
exampl
Thanks Rick, for responding quickly.
>>I'm not sure what you are attempting to do with:
value="${request['FAEditorForm'].id_${counter}}"
I am trying to access the value from the ActionForm for property
'id_0', 'id_1' etc... depending on the value of the ${counter}. The
example you had suggested u
Here is my Code,
request.getSession().removeAttribute("sessionState");
request.getSession().invalidate();
response.sendRedirect("/BMS/logout_success.jsp");
It invalidates properly but when i hit back button its asking to
resubmit.Iread it some where that by implementing Tokens we can avo
Thanks guyz, done with adding new row functionality. :)
On 12/19/05, Irfan Shaikh <[EMAIL PROTECTED]> wrote:
>
> I am getting same error when i submit the form having newly added row.
> Error is :
>
> javax.servlet.ServletException: BeanUtils.populate
> org.apache.struts.util.RequestUtils.p
On 12/19/05, Srini Pillai <[EMAIL PROTECTED]> wrote:
> Thanks Rick, for responding quickly.
>
> >>I'm not sure what you are attempting to do with:
> value="${request['FAEditorForm'].id_${counter}}"
>
Thumb rule: EL expressions that look like this are invalid:
${...${...}...}
(unless you have ap
On 12/19/05, Srini Pillai <[EMAIL PROTECTED]> wrote:
>
> Thanks Rick, for responding quickly.
>
> >>I'm not sure what you are attempting to do with:
> value="${request['FAEditorForm'].id_${counter}}"
>
> I am trying to access the value from the ActionForm for property
> 'id_0', 'id_1' etc... depend
Rahul,
Thanks for your reply... I tried to test the solution you had
suggested, but
${FAEditorForm.formProperty}
doesn't seem to work since it is trying to use 'formProperty' as it is
without substituting the value for it (even though I used ). It
throws an exception stating that "formProperty"
Craig,
The looping I had mentioned is for displaying the text boxes (which
grows dynamically) as well. Not sure how I could move that to the action
class. Unless I am missing something. I understand the fact that the
arguments and values for a link can be fed as a Map as you had suggested
but the
I think you what u want to write is
${FAEditorForm[formProperty]}
instead of
${FAEditorForm.formProperty}
On 12/19/05, Srini Pillai <[EMAIL PROTECTED]> wrote:
> Rahul,
>
> Thanks for your reply... I tried to test the solution you had
> suggested, but
>
> ${FAEditorForm.formProperty}
>
> doesn'
I have a jsp which is FORM1
using DynaValidatorForm for this.
there is a table in this which has to display they the contents other form?
can we do this using DynaValidatorForm? i.e one of it's attribute being
another form?
Also, when exactly do we have to use the nested tags?
Thanks.
___
On 12/19/05, fea jabi <[EMAIL PROTECTED]> wrote:
>
>
>
> Also, when exactly do we have to use the nested tags?
You don't have to use them, but they make things easier/cleaner when you
need to display fields that are updatable that are nested. For example here
are two ways.. one with JSTL and one
Slight correction to above (copy and past problems when trying to make it
generic):
On 12/19/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
>
> On 12/19/05, fea jabi <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Also, when exactly do we have to use the
Thanks. I sure can see the difference.
can we use a DynaValidatorForm as an attribute in another DynaValidatorForm?
Thanks.
From: Rick Reumann <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm and nested tags.
Date: Mon, 1
On 12/19/05, fea jabi <[EMAIL PROTECTED]> wrote:
>
> Thanks. I sure can see the difference.
>
> can we use a DynaValidatorForm as an attribute in another
> DynaValidatorForm?
I'm guessing you could just simply nest DynaValidatorForms (but I'm sure
you'll want to use 'Lazy' ones otherwise you'll
Irfan,
You might want to conclude this thread for future readers with similar
issues. Scope, problem and solutions that didn't work and the one that
finally worked might be helpful.
Just my 2 paisas!
ATTA
On 12/19/05, Irfan Shaikh <[EMAIL PROTECTED]> wrote:
>
> Thanks guyz, done with adding ne
Hi
i want to show an image in my jsp page. i DON'T want to user the image's
address (on the server's hard disk) and i want to get it directly from db
and set it to the form or something
i also don't want to user ServletOutputStream outStream =
response.getOutputStream(); because it opens the i
You can do this:
You need to write a Servlet or Action call which will identify the Image
uniquely and then get the Image from anywhere (Local harddisk or DB, etc)
and then flush the content with IMAGE MIME.
Hope this helps.
Thanks and regards,
Pazhanikanthan. P
Project Leader,
Caritor (Ind
Reza,
You will have to create a servlet (or Action) that "streams" the image
back from the database. Then, for the src of your img tag, you simply
point to the servlet or Action.
Take a look at the Wiki page talking about the DownloadAction:
http://wiki.apache.org/struts/StrutsFileDownload
Nope.
You can't include an image's data with the html in a request. You'll
have to have a servlet dedicated to seving up images using
response.getOutputStream(), and in your JSP use an URL for the servlet
with an image ID or something similar, like the above post.
-Josh
--
"His comrades fought
I work it out :-)
code that works for me:
var submitcount=0;
function checkFields()
{
if (submitcount == 0)
{
submitcount++;
return true;
}
else
{
alert("This form has already been submitted. Thanks!");
return false;
}
}
and...
-
40 matches
Mail list logo