You must be carefull. You can don't see the whole text (because the \n
characteres).
Are you using an java IDE to debug your source ? If this is true, try to
write the contents of your property in your log file...
as as wrote:
Hi,
I am generatinga textare on my jsp with this:
textarea
Raghu, i think this .html is wrong. It must be like :
form action=/saveParams.do
input type=text name=value(param1)/
input type=text name=value(param2)/
/form
Please, try it.
Raghu Havaldar wrote:
I do not have a problem while displaying those properties. However,
when a form (which has a
html:form method=post
I think that post is the default but i'm not sure...
as as wrote:
Andreas,
Thanks for the quick reply.
I am using struts form tag as follows.
wondering ,syntax wise, how I can mention form method as GET...in this tag.
Thanks in advance,
Sam.
Guillermo, we're also using DBCP.
Our approach is to use our own Properties subclass. This subclass
can read (and decrypt) a previously encrypted property file (using a
2-way dummy encryption algorithm)...
I don't know if this is the best way but it works for us :-)
object
How do look like the properties in your form ? Something like this :
html:text property=value(test1)/
html:text property=value(test2)/
?
Are the other properties (non map-backed) ok ?
Raghu Havaldar wrote:
Hi,
Am using Struts 1.1, WinXP.
Trying to use map-backed action forms to load
Ciaran, Brian is right.
Using IE, you can get a different session if you try to execute a new
instance of IE (do not use Open a new window). But you must be
carefull because even the links in Windows' startup menu can just Open
a new window (instead starts a new IE instance).
When you are
I think that i've found the problem. Please, look below :
Ciaran Hanley wrote:
Hi thanks for your reply,
I am using form based authentication. Cookies are enabled. I am storing all
session information using request.getSession() for example:
I think that i've found the problem. Please, look below :
Ciaran Hanley wrote:
Hi thanks for your reply,
I am using form based authentication. Cookies are enabled. I am storing all
session information using request.getSession() for example:
Have you import logic taglibs ?
steve hazelwood wrote:
I have an action that creates a bean. That bean has a
property myStrings that returns a collection of String
objects.
On a jsp, I want to list the strings. If my jsp has
this:
logic:iterate id=myId name=myBean
property=myStrings
I don't know if this will help but try to search charset encoding
at tomcat maillist archive. You will find some tips in there.
Take a look at http://tagunov.tripod.com/i18n/i18n.html (try to
contact Anton, if you want).
-Original Message-
From: Adam Hardy [mailto:[EMAIL
You can try this also: http://jakarta.apache.org/tomcat/faq/misc.html#utf8
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent:
Monday, March 01, 2004 3:47 AM
To: Struts Users Mailing List
Subject: Re: Problems with UTF-8 and forms
On 03/01/2004 12:29 AM Jon Bohm wrote:
document.forms[0].action='somethig.do' works to me...
to change a field with name action, i guess you must do something like
document.forms[0].action.value
Slattery, Tim - BLS wrote:
If you use a field called action in the form, how can you
change the form action with javascript. When I try
I don't know if a got it...You can use nested beans inside your
ActionForm, like:
FirstBean - has get/set name and get/set id
SecondBean - has get/set version
MyActionForm - has get/set firstBean and secondBean
You can do :
html:form...
html:hidden property=firstBean.id/
html:text
Try logic:iterate
(http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate)
and bean:write
(http://jakarta.apache.org/struts/userGuide/struts-bean.html#write).
Look at mail archive
(http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]).
I think somebody has been sent a
I don't know if your construction is possible (i think it is). But try
to use bean:define :
bean:define id=myProp name=myBean property=beanProperty/
html:link href=%=myProp%Link Text/html:link
Kunal H. Parikh wrote:
Hi All!
Can someone tell me as to how do I call bean:write .../ inside
How about this ?
logic:iterate id=myString name=myform property=ListofStringobjects
bean:write name=myString/
/logic:iterate
Ramadoss Chinnakuzhandai wrote:
finally I got the following working..
logic:iterate id=list name=myform property=ListofStringobjects
bean:define id=xyz name=list
Please, try
html:form method=post action=/openReport
or
html:form method=post action=/myapp/openReport
You can also do a view source and look the html generated by tag
html:form
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Sorry, my mistake.
When you use view source of your browser, how does the html code look
like ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The exception is been generated when .jsp is rendered (and not when you
submit the form), hum ?
Try to enable struts debug log (in your log4j config file) and try to
check the package/name of your action (in struts-config.xml)...
Try
% String propertyName = value( + myId + ); %
html:text title=myinput property=%=propertyName% readonly=true
size=2 /
Brian Boyle wrote:
Hi!,
Thanks for the quick response.
I have already tried declaring myId as String myId =
value.getCandId();. I then put myId as an argument in html:text
It sounds good to me !
Andrew Petro wrote:
Incidentally, have there been any thoughts on this list of differentiating
out a struts-user-newbie list from the main struts-user list?
I think it's wonderful to have a welcoming place for newbies to post
questions, but I think it might also be
Frank, please, correct me if i'm wrong:
You have a Java Bean (validUser) and an ActionForm (PersonalDetailsForm)
and you want to transfer property values from validUser to
PersonalDetailsForm. Is it right ?
If the name of these properties are the same, you can use
Hi, everybody.
Is there a pattern for multi-page session forms ? How should i
proceed when using multi-page forms (like wizards) ? Must the fields be
repeated (as input hidden) in all pages ? When (exactly)
ActionForm.reset() will be called for forms like this ?
Thanks in advance.
Hi.
Can i use the struts mechanism to fill 2 *different* action forms from 1
http request ?
I've a button in a .jsp page. When the user to press this button, i need
to save a session scoped form before forward to a new page (the new page
uses another form). Is is possible ?
Thanks.
Yes, i got a error.
I've just added a org.apache.struts.actions.ForwardAction (to struts
initializes and populates the session scoped form - named A) between
the .jsp file (which contains the button) and a previous existent action
(the one which receives a new request scoped form - named B).
.. and i'm not sure I *do*
understand your question now either.. would you explain your problem and what you
are trying to do once again..?
Daniel Henrique Alves Lima wrote:
Yes, i got a error.
I've just added a org.apache.struts.actions.ForwardAction (to struts
initializes and populates
Solved !
I don't know why but when i use multipart-form i get an error while
populating the second form (like the case of Guillermo). Then i've
removed enctype from html:form and everything works !
**Case 2** source.jsp - AAction (AForm) - BAction (BForm) -
destiny.jsp (BForm)
Where
Hi,
I don't know if i could understand your doubt (correct me if i'm
wrong) but you must forward to your .jsp page and not redirect...
If you have a global forward (in your struts-config.xml) like
forward name=/my_forward_name path=/my_jsp.jsp redirect=false\
the request will be
Ok, but i think you will lose your request attributes (because redirect
will generate a new request from your browser)...Session or application
attributes will be preserved.
mucus snot wrote:
Hi,
I am intending to use a redirect rather than a forward.
For me, it adds clarity for the user,
You can find a validator example inside the struts-1.1 .tgz:
struts-validator.war. Install it under Weblogic and check the validations...
sougata wrote:
HI Paul
Thanks for the reply.can u pls let me know how to do it in weblogic.Can u
pls send me a small example.
Thanks
Sougata
-Original
If the bean is an ActionForm, you must use the name of the form in the
struts-config.xml.
If your bean is only a plain Java Bean, you must add it to request,
session, page or application scopes (using request.setAttribute() or
session.setAttribute, for instance)...
Vishal Arora wrote:
it's
31 matches
Mail list logo