Labels in struts 1.2

2011-06-13 Thread Pankaj Gupta
Hi All, Need quick help. I need to display label with tool tip. But not sure, if strust 1.2 has any label UI, which can be used. Appreciate your help. Thanks, Pankaj

Re: Pagination using Struts library

2011-05-19 Thread Pankaj Gupta
tion > libs. > > DisplayTag is open-source, BTW. > > Dave > On May 11, 2011 7:48 AM, "Pankaj Gupta" wrote: > > Hi, > > > > But I am looking for Pagination in Struts framework specifically. > > > > Thanks, > > Pankaj > > &g

Re: Pagination using Struts library

2011-05-11 Thread Pankaj Gupta
page size for that > > On Wed, May 11, 2011 at 3:25 PM, Pankaj Gupta >wrote: > > > Hi All, > > > > Is there any way Jaakata /SUN library or any api in struts which can be > > used > > to > > implement pagination. > > > > > > I su

Pagination using Struts library

2011-05-11 Thread Pankaj Gupta
Hi All, Is there any way Jaakata /SUN library or any api in struts which can be used to implement pagination. I suggested Display tag and Page Loader, but since they are not open source, not ssociated with Jakarta/Sun, user is not agreeging to it? Any suggestions would be appreciated? Thanks

Question abt jsp and struts 1.3

2008-09-24 Thread Pankaj Gupta
Hi, I am using struts 1.3. I have kept jsp folder parallel to WEB-INF folder. Inside jsp pages I have images folder, where I am keeping the images referred by jsp. In jsp I giving src of images as as : "images/image-1". So when I access the jsp directly, then I can see the images.. But if try

Fwd: How to preselect a radio button in Struts 2

2007-11-20 Thread Pankaj Gupta
Hey, I tried it out   But it didn't worked. I tried name="users(${u_rowNum}) .access_lvl_types_id"/> But this was also of not much help. Sic eit didn't selected a radio button by default I want by default a value of radio button to be pre selected when a jsp page comes up.

Re: How to preselect a radio button in Struts 2

2007-11-20 Thread Pankaj Gupta
Hey, I tried it out   But it didn't worked. I tried name="users(${u_rowNum}).access_lvl_types_id"/> But this was also of not much help. Sic eit didn't selected a radio button by default I want by default a value of radio button to be pre selected when a jsp page comes up. I

Re: How to preselect a radio button in Struts 2

2007-11-14 Thread Pankaj Gupta
tions Developer > Nuvox Communications > > > > > From: Pankaj Gupta <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List > > Date: Wed, 14 Nov 2007 10:42:20 +0530 > > To: > > Subject: How to preselect a radio button in Struts 2 > > > > Hi, >

How to preselect a radio button in Struts 2

2007-11-13 Thread Pankaj Gupta
Hi, I am working on Struts 2 and I want to preselect a radio button. If somebody can let me know how to go about it. Regards, Pankaj

Re: [OT] how to change the look and feel of checkbox

2007-04-17 Thread Pankaj Gupta
Yes I want to style the actual checkbox and not just the text. regards, Pankaj On 4/11/07, James Mitchell <[EMAIL PROTECTED]> wrote: Bolded text Or, did you mean to style the actual checkbox? -- James Mitchell On Apr 11, 2007, at 4:37 AM, Pankaj Gupta wrote: > Hi, >

[OT] how to change the look and feel of checkbox

2007-04-11 Thread Pankaj Gupta
Hi, I am using html:checkbox option to display a check box in disabled mode. This causes the checkbox to be greyed out. Can somebody please tell me how can I show it in bold font and disabled at the same time. regards, Pankaj

Re: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-11-07 Thread Pankaj Gupta
ct Re: Issue: using logic:iterate to display rows and html:button to distinguish one of them What do you get when you try it? (*Chris*) On 11/7/06, Pankaj Gupta <[EMAIL PROTECTED]> wrote: > > I am facing the same problem. I am trying to use the onclick approach but > not a

Re: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-11-07 Thread Pankaj Gupta
I am facing the same problem. I am trying to use the onclick approach but not able to make it work. The parameter I pass to the javascript method does not work. The problem is that the java parameter is not resolved to a value here. regards, Pankaj On 10/26/06, Chris Pratt <[EMAIL PROTECTED]>

How to pass Java parameter to javascript

