Managing code between Action Class and JSP.

2010-09-10 Thread Anjib Mulepati
One more query suppose "resultList" have thousands of records still is it (using request object and putting all result in it) as request.setAttribute("resultObjects", resultList); the efficeint way to send result to view? Any alternative to this? Thanks Anjib On 9/10/2010 9:27 AM, CRANFORD

Managing code between Action Class and JSP.

2010-09-10 Thread Anjib Mulepati
elgus. 2010/9/10 Anjib Mulepati: One more query suppose "resultList" have thousands of records still is it (using request object and putting all result in it) as request.setAttribute("resultObjects", resultList); the efficeint way to send result to view? Any alternative to t

Using ARIA with Struts tag

2010-10-05 Thread Anjib Mulepati
Can anyone tell me how we can write ARIA attribute in struts tag. I ma using Struts 1.3.8 Thanks Anjib

Re: Store permanently file in temp directory

2010-10-12 Thread Anjib Mulepati
Does the (temporary!!) files get deleted automatically? I though that we have to delete it with some additional code. Can any one make clear on this. Also in validation part, I didn't find a way file names in the file input box reload automatically after validation fail. It is possible to do

Re: Store permanently file in temp directory

2010-10-13 Thread Anjib Mulepati
I am not using common-fileupload library so do I have to write extra piece of code to delete? Anjib On 10/13/2010 3:11 AM, Rahul Mohan wrote: Does the (temporary!!) files get deleted automatically? I though that we have to delete it with some additional code. Can any one make clear on th

Re: Store permanently file in temp directory

2010-10-13 Thread Anjib Mulepati
re not? You sure? http://www.mvnbrowser.com/artifact-details.html?groupId=struts&artifactId=struts&version=1.2.9&tab=DEPENDENCIES#tabs <http://www.mvnbrowser.com/artifact-details.html?groupId=struts&artifactId=struts&version=1.2.9&tab=DEPENDENCIES#tabs> Dave On Wed, Oct 13, 2010

Validation in Struts 1

2010-10-25 Thread Anjib Mulepati
Hi Can we combine client side validation and server side validation? i.e. using validation.xml as well as validation in validate() method as well. Does it make any sense? Thanks

Re: Validation in Struts 1

2010-10-25 Thread Anjib Mulepati
-side validation, that's combining declarative and programmatic validation, unless you're talking about the JavaScript validation method. Dave On Mon, Oct 25, 2010 at 1:52 PM, Anjib Mulepati wrote: Hi Can we combine client side validation and server side validation? i.e. using validation

Adding new attributes to struts1 tags

2010-11-01 Thread Anjib Mulepati
Hello I am trying to add aria attributes to struts tags like . Currently it doesn't support. How can i add this? I am using struts 1.3.8 Anjib

Re: Adding new attributes to struts1 tags

2010-11-01 Thread Anjib Mulepati
I need to do this in almost all available tags so can u post me some link where I can read about how to do this? Thanks On 11/1/2010 11:26 AM, Paul Benedict wrote: You can subclass the TextAreaTag class and write a custom TLD. -- Paul On Mon, Nov 1, 2010 at 10:09 AM, Anjib Mulepati wrote

Re: Adding new attributes to struts1 tags

2010-11-01 Thread Anjib Mulepati
text| <http://www.w3.org/TR/wai-aria/states_and_properties#aria-valuetext> Currently I can't add any of the ARIA attributes to struts tags. Anjib On 11/1/2010 11:33 AM, Paul Benedict wrote: If you don't mind, what attributes are missing? On Mon, Nov 1, 2010 at 10:31 AM,

Re: Adding new attributes to struts1 tags

2010-11-01 Thread Anjib Mulepati
ould be so difficult to extend to support other attributes. Paul On Mon, Nov 1, 2010 at 10:42 AM, Anjib Mulepati wrote: All ARIA attributes like * |aria-autocomplete| <http://www.w3.org/TR/wai-aria/states_and_properties#aria-autocomplete> * |aria-checked|(state) <http://www

Re: Adding new attributes to struts1 tags

