Hi,
I am trying to open a pdf file. I am using servlet and struts in my application.
Everything is working fine except it ask me two times do you want to open or save the
file, once for the file whoes name is session id and second time for the actual file.
Am i doing some thing wrong.
Please
Hi
I am using the org.apache.struts.upload.FormFile.
Now i want to validate wheather a file path entered by user is valid or not.
Thanks and Regards
Deepak.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi,
I have a requirement, based on certain condition in action class i want the forward to
open a page in same window or different page in new window how can i implement this.
thanks in advance
Deepak.
-
To unsubscribe,
Hi All,
Please help me how to do this. I want to create a instance of ActionError, but i don't
want to the messages to be taken from applicationresource.properties file.
I have to give some other message which will be hard coded.
sample code
I want some thing like this,
err = new
Hi,
I have a jsp in which i have written the following code to display the errors,
logic:messagesPresent
p CLASS=errorsHeader
bean:message key=errors.validation.header/
/p
html:messages id=error
lic:out value=${error}//li
/html:messages
hr SIZE=1 NOSHADE WIDTH=620
after the execution of execute method of the action class i am getting this error.
Any idea why i am getting this error.
DEBUG [Thread-3] org.apache.struts.action.RequestProcessor -
avoid this error, what may be wrong.
Secondly can i avoid calling the function again.
error message is attach to my earlier mail.
Thanks and Regards
Deepak.
-Original Message-
From: deepaksawdekar
Sent: Wednesday, November 05, 2003 4:17 PM
To: Struts Users Mailing List
Subject: Can't insert
Hi,
How can i define a default buttons on a jsp developed using struts.
My requirement is that on when i press enter key from keyboard page should get submit
(eventually calling onclick of submit) and
when i click on esc key it should be cancel ( callin onclick of cancel) .
Thanks and
Hi,
I have a action class extended for DispatchAction class.
Is there any way if the parameter value is not define it will call some predefine
method.
e.g
my strut config is as follows
action
path=/Project
type=com.ft.pmp.gui.action.local.ProjectAction
name=ProjectForm
you can try some thing like this.
logic:notEmpty name=channelForm property=productList
c:set var=disable value=true /
/logic:notEmpty
html:submit onclick=set('editProduct'); disabled=%=disable % bean:message
key=button.edit//html:submit
Thanks and Regards
Deepak.
-Original
Any pointer to implement this for struts appliation.
Deepak.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Change the name of
This variables.
public ColDataBean getDataarray(int index) {
return (ColDataBean)dataarray.get(index);
}
/**
* Set the myarray.
* @param myarray The myarray to set
*/
public void setDataarray(int index ,
Hi All,
I am using struts and jstl on tomcat. But when I start the tomcat I always get this
error. Even though my application works fine. I would like to know what these error
and how to get rid of them
Sep 18, 2003 2:47:53 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at
Where can i get the sample taglib for pagination tag.
Thanks and Regards
Deepak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello,
I have a separate Data Object and Action Form bean. In my form beans have a attribute
which corresponds to Data Object. And had written a separate setter and getter methods
for each attribute of Data object and some addition required for working of struts.
Like this.
e.g.
public class
Hello,
We are using struts and tiles for view component of our application.
We are facing the problem of setting the title for the jsp. The title has to be taken
from the properties file and it depends upon the body of the tiles. Any pointer how to
do this.
my jsp file is as follows.
%@
Hey you can do some thing like this.
c:if test=${TechnologyForm.action == 'CREATE'}
c:set var=action value=/CreateTechnology.do /
/c:if
c:if test=${TechnologyForm.action == 'SUBMITTED'}
c:set var=action value=/TechnologyList.do /
/c:if
c:if
Action attribute in form tag will be missing. if its the requirement, added the name
attribute to all the html: tags.
Deepak.
-Original Message-
From: Ritvik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 8:08 PM
To: [EMAIL PROTECTED]
Subject: Error:Cannot find bean
I am displaying some dropdown boxes on my jsp. I have to take the values for them from
ApplicationResource file.
I have writen a separate file which will read the properties file and return me the
values in array list.
Now I have to set this arraylist to the property of my form bean, now the
Subject: RE: problem in getproperties.
Why are you creating a new I/O object when the execute method gets the
resource passed as a parameter argument?
MessageResources properties = getResources( request );
properties.getProperty( key );
Mark
-Original Message-
From: deepaksawdekar
I am using following code in a jsp,
html:select property=location styleClass=TextBox size=1
html:options property=locationListValues /html:options
/html:select
when getLocationListValues return Null i got the error page saying
getlocationlistvalues return null and so so... I this there
I am using following code to access the property from properties file in my action
class.
Code snippet is as follows...
..
InputStream in = ClassLoader.getSystemResourceAsStream( propertyFilePath);
properties.load(in);
value = properties.getProperty(key);
When I write the main in action
page=/images/nav/homeOff.gif
imageName=home alt=[Home] border=0 tabindex=1 /
/html:link
Cheers Mark
On Wednesday, September 3, 2003, at 06:00 AM, deepaksawdekar wrote:
Thanks mark,
I tried it but its not working at my end. Even I tried to put sparrow,
but in vain. I am
When i have a number as a key in properties file, tag bean:message key=10007 /
gives me some wired error.
I am using this tag in javascripts.
Deepak.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Sorry My mistake .
Wrong properties file. Had put value in double quotes.
like
10007=error;
-Original Message-
From: deepaksawdekar
Sent: Friday, September 05, 2003 3:43 PM
To: Struts Users Mailing List
Subject: bean:message problem
When i have a number as a key in properties
I am using the same jsp for create and modify techonolgy. Due to this i am facing some
problems, like for that i need to set the action in the javascript. But for that i
have to give the full path of action including base folder. which i think its
hardcoding, which i want to avoid.
Is there
Hi,
I am using tabindex to set my tab sequence.
I need to set the tabindex for link also,
my jsp as a line
.
.
html:link page=/NewContact.do tabindex=28Create new/html:link
.
.
But the html is generates as follows for the above line..
a href=/WebGUI/NewContact.doCreate new/a
... missing
Hi,
I am using tabindex to set my tab sequence.
jsp as a code
.
.
html:link page=/NewContact.do tabindex=28Create new/html:link
.
.
Generated html code for the above jsp is
a href=/WebGUI/NewContact.doCreate new/a
... missing tabindex
am i doing something wrong...
Deepak
, at 04:46 PM, deepaksawdekar wrote:
Hi,
I am using tabindex to set my tab sequence.
jsp as a code
.
.
html:link page=/NewContact.do tabindex=28Create new/html:link
.
.
Generated html code for the above jsp is
a href=/WebGUI/NewContact.doCreate new/a
... missing tabindex
am i
Hi,
What about the setter methods of the action form. They may throw some
IllegalArgumentException when you are trying to set some of wrong arguments in the
form. How will you take care it.
Deepak.
-Original Message-
From: Joe @ Team345 [mailto:[EMAIL PROTECTED]
Sent: Saturday, August
Hi All,
I need to disable the html:text component based on some property of bean. Any pointer
how can i achive this.
Thanks and Regards
Deepak .
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Thanks a lot navjot. I will try this.
Deepak .
-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 11:20 AM
To: Struts Users Mailing List
Subject: RE: Design question
|
|Now my questions are :
|1 I am doing write something wrong.
It's better
# contains jsp files
|_ src # contains .java files.
Thanks and regards
Deeapk.
-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 23, 2003 12:21 PM
To: Struts Users Mailing List; deepaksawdekar
Subject: RE: Problem build war using Ant
hi
[mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 11:50 AM
To: Struts Users Mailing List
Subject: RE: Problem build war using Ant
have you checked the ANT version?
|-Original Message-
|From: deepaksawdekar [mailto:[EMAIL PROTECTED]
|Sent: Monday, August 25, 2003 10:39 AM
|To: Navjot
Hi,
We are developing a application which will have number of create screens, as follows :
Create Technology screen,
Create Project screen,
Create user screen.
etc
Each screen will have a asssociated formbean as follows.
TechnologyForm for Create Technology screen
ProjectForm for Create
I am using Ant to build my war file. my build file is
target name=createwar
war destfile=${war.file.name} webxml=WEB-INF/myapp.xml
fileset dir=./pages excludes=*.war, **/*.nbattrs, *.java/
webinf dir=./etcincludes=*.tld, ./struts-config.xml
in the method name first character after get or set should be captial, and while
refering a property in jsp the first character should be small
eg. if you have a bean property as
.
.
.
String lastName;
String getLastName()
{
}
void
I want to send a email on click of some icon.
I am doing this by using mailto in html:link tag, email id has to be get from a
property of bean,
jsp is as follows
..
html:link href=mailto:mytag:map name=it key=email/mytag:map/html:link
mytag is a customised tag to get a value of
When i submit a form, which method is called first, Validation or setter method of
formbean.
TIA
Deepak.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I want to send a email on click of some icon.
I am doing this by using mailto in html:link tag, email id has to be get from a
property of bean,
jsp is as follows
..
html:link href=mailto:mytag:map name=it key=email/mytag:map/html:link
mytag is a customised tag to get a value of
Hi,
Please excuse me for the question but I want to test the performance of my User
interface developed using struts. Mainly I want to test how much time it takes to load
the page if execute method of action class doesn't do any thing except forwarding the
request.
Is there any tool to do
I am using the containment design patter for the ActionForm.
My action form will look like this.
public final class ContactForm extends ActionForm {
private ContactInfo contactInfo;
public int getContactid() {
return contactInfo.getContactId();
}
public
Title: Tiles. using action for attribute value.
I am using tiles Using struts for the page layout
I am using following jsp file to insert the approprate files
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %
tiles:insert page=/common/layout.jsp flush=true
tiles:put
I am using tiles Using struts for the normal header, left menu, body and footer page
layout
I am using following jsp file to insert the approprate files
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %
tiles:insert page=/common/layout.jsp flush=true
tiles:put name=header
How to pass the propery value to javascript function.
I am trying to do some thing like this,
I have number of images in the from, now on click of image i want the name of image
to set in some session variable. I was not able to set the name of image in to session
variable directly. So i used
yes.
-Message d'origine-
De : deepaksawdekar [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 13 août 2003 13:08
À : [EMAIL PROTECTED]
Objet : multiple applicationresources.properties file.
Can we use mutilple applicationresources.properties files in struts1.1 ?
Deepak
What the pros and cons of using different Action class instead of one dispatchAction
class ?
TIA
Deepak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Can we use mutilple applicationresources.properties files in struts1.1 ?
Deepak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
48 matches
Mail list logo