2006-11-07 Thread Pankaj Gupta
Hi All, I am unable to pass a java parameter to a javascript method. Can you please tell whats going wrong. Here is my code: regards, Pankaj

File Upload validation

2006-10-05 Thread Pankaj Gupta
Hi, I want to do client side validation for file upload such that if the file does not exist or the field is left blank it should show an error. Please suggest how I can do that. regards, Pankaj

Re: Problem in setting the value of hidden field in JSP

2006-09-13 Thread Pankaj Gupta
den field in JSP Pankaj, You shouldn't be setting both the value and the property attributes of html:hidden -Richard Pankaj Gupta wrote: > Hi, > > In a JSP, I am iterating over a collection and want to set a hidden field > with the value of one of the properties of the obj

Problem in setting the value of hidden field in JSP

2006-09-13 Thread Pankaj Gupta
Hi, In a JSP, I am iterating over a collection and want to set a hidden field with the value of one of the properties of the objects contained in hashtable. I am using the following code for that. Can somebody suggest what is going wrong. regards, Pankaj

How to validate an ip address

2006-09-08 Thread Pankaj Gupta
hi, please tell me how can i validate an ip address. Validation needs to eb both client side as well server side. regards

validating an array object

2006-09-08 Thread Pankaj Gupta
hi, i have an array object in my Action Form which i display on the jsp page using iterate. I want to validate those fields using struts validator framework as "required field" & "integer". What should i write in validation.xml to achieve the same? regards, Bhasker

Struts Book?

2006-08-30 Thread Pankaj Gupta
Hi, Can anyone suggest a good Struts book covering advanced Struts topics and covering Struts 1.2. regards, Pankaj

[OT] How to limit tomcat sessions

2006-08-02 Thread Pankaj Gupta
Hi All, I want to limit the number of user sessions to 25. Is it possible to do it directly through tomcat configurations? If yes, then are the sessions limitations per applications deployed or on the whole? regards, Pankaj

Problems using tiles

2006-07-26 Thread Pankaj Gupta
Hi All, I am facing some problems with tiles usage. Can you please help. 1.) I have 3 different JSP's displayed as 3 tile components. Is it possible that the three JSPs be refreshed independently of others? 2.) If this is not possible what is the alternative approach. regards, Pankaj --

Re: How to create custom tag

2006-07-17 Thread Pankaj Gupta
wrote: why not use CSS? On 7/17/06, Pankaj Gupta <[EMAIL PROTECTED]> wrote: Hi All, I want to create a custom tag which wraps the plain html font tag in such a way that it fetches the color of the font to be displayed on a pre-configured severity level. Can anyone pl suggest how can I d

How to create custom tag

2006-07-17 Thread Pankaj Gupta
Hi All, I want to create a custom tag which wraps the plain html font tag in such a way that it fetches the color of the font to be displayed on a pre-configured severity level. Can anyone pl suggest how can I do that. regards, Pankaj -

Problem using logic:present tag