2010-11-01 Thread Anjib Mulepati
I did the search too but most is about creating new customized tag only. So if anyone have link to this attribute adding. Anjib On 11/1/2010 12:10 PM, Paul Benedict wrote: struts tags customizing - To unsubscribe, e-mail: use

Form load null in struts1.3.8

2010-11-08 Thread Anjib Mulepati
I am suing Struts 1.3.8 to write a file upload application. I am not using common-upload plugin. The problem I am having right now is my form bean get null for text field if I try to upload larger file (>200MB) but work fine when i try with less size files. I couldn't understand what's going on

Problem with Struts 1 form

2010-11-10 Thread Anjib Mulepati
I am writing file upload application in Struts 1.3.8. The problem I am having is whenever I have file over 200MB to be upload application doesn't work properly. I have couple of text field beside files upload and those field value are shown null if I try to upload file over 200MB. JSP File ---

Re: Problem with Struts 1 form

2010-11-10 Thread Anjib Mulepati
I have no clue where to check that for. Can u tell me which file? Anjib On 11/10/2010 10:13 AM, Dave Newton wrote: It can be either container upload limitation or the upload library (commons-fileupload) configuration. Or both. Dave On Wed, Nov 10, 2010 at 9:56 AM, Anjib Mulepati wrote: I am

Re: Filed Error message without bullets.

2010-11-17 Thread Anjib Mulepati
I need help on same problem . I am using 1.3.8. Anjib On 11/17/2010 12:18 PM, Dave Newton wrote: On Wed, Nov 17, 2010 at 12:05 PM, Satheesh Kannan A B wrote: I need to display the field error message below each text field without the bullet points. Please suggest me a how to do. Since am gett

Clear up concept of validation() call

2010-11-18 Thread Anjib Mulepati
Hi everyone I got confuse with the call of ActionForm in Struts 1.3.8 If I have Form as follow with validate() method public class MyTestForm extends org.apache.struts.action.ActionForm { String myTestString; public MyTestForm() { super(); } public String getMyTestSt

Re: Clear up concept of validation() call

2010-11-18 Thread Anjib Mulepati
tion like below? < action path="/path/to/action" type="com.UploadAction" name="myTestForm" input="tile.definition" validate="true"> Best greetings, Paweł Wielgus. 2010/11/18 Anjib Mulepati: Hi everyone I got confuse with the call of Acti

Re: Clear up concept of validation() call

2010-11-18 Thread Anjib Mulepati
; type="com.UploadAction" name="myTestForm" input="tile.definition" validate="true"> Best greetings, Paweł Wielgus. 2010/11/18 Anjib Mulepati: Hi everyone I got confuse with the call of ActionForm in Struts 1.3.8 If I have For

Upload file content to text box using struts 1.3.8

2010-11-29 Thread Anjib Mulepati
Can anyone help me on getting file content (txt/CSV file) to be load in text area of web page? I have textarea in webpage and want to load the content of the file to that textarea. I am using struts 1.3.8. I couldn't fig out how can mimic file input button. Any hint will be appreciated. Tha

Calling Struts Action from JavaScript

2010-11-30 Thread Anjib Mulepati
Struts 1.3.8 I have text box and button in the JSP page with the function on onCLick() event.

Re: Calling Struts Action from JavaScript

2010-12-01 Thread Anjib Mulepati
Thanks Anjib On 11/30/2010 4:21 PM, Chris Pratt wrote: Either use ajax or submit the page request, there's no other good way to access a server side resource from the client side. (*chris*) On Nov 30, 2010 1:15 PM, "Anjib Mulepati" wrote: Struts 1.3.8 I have text box

Re: Calling Struts Action from JavaScript

2010-12-01 Thread Anjib Mulepati
Can you please write me simple example of this JSON? I have never used this. Anjib On 12/1/2010 10:13 AM, Li Ying wrote: 2010/12/1 Anjib Mulepati: Li When you say sending response using JSON what does that mean? I mean, send a string in JSON format as response. If your response is simple

Re: Calling Struts Action from JavaScript

2010-12-01 Thread Anjib Mulepati
good practice? Anjib On 12/1/2010 10:26 AM, Biesbrock, Kevin wrote: Example: http://www.json.org/example.html All the information you could want and so much more: http://www.google.com/search?q=json Beez -Original Message- From: Anjib Mulepati [mailto:anji...@hotmail.com] Sent

Struts 1 and AJAX

2010-12-02 Thread Anjib Mulepati
Struts 1.3.8 I am writing and application where end user insert the email address and get inserted in table shown on web page after successfully validation. For that I am doing following: 1. Get email from user in text box. 2. When user press add button AJAX post is called, email get validat

Re: Struts 1 and AJAX

2010-12-02 Thread Anjib Mulepati
1. By refresh I mean when user press F5 all content lost. 2. I will try second one. Anjib On 12/2/2010 11:58 AM, Dave Newton wrote: On Thu, Dec 2, 2010 at 11:44 AM, Anjib Mulepati wrote: 1. My record in the table disappear if page is refresh. Don't refresh? Otherwise you need a mech

Re: Struts 1 and AJAX

2010-12-02 Thread Anjib Mulepati
; } } My page display email if valid and null if invalid. 3. I have action mapping as 4. Email.jsp simply display email <%= request.getAttribute("returnValue") %>* * 5. blank.jsp is just blank**page* *Where I am doing wrong? Anjib * * On 12/2/2010 11:58 AM, Dave New