2006-07-14 Thread Pankaj Gupta
Hi All, I am passing parameters to my JSP like: contextRelative="false"/> and reading the parameter using logic:present tag which is not working: < bean:message key = "activeTitle"/> However if I do the same thing using scriptlets: <% if(request.getParameter("isActive") != null

Re: Redirect not working

2006-07-13 Thread Pankaj Gupta
n action to specifically display the jsp file and use a redirect to that action. Keep in mind I'm no expert and could be completely wrong about this one. James Pankaj Gupta wrote: > Hi All, > > I have specified redirect="true" in my action forwards but tomcat > fails

Redirect not working

2006-07-12 Thread Pankaj Gupta
Hi All, I have specified redirect="true" in my action forwards but tomcat fails to find the jsp. I have kept all my jsp's in WEB-INF/jsp folder so as to avoid direct jsp access. Please suggest how can I make redirect to work. regards, Pankaj --

Re: Server side validation not working

2006-07-12 Thread Pankaj Gupta
Yes Samere, Adam J wrote: Did you set the input attribute on your action mapping in struts-config.xml ? -Original Message- From: Pankaj Gupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 12, 2006 8:55 AM To: Struts Users Mailing List Subject: Re: Server side validation not

Re: Server side validation not working

2006-07-12 Thread Pankaj Gupta
Yes I did. Krishna, Hari wrote: did u put properly in jsp -Original Message- From: Pankaj Gupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 12, 2006 6:13 PM To: Struts Users Mailing List Subject: Server side validation not working Hi All, I am using server side validation

Server side validation not working

2006-07-12 Thread Pankaj Gupta
Hi All, I am using server side validation in my application. The problem is that when validate() returns an ActionErrors object, the page displayed becomes blank. I have no clue as to why this is happening. There is no javascript error or exception thrown. Pl Help. regards, Pankaj

How to pass request attribute to a JSP

2006-07-06 Thread Pankaj Gupta
Hi All, I want to use same JSP for reading and editing - meaning that if I pass an attribute like read=true all text fields should be disabled. How can I do it? How can I specify a parameter in my forward like contextRelative="false"/> contextRelative="false"/> regards, Pankaj -

Validation giving strange problem - pl help

2006-07-05 Thread Pankaj Gupta
Hi All, I am facing a strange problem and have no clue about it. As soon as I invoke my application, instead of the requested page I see a lot of weired code like: * @param form The form validation is taking place on. */ function validateFloatRange(form) { var isValid = true; var focusField

Fwd: [OT] How to specify classpath for an application

2006-06-28 Thread Pankaj Gupta
-- Forwarded message -- From: Pankaj Gupta <[EMAIL PROTECTED]> Date: Jun 28, 2006 11:03 AM Subject: [OT] How to specify classpath for an application To: user@struts.apache.org Hi All, I want to specify a config folder in my classpath which will not be part of my war fil

Re: Time validator

2006-06-27 Thread Pankaj Gupta
} if (result == false) { errors.add(field.getKey(), Resources.getActionMessage(validator, request, va, field)); } return result; } Maybe it's not the best you can found on the web! Use it at your own risk. Pankaj Gupta wrote: Is there a validati

[OT] How to specify classpath for an application

2006-06-27 Thread Pankaj Gupta
Hi All, I want to specify a config folder in my classpath which will not be part of my war file. Can you please suggest how can I do that? I want to place my config files outside the war file for anyone to modify it. regards, Pankaj

Statistics support in Struts?

2006-06-27 Thread Pankaj Gupta
Hi All, Is there any way to provide the statistics features provided by the javax.management.j2ee.statistics package in struts? regards, Pankaj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

How o display a hashtable in jsp

2006-06-24 Thread Pankaj Gupta
Hi, Can you please suggest how can I display key and value(both) from a hashtable in my jsp. Currently I am using the following approach but it prints only the value and not the key. name="match" property="value"/> regards, Pankaj --

Re: How to call a method from struts tag

2006-06-23 Thread Pankaj Gupta
that would be difficult to do with the kind of design that we have. I need it in JSP only. If you can suggest a way of making a custom tag for it, it would be great. Lance Semmens wrote: Can you do this in you action then have an isEnabled() method on your component? Pankaj Gupta wrote: Hi

How to call a method from struts tag

2006-06-23 Thread Pankaj Gupta
Hi All, I want to call a method of an object in session scope that would check whether the component I wish to display on my JSP should be enabled or disabled. Can you please suggest how I can do that without using java scriptlets in my JSP. regards, Pankaj -

Re: ActionErrors not being displayed in jsp

2006-06-20 Thread Pankaj Gupta
Use ActionMessages in place of ActionErrors. See: http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 regards, Pankaj [EMAIL PROTECTED] wrote: Hi, public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { Act

How to set size of submit button

2006-06-18 Thread pankaj . gupta
I am using html:submit for creating 4 sumit buttons. The requirement is to make them of same size. can anyone suggest how to do that? regards, Pankaj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

JSP does not display error message from validate()

2006-06-17 Thread pankaj . gupta
I am trying to display error message in JSp page using the following: The code in my validate method is: errors.add("invalidDate", new ActionMessage( endDate + " must be greater than " + startDate )); return errors; Any clue whats wrong? regards, Pankaj

Problem with prepoulating form

2006-06-16 Thread Pankaj Gupta
Hi, I am facing a problem with prepoulating the form. I am using following code to prepopulate the form in my Action class: Vector eventTypes = new Vector(); eventTypes.add(new LabelValueBean("StartFailure", "Value 0")); eventTypes.add(new LabelValueBean("LowMemory", "Value 1")); request.setAttr

How to get index of the iterator in logic:iterator

2006-06-16 Thread Pankaj Gupta
Hi All, Can some one please suggest that how can I display the serial no. in my table using the index of logic:iterate tag. regards, Pankaj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

[OT] Problem using MyEclipse

2006-06-16 Thread Pankaj Gupta
Hi, I am using Myeclipse for building my struts application. The problem that I am facing is that when I try creating a Striuts 1.2 action, it gives an error that the project is 1.1 compatible and cannot allow 1.2 action class. Can you please suggest how can I change the project to 1.2 compli

Problem using contextRelative path

2006-06-15 Thread Pankaj Gupta
Hi All, I am using the following i my struts-config. The problem is that when the validations fail the application is not able to forward to the input form as the contextRelative param is not false for it(I have no idea how it can be done). Please suggest what should be done. type=

Time validator

2006-06-15 Thread Pankaj Gupta
Is there a validation-rule for time(hh:mm:ss format) as it exists for date in struts validator framework? If not, has anyone implemented it? I dont want to reinvent the wheel. regards, Pankaj - To unsubscribe, e-mail: [EMAIL P

How to implement autorefresh?

2006-06-14 Thread Pankaj Gupta
I need to call a method from the action class that periodically refreshes my page in struts application automatically. Can someone please suggest how to do it? regards, Pankaj - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: Default value for text field

2006-06-14 Thread Pankaj Gupta
8, @: [EMAIL PROTECTED] Linpro AS - Leading on LinuxTel: +47 21 54 41 00/02 Vitaminveien 1AFax: +47 21 54 41 01 PB 4 Grefsen, 0409 Oslo WWW: http://www.linpro.no/ Pankaj Gupta wrote: How can I specify a default value for a text field and also read it from application resources. I do

Default value for text field

2006-06-14 Thread Pankaj Gupta
How can I specify a default value for a text field and also read it from application resources. I dont want to read it from form bean though. regards, Pankaj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

How to specify default displayed value in html:select

2006-06-13 Thread Pankaj Gupta
Hi, Please suggest how can I specify which value(s) to be displayed as selected by default in html:select tag, when specified through collection attribute. regards, Pankaj - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Accessing ApplicationResources in Action class

2006-06-12 Thread Pankaj Gupta
Hi, Can anyone please suggest how can I access ApplicationResources.properties from my Action class. Specifically I want to read the labels for my LabelValueBean object from the application resources. regards, Pankaj - T

How to prevent a page from loading

2006-06-05 Thread Pankaj Gupta
If a user copies the URL displayed in the browser after login, and pastes it in a new browser window, his page gets displayed. How can I prevent such a behavior. regards, Pankaj - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Struts Editing in IDE

2006-06-05 Thread Pankaj Gupta
Can you please suggest some good plugin for eclipse for me. regards, Pankaj Andy Dailey wrote: I have been using struts for quite a while now (4 years) and am wondering if there are any decent drag and drop capabilities within any of the current IDE's that allow easy development of applications

[Fwd: Conditional display of components]

2006-06-05 Thread Pankaj Gupta
Hi, I wish to display some components like buttons and links conditionally meaning if the user is a basic operator, he should not see a submit button and a link on his page otherwise if a user is an advanced operator he should be allowed to see it. Can somebody please suggest how should I do it.

Re: How to set hidden field in struts

2006-05-23 Thread Pankaj Gupta
, since the field is not hidden from the user (he/she can see it by viewing the page source) and it is easily spoofed. Not all of the requests you get need to come from your forms, anyone with telnet can send you hand-crafted GET/POST requests. Inactive hide details for Pankaj Gupta <[EM

How to set hidden field in struts

2006-05-22 Thread Pankaj Gupta
Hi, I want to implement a feature in struts wherein nobody can open a page directly by copying the url and pasting it in a new browser window.i.e. any page of the application can only be reached through login page. If the user pastes the url in the browser, he is redirected to the login page.

Re: How to disallow opening a page directly from URL

2006-05-18 Thread Pankaj Gupta
tag to determine if the user is in some role. -- Paul --- Pankaj Gupta <[EMAIL PROTECTED]> wrote: Hi All, I am new to struts and have a basic question. I am making an application and I want that all the pages should be accessed through the menu items only.i.e. if a user copies the

How to disallow opening a page directly from URL

2006-05-17 Thread Pankaj Gupta
Hi All, I am new to struts and have a basic question. I am making an application and I want that all the pages should be accessed through the menu items only.i.e. if a user copies the url in the browser the page should not get loaded. How can I enforce such a security? Another question is ho