Re: Struts 1 and AJAX

2010-12-02 Thread Anjib Mulepati
nk**page* Anjib * On 12/2/2010 12:49 PM, Dave Newton wrote: On Thu, Dec 2, 2010 at 12:43 PM, Anjib Mulepati wrote: Ok second also doesn't work. "It doesn't work" actually isn't descriptive enough to allow anybody to help effectively--you'd need to say what actual

Re: Struts 1 and AJAX

2010-12-02 Thread Anjib Mulepati
/2/2010 1:42 PM, Dave Newton wrote: On Thu, Dec 2, 2010 at 1:25 PM, Anjib Mulepati wrote: But problem I am having is I can't tap the condition where email is invalid. $.post( "validateEmail.do", {sendValue: email}, function(returnValue){ addToTab

Re: Struts 1 and AJAX

2010-12-02 Thread Anjib Mulepati
On 12/2/2010 2:09 PM, Dave Newton wrote: You *could* do that, or do it in the view layer, or just serialize a rational JSON object to the response and skip all the other issues, and make things easier. Dave On Thu, Dec 2, 2010 at 2:06 PM, Anjib Mulepati wrote: So do I need to map two

Re: Struts 1 and AJAX

2010-12-03 Thread Anjib Mulepati
It still add blank row in table when invalid. Anjib On 12/3/2010 11:36 AM, Biesbrock, Kevin wrote: Gosh, you're so close. If you change this method: function fnClickAddEmail() { var email = $("input#email").val(); $.post( "validateEmail.do", {sendValue: email},

Re: Struts 1 and AJAX

2010-12-03 Thread Anjib Mulepati
I make following change to test but still same problem function fnClickAddEmail() { var email = $("input#email").val(); $.post( "validateEmail.do", {sendValue: email}, function(returnValue){ if(returnValue == "-1"){ //Changed here displa

Bookmark and session

2010-12-06 Thread Anjib Mulepati
Hi Can anyone help me how I can handle the bookmark issue. I am having problem where if one user do bookmark for some page and after it logout if some one use that bookmark and login with different id he get into same page. But content is specific to users. More precisely if I have two page

Connection Pooling with Struts

2010-12-07 Thread Anjib Mulepati
I have to do DB connection (Oracle 10g) in my application developed in Struts 1.3.8. Currently I am implementing JDBC. As far I understand this is not a good technique for real project. So I am hoping someone could suggest me how to do DB handling efficiently? Thanks Anjib -

Re: Connection Pooling with Struts

2010-12-07 Thread Anjib Mulepati
I was thinking for Hibernate. So only way for struts is use one of these framework? Anjib On 12/7/2010 3:26 PM, Johannes Geppert wrote: in java you have the choose which way is the best for your project to handle databases. there exists several frameworks for this job like hibernate, myBatis,

Re: Connection Pooling with Struts

2010-12-07 Thread Anjib Mulepati
You dont need using a framework... if you pick one just will make your life easier! If you`re starting a new project I`d get one framework, however if the project it`s already ready, just keep doing in the same way! On Tue, Dec 7, 2010 at 3:36 PM, Anjib Mulepati wrote: I was thinking for Hibernat

Re: Connection Pooling with Struts

2010-12-07 Thread Anjib Mulepati
So I can use this DBCP Componenet instead of framework? Anjib E.g -. http://commons.apache.org/dbcp/ On Tue, Dec 7, 2010 at 4:27 PM, Dave Newton wrote: A connection pooling library? On Tue, Dec 7, 2010 at 4:25 PM, Anjib Mulepati wrote: Ok now I get confuse. I was thinking simple JDBC

Re: Connection Pooling with Struts

2010-12-08 Thread Anjib Mulepati
Sure I will For time being I used DBCP. Anjib On 12/8/2010 12:54 PM, adam pinder wrote: Anjib, i'd certainly take a look at hibernate, i've been using it for a while now and find it easy enough and functionally rich enough for most things. adam Date: Tue, 7 Dec 2010 14:36:01 -0500 From:

Problem with action mapping

2010-12-16 Thread Anjib Mulepati
This is the problem I am facing everytime I am creating new project in Netbeans and modify the default pages. Am I missing some sequence of action or parameters. To make it clear I am including most of the code which I think are related. Can any one suggets me why I am getting following error w

Re: Problem with action mapping

2010-12-16 Thread Anjib Mulepati
Tomcat Log in Netbeans says Dec 16, 2010 2:26:03 PM org.apache.catalina.core.ApplicationDispatcher invoke WARNING: Servlet action is currently unavailable Anjib On 12/16/2010 2:15 PM, Dave Newton wrote: A startup error. Check the logs. Dave On Thu, Dec 16, 2010 at 1:59 PM, Anjib Mulepati

Re: Problem with action mapping

2010-12-16 Thread Anjib Mulepati
ewton wrote: A startup error. Check the logs. Dave On Thu, Dec 16, 2010 at 1:59 PM, Anjib Mulepati wrote: This is the problem I am facing everytime I am creating new project in Netbeans and modify the default pages. Am I missing some sequence of action or parameters. To make it clear I am includ

Using validate.xml and validate()

2010-12-28 Thread Anjib Mulepati
Struts 1.3.8 Can I use validate.xml and validate() method at same time a) for same field in both place and b) different disjunctive fields. Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional comm

Re: Using validate.xml and validate()

2010-12-28 Thread Anjib Mulepati
Ok to make my self clear I have three field to check name,email and message. I want name and message to be required but email required complex validation that is not provided with struts. As 'required' is provided in Struts I can set validation rule for name and message simply in xml file. And

Re: Using validate.xml and validate()

2010-12-28 Thread Anjib Mulepati
1. Complex in the sense my own custom validation for multiple emails. 2. So do you mean i can go with Option 2? Anjib On 12/28/2010 2:38 PM, Paul Benedict wrote: On Tue, Dec 28, 2010 at 12:43 PM, Anjib Mulepatiwrote: Ok to make my self clear I have three field to check name,email and message

Re: Using validate.xml and validate()

2010-12-28 Thread Anjib Mulepati
So my form should extends from ValidatorForm? Anjib On 12/28/2010 2:50 PM, Paul Benedict wrote: Option 2 is fine. On Tue, Dec 28, 2010 at 1:45 PM, Anjib Mulepati wrote: 1. Complex in the sense my own custom validation for multiple emails. 2. So do you mean i can go with Option 2? Anjib

Problem with browser or Struts file upload code.

2010-12-28 Thread Anjib Mulepati
I am writing an app to upload file using Struts 1.3.8. It works fine if I upload small file. But when I try to upload lager(>200MB) file it doesn't response correctly. For larger file my form validation get null for all field even I have value in it. This is happening to all browser IE,FF and

Re: Problem with browser or Struts file upload code.

2010-12-29 Thread Anjib Mulepati
ActionMessage("error.transactionName")); } return errors; } } Observation: - 1. I can get to blank page if try to load small file (tested up to 267MB file) 2. No response for larger file(trrie with 2.85GB file) What am I doing wrong? Anjib On 12/28/

Re: Problem with browser or Struts file upload code.

2010-12-29 Thread Anjib Mulepati
docs I referred to, which is where I'd start. IIRC this is not configurable within Struts 1 itself, but I also haven't used it for several years now. Dave On Dec 29, 2010 8:49 AM, "Anjib Mulepati" wrote: I could not figure out where and what changes I have to make. I try w

Re: Problem with browser or Struts file upload code.

2010-12-29 Thread Anjib Mulepati
On Dec 29, 2010 8:49 AM, "Anjib Mulepati" wrote: I could not figure out where and what changes I have to make. I try with simple app with following code: 1. JSP File - 2. struts-config.xml --- 3. UploadAction Class

Re: Problem with browser or Struts file upload code.

2010-12-30 Thread Anjib Mulepati
real server? You may find an error listed there that might help. Remember to look in general server logs, not just log files specific to your application, since it might be a server error, not an application error. On Wed, Dec 29, 2010 at 1:21 PM, Anjib Mulepati wrote: Yes in this dummy program

Precedence

2010-12-30 Thread Anjib Mulepati
When using both validation.xml and validate() method for form validation which one have precedence? Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Precedence

2010-12-30 Thread Anjib Mulepati
it? On Dec 30, 2010 11:10 AM, "Anjib Mulepati" wrote: When using both validation.xml and validate() method for form validation which one have precedence? Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apac

Re: Precedence

2010-12-30 Thread Anjib Mulepati
Not in validate but in constructor. On 12/30/2010 1:56 PM, Dave Newton wrote: Are you calling super() in your validate() method? On Thu, Dec 30, 2010 at 1:38 PM, Anjib Mulepati wrote: I am using 1.3.8. I try with simple one and seems that validate() has the precedence. In fact rules in .xml

Re: Precedence

2010-12-30 Thread Anjib Mulepati
file. Anjib On 12/30/2010 2:03 PM, Dave Newton wrote: ... So, what might happen if you called it in validate()? Dave On Thu, Dec 30, 2010 at 2:01 PM, Anjib Mulepati wrote: Not in validate but in constructor. On 12/30/2010 1:56 PM, Dave Newton wrote: Are you calling super() in your

Struts 1 tags

2011-01-04 Thread Anjib Mulepati
Strits 1.3.8 Is there any error in following code? I am getting blank page. Can someone help me out? property="organizationalUnit" tabindex="1"> <% ArrayList agencyList = (ArrayList)request.getAttribute("list"); for(int i=0; i <% } %>

Passing request objects - Struts 1

2011-01-04 Thread Anjib Mulepati
existing mechanisms to do this and instead relying on scriptlets? Either JSTL or whatever that existing S1 tag for option collections is would be far cleaner. 2) Is there anything in the logs? 3) Are you using Tiles (which back in the day swallowed exceptions whole sometimes)? 4) Are you using th

JPA with Struts 1

2011-01-11 Thread Anjib Mulepati
Can I use JPA with Struts 1? If yes is there any good tutorial I can look into? Thanks in advance Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

[S1] Disabled Input Box

2011-01-21 Thread Anjib Mulepati
Hi I have a query regarding the behaviour of Strut's ActionForm. If we have disabled input box on the JSP page can ActionForm get the value of that box? Right now when I am debugging it is showing me null, I can get value for all other element on the form. Thanks Anjib -

Re: [S1] Disabled Input Box

2011-01-21 Thread Anjib Mulepati
So what can be the options for me? On 1/21/2011 3:46 PM, Paul Benedict wrote: Per the HTML spec, disabled form controls are not submitted by the browser. This is not a limitation of Struts. On Fri, Jan 21, 2011 at 2:42 PM, Anjib Mulepati wrote: Hi I have a query regarding the behaviour of

[S 1.3.8] Simple Struts Example

2011-01-27 Thread Anjib Mulepati
Hi All, I am looking for the simple example of using beans and tag in Struts to avoid using scriptlets. I am trying to get concept of using tag to access result from back end using the beans. It will be very helpful if some one can provide me a link or example which I can look into. Thanks

Re: [S 1.3.8] Simple Struts Example

2011-01-27 Thread Anjib Mulepati
HttpServletRequest request, HttpServletResponse response) throws Exception { DataBean myBean = new DataBean(); myBean.setSampleProperty("Anjib"); System.out.println("Bean Value: " + myBean.getSampleProperty()); return mapping.findForw

Re: [S 1.3.8] Simple Struts Example

2011-01-28 Thread Anjib Mulepati
Can anyone help to get this simple program run? Thanks Anjib On 1/27/2011 4:37 PM, Anjib Mulepati wrote: 1. JSP Files = a) Calling page - <%@ taglib uri="http://struts.apache.org/tags-bean"; prefix="bean" %> <%@ taglib uri="http://st

Re: [S 1.3.8] Simple Struts Example

2011-01-28 Thread Anjib Mulepati
e disappointed when you find out all you have to do to process forms in the normal Struts 1 way... is there a reason you're learning Struts 1? Most new development has moved on to more recent frameworks, with good reasons. I'm suspicious of companies doing new development i

GET/POST request in Struts 1.3.8

2011-03-03 Thread Anjib Mulepati
Hi Can someone help me on how to tell struts 1.3.8 to accept only either GET or POST request only? Thanks Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.ap

Re: GET/POST request in Struts 1.3.8

2011-03-03 Thread Anjib Mulepati
Yes I did try to find something in struts-config.xml file as well as web.xml but nothing I could find out there. Have anyone done this before? Anjib On 3/3/2011 10:19 AM, Muneer Malik wrote: you should be able to do this using the web.xml On Thu, Mar 3, 2011 at 8:59 AM, Anjib Mulepati wrote

S 1.3.8 Direct URL

2011-03-07 Thread Anjib Mulepati
Hi I have following: 1. A form accessible only after successful login. 2. Action() on the form i.e. it send form data to server after user click submit Now I am getting java.lang.NullPointerException mypkg.myForm.validate(MyForm.java:108) when I am giving http://localhost:8080/myap

Re: S 1.3.8 Custom Request Processor Vs Action Class

2011-03-07 Thread Anjib Mulepati
I am looking at the custom request processor blog where its doing basic common task such as validating user session is done in request processor now I am doing same validation in the base action class. So which one is better way doing in request processor or as base action class? -

[S1.3.8] Mapping problem

2011-03-22 Thread Anjib Mulepati
I have 1. web.xml action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml debug 2 detail 2 2 ... action *.do . index.jsp . 2. struts-config.xml as type="gov.ma.itd.grouping.actions.GetAgencyListAction"> 3. index.jsp N

[S2] Getting error while running struts project

2011-04-26 Thread Anjib Mulepati
Hi I am trying to run the Struts2 project in Netbeans . I have included all necessary jar files. But i am getting following error: SEVERE: Exception starting filter struts2 java.lang.NoSuchMethodError: com.opensymphony.xwork2.util.finder.ClassFinder. What does this mean? And how can i fix thi

[S 1.3.8] Adding tag lib

2011-05-20 Thread Anjib Mulepati
Hi, I have a query regarding adding tag lib in web pages while using tiles. Is it enough to put tag lib directive in layout page only? Will all other pages loaded in layout get that? Example 1. In tiles layout page I have <%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@taglib ur

Custom tag in Struts 1.3.8

2011-08-11 Thread Anjib Mulepati
Hi All, I was wondering if there is any way we can tell struts to put '/' at the end of the tag. For example if we have struts tag as property="agencyName" value="" /> it will convert to title="Agency Name"> Now, is there anyway we can have this title="Agency Name" /> Thanks, Anjib

Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati
I have following code with drop-list name "agencyName". But event .change() attached to this object never called. So i was wondering does jQuery ever work with Struts custom tag? or Am I doing something wrong? Thanks in advance. Anjib $('#agencyName').change( function() { /* Nev

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati
On 8/16/2011 10:51 AM, Eric Lentz wrote: I have following code with drop-list name "agencyName". But event.change() attached to this object never called. Make sure that the rendered form is actually creating a HTML object with an ID of agencyName. That's usually the problem that I encounter - u

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati
There is no error at console but can run the script in console itself. Any suggestion? On 8/16/2011 12:53 PM, Dave Newton wrote: Check for JS errors in the console then, jQuery works fine with S1. Dave On Aug 16, 2011 12:44 PM, "Anjib Mulepati" wrote: On 8/16/2011 10:51 AM,

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati
Yes script runs fine. On 8/16/2011 1:19 PM, Eric Lentz wrote: There is no error at console but can run the script in console itself. Any suggestion? Are you saying that you can verify that the script is executing? For example, if you alert, breakpoint or print to console before the installation

Struts DataSource Feature

2011-08-29 Thread Anjib Mulepati
Is Struts DataSource Feature still worth using. I am on Struts 1.3.8. I heard it will be removed from Struts eventually. Any updates? Thanks, Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional comm

Using tag

2011-09-22 Thread Anjib Mulepati
Hi All, I have two question 1. regarding understanding , and and 2. reloding option items after form validation fail. I have agency bean with (ID, Name). I create list of agency as agencyList. I have login page which have select/option box and it get value from the DB. So my action class se

Adding session time out to ForwardAction [S1.3.8]

2011-09-23 Thread Anjib Mulepati
Hi, I am wondering is there any way we can add the session time out code for org.apache.struts.actions.ForwardAction. I am adding session time out code for every actions in Action Class. But some of my action are just Forward action so I am using ForwardAction for such action. Disadvantage for

Returning response object only from Action

2011-09-28 Thread Anjib Mulepati
Hi All, I want to know how I can send the repose object with JSON content to the view from the Action class. I am trying to add AJAX feature in Struts 1.3.8 application as shown in http://www.zammetti.com/articles/xhrstruts/index.htm. Instead of doing public ActionForward execute(ActionMap

Re: Returning response object only from Action

2011-09-28 Thread Anjib Mulepati
This is great I am able to get the String of all shows. But my ultimate goal was to get the result and populate in the select box. I am using AJAX since second box (charater) content depends upon first select box (tvshow). SO I need to parse String or is there any easy way to get values so that

Re: Returning response object only from Action

2011-09-28 Thread Anjib Mulepati
ed to make something like that: var myObject = JSON.parse(data); and then you can iterate over myObject like an array and create the html you need. I am afraid, you'll need to dig that out on your own now, but I guess you have a good direction ;-) Cheers Christian On Wed, Sep 28, 2011 at

Accessing variable in View [S 1.3.8]

2011-10-03 Thread Anjib Mulepati
Hi All, I was wondering is there any way to read and store value of beans in JSP using Struts 1.3.8. I need this to pass the parameter as follow. name="del" /> Thanks, Anjib - To unsubscribe, e-mail: user-unsubscr...@

Managing both success and failure message [S 1.3.8]

2011-11-02 Thread Anjib Mulepati
Hi All, I have been using ActionErrors to display all kind of message from form submission action. Problem with that is I have to display message using tag and I can't distinguish between success and failure message. I want to store error messages and success message in different object so

Re: Managing both success and failure message [S 1.3.8]

2011-11-02 Thread Anjib Mulepati
se to iterate over errors. Paul On Wed, Nov 2, 2011 at 2:14 PM, Anjib Mulepati wrote: Hi All, I have been using ActionErrors to display all kind of message from form submission action. Problem with that is I have to display message using tag and I can't distinguish between success and fa

Servlet init() equivalent in Struts 1.3.8

2011-11-18 Thread Anjib Mulepati
Hi All, I am trying to put some database configuration code in the Struts application. This is the code for loading context parameter, configure database parameter and locate the service. Usually we put this code in init() method of servlet but I am confuse where I can put this piece of code

use of validate() method [S 1.3.8]

2011-12-14 Thread Anjib Mulepati
Hi All, I have question regarding use of validate() method in Struts 1.3.8. I have simple form to collect couple of information (e.g. code and name) and have to add them to the Database. All database operations are handled by my DAO layer. Both code and name are unique in Database. So I want

Re: use of validate() method [S 1.3.8]

2011-12-14 Thread Anjib Mulepati
one and your design/logic is fine. Anjib Mulepati 12/14/2011 3:21 PM>>> Hi All, I have question regarding use of validate() method in Struts 1.3.8. I have simple form to collect couple of information (e.g. code and name) and have to add them to the Database. All database operations are h

Hide .do [S 1.3.8]

2012-02-10 Thread Anjib Mulepati
Hi All, I am getting odd situation in Struts 1.3.8 application. I have different actions and for each action user can see link as http://localhost/MyApp/MyAction.do How can I hide *.do from address bar? Thanks - To unsubscri

Re: Map param in tag

2012-02-22 Thread Anjib Mulepati
http://struts.apache.org/mail.html On 2/22/2012 3:02 PM, Brian Thompson wrote: http://lmgtfy.com/?q=struts+mailing+list+unsubscribe On Wed, Feb 22, 2012 at 1:56 PM, Yadav Khanalwrote: Hi, I would like to unsubscribe from the list because it flooded my email box. Could anybody tell me how to

[Struts 1.3.8] getOutputStream() error

2012-03-19 Thread Anjib Mulepati
Hi All, I am writing an action class in Struts 1.3.8 to download the file from the server as the Stream. Files get downloaded and working fine but in log I can see the error three times in log java.lang.IllegalStateException: getOutputStream() has already been called for this response I se

{S 1.3.8} action error

2012-03-21 Thread Anjib Mulepati
I am getting error javax.servlet.jsp.JspException: Cannot find global ActionForward for name Login.do I have following configuration. index.jsp struts-config - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org

Re: [S 1.3.8] action error

2012-03-22 Thread Anjib Mulepati
In struts-config.xml I put global forwarding as Now when I start my application I am getting 404 error. So does that mean path can't be tile and must be jsp page? If so then how can I solve this? On 3/21/2012 3:53 PM, Łukasz Lenart wrote: 2012/3/21 Anjib Mulepati: index.jsp You mu

[S 1.3.8] Accessing property of inner bean

2012-03-29 Thread Anjib Mulepati
Hi All, I am trying to pass COMPLEX bean to the JSP and trying to access their property i JSP with bean tag. I have a class as follow Class TransferInfo { private Transmission transmission; //My transmission object private User user; //My user object private List fileList; //list

Re: [S 1.3.8] Iterator inside Iterator

2012-03-29 Thread Anjib Mulepati
On 3/29/2012 10:58 AM, Anjib Mulepati wrote: Hi All, I am trying to pass COMPLEX bean to the JSP and trying to access their property i JSP with bean tag. I have a class as follow Class TransferInfo { private Transmission transmission; //My transmission object private User user; //My

Connection between Struts Application and DB.

2012-04-23 Thread Anjib Mulepati
Hi All, I have my DB and web application running in different machine. And whenever my DB machine restart my application fail since it can't connect to the DB. I have to restart my application every time my DB start. I am using Struts Plug-in to load connection information from web.xml file a

Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
Hi All, I have question regarding handling form submission by direct URL in Struts 1.3.8 I have a page to change password which user can access after they login. URL for that page is http://localhost:8080/MyApp/changepassword.do I have action mapping as follow: scope="request" name="Change

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
Even though I put validation in ActionForm validate() method failure will take to changePasswordPage. I do have validation to check form field. On 6/13/2012 9:17 AM, Dave Newton wrote: Maybe some sort of validation would be helpful. Dave On Wed, Jun 13, 2012 at 9:03 AM, Anjib Mulepati wrote

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
st */ @Override public void reset(ActionMapping mapping, HttpServletRequest request) { userName = ""; oldPwd = ""; password = ""; confirmPwd = ""; } } On 6/13/2012 11:10 AM, Jason Zheng wrote: Anjib, would you lik

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
} return errors; } /** * * @param mapping * @param request */ @Override public void reset(ActionMapping mapping, HttpServletRequest request) { userName = ""; oldPwd = ""; password = "";

  1   2   >