Re: Struts 1.3 : Preventing SQL Injection (form.field validation)

2013-03-22 Thread Anjib Mulepati
Use Filter On 3/22/2013 7:36 PM, J.V. wrote: Does anyone out there have a method I could use to pass a form field variable that would check for all known SQL injection vulnerabilities (with regards to the form field only, irrespective of the method of SQL execution) and return a true/false if

Re: Form data lost [S 1.3.8]

2012-07-31 Thread Anjib
same scope. On Tue, Jul 31, 2012 at 11:09 AM, Anjib Mulepati wrote: Hi All, I am using large form to input data. I have some validation code as well as I have condition where if something goes wrong in execution of action it will take the user back to the form. My problem is when validation fail o

Re: Form data lost [S 1.3.8]

2012-07-31 Thread Anjib Mulepati
... > > public ActionErrors validate(ActionMapping mapping, > HttpServletRequest request) { > ActionErrors errors = new ActionErrors(); > if (getAgentName() == null || getAgentName().length() < 1) { > errors.add("createAgent", new > ActionMessage("error.agentName.required")); > } > . > return errors; > } > } > > Thanks, > Anjib > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org >

Form data lost [S 1.3.8]

2012-07-31 Thread Anjib Mulepati
rror.agentName.required")); } . return errors; } } Thanks, Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Form handling by direct URL in Struts 1.3.8

2012-06-14 Thread Anjib Mulepati
t look for the session variable. My problem I don't a mechanism where if some one POST the empty data validation fail must lead to not login message or invalid access message. How can I make such distinction from normal form submission? Thanks, Anjib On 6/13/2012 7:00 PM, Takanori Hayashi

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
I am looking for such prevention measure. Right now for most action I have Base action where it check whether user has logged in or not. On 6/13/2012 1:21 PM, Dave Newton wrote: On Wednesday, June 13, 2012, Anjib Mulepati wrote: Where and how I do that? In Struts 1.2 you'd use a c

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
Where and how I do that? On 6/13/2012 12:19 PM, Dave Newton wrote: Sure, redirect any request without a user info object to the login page. Dave (pardon brevity and typos, on cell) On Jun 13, 2012 12:16 PM, "Anjib Mulepati" wrote: i know that. My question was how we handle such

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
fo' is not exits in any scope. On Wed, Jun 13, 2012 at 11:58 PM, Anjib Mulepatiwrote: User info is put into session after they log in so its in LoginSubmitAction class. public class LoginSubmitAction extends org.apache.struts.action.**Action { private static final String ERRO

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
xFrwd; } } On 6/13/2012 11:51 AM, Dave Newton wrote: I don't see anything that puts a user info into session (or request, I forgot where it was), so it makes sense the JSP would fail. [OT] In the future, consider removing useless, empty comments so people trying to help have less wor

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
ActionMessage("error.sameAsUsername")); } if(oldPwd.equalsIgnoreCase(password)){ errors.add("error", new ActionMessage("error.samePassword")); } return errors; } /** * * @param mapping * @param reque

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

Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
n: "userInfo" in any scope Any help will be appreciated. Thanks, Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

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

Re: don't display anything

2012-04-14 Thread Anjib
I didn't see any error in you code. I ran in my machine it works fine. You can test just a Login action and debug from there. On 4/14/2012 2:37 PM, Oussama Jlassi wrote: i use struts 1.3 in tomcat 6 every thing work fine but the html error do not display my error messages how to fix it logi

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

[S 1.3.8] Accessing property of inner bean

2012-03-29 Thread Anjib Mulepati
request.setAttribute("transferList", transferList); Now in JSP I how should I get value of Transmission, User and File object value and print them. Usually for simple class we write to print the first name. In this case how to get the first name. Can anyone help me in this? Tha

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} 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

[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

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

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: use of validate() method [S 1.3.8]

2011-12-14 Thread Anjib Mulepati
ot sending this id from form. I have hardcoded). I think this is because action call doesn't send failure status if exception occur. Am i correct? If no what I am missing? If yes then what will be solutionfor these problems? Anjib On 12/14/2011 3:31 PM, Eric Reed wrote: By saying bo

use of validate() method [S 1.3.8]

2011-12-14 Thread Anjib Mulepati
in execute() method. Is this a good way to do validation before inserting the record? Or there is better logic/design than this? I will be glad if anyone can answer my curiosity. Thanks, Anjib - To unsubscribe, e-mail

Servlet init() equivalent in Struts 1.3.8

2011-11-18 Thread Anjib Mulepati
code in Struts. This is basically one time thing. Thanks, Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

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

Managing both success and failure message [S 1.3.8]

2011-11-02 Thread Anjib Mulepati
bject so that I can display messages with proper formatting (red for error/blue for success) back in the form page. I am not displaying new page after form submission. User see there status in same form page. Thanks, Anjib

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:

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

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

Returning response object only from Action

2011-09-28 Thread Anjib Mulepati
sh(); return null; // Not forwarding to anywhere, response is fully-cooked } // End execute() How can I avoid creating HTML in action class and send the Arraylist /JSON to view? Thanks, Anjib - To unsubscribe, e-ma

Adding session time out to ForwardAction [S1.3.8]

2011-09-23 Thread Anjib Mulepati
for this is that i can't check session time for these action but I need to check that too. Is there any way to do this? Thanks, Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e

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

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

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

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
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

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

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 ha

[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

Re: [S2] Getting error while running struts project

2011-04-26 Thread Anjib
I am using Struts 2.1.7 xwork-core-2.1.6 javassist 3.8.0 jackson-core-lgpl 1.7.6 jackson-mapper-lpgl 1.7.6 struts-convertion-plugin 2.2.1 On 4/26/2011 3:16 PM, Dave Newton wrote: On Tue, Apr 26, 2011 at 3:08 PM, Anjib Mulepati wrote: com.opensymphony.xwork2.util.finder.ClassFinder What

[S2] Getting error while running struts project

2011-04-26 Thread Anjib Mulepati
this? Thanks, Anjib

[S1.3.8] Mapping problem

2011-03-22 Thread Anjib Mulepati
ile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) I try to put "/" but that doesn't solve the problem. Can anyone tell m

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? -

S 1.3.8 Direct URL

2011-03-07 Thread Anjib Mulepati
? Thanks Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

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

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

Re: [S 1.3.8] Simple Struts Example

2011-01-28 Thread Anjib Mulepati
between bean in action and JSP page. 4. " ... is there a reason you're learning Struts 1?" I am working ont his app developed in struts 1 so try to fix around. Soon I will be moving to Struts 2. So what will be the solution to issue #3? Thanks Anjib On 1/28/2011 9:59 AM, Dav

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-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

[S 1.3.8] Simple Struts Example

2011-01-27 Thread Anjib Mulepati
Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

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

[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

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

Re: Passing request objects - Struts 1

2011-01-04 Thread Anjib
Sorry I didn't get the first one. Can you please elaborate for me? For second option I didn't find the way to pass result to view especially Sturts tag. Anjib On 1/4/2011 7:47 PM, Dave Newton wrote: Don't make a separate request? I mean, why wouldn't you just use the

Re: Passing request objects - Struts 1

2011-01-04 Thread Anjib
How can I achieve this with only using Struts then? On 1/4/2011 7:20 PM, Dave Newton wrote: The ajax post is an entirely separate request. Dave On Jan 4, 2011 5:38 PM, "Anjib Mulepati" wrote: struts 1.3.8 1. I try to use JSTL but when i include jstl reference it doesn't let

Passing request objects - Struts 1

2011-01-04 Thread Anjib Mulepati
ing once I set the request object with result in action class JSP page can get that value as this action class is called on by this page. Is my assumption right or wrong? Can you suggest how can I fix this problem? Anjib On 1/4/2011 3:07 PM, Dave Newton wrote: 1) Why aren't you using

Struts 1 tags

2011-01-04 Thread Anjib Mulepati
for(int i=0; i <% } %> 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
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

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
I am using 1.3.8. I try with simple one and seems that validate() has the precedence. In fact rules in .xml file is never checked even my class is extended from ValidatorForm. Anjib On 12/30/2010 12:39 PM, Dave Newton wrote: Which version of struts? Do you call super () (S1)? Did you just try

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

Re: Problem with browser or Struts file upload code.

2010-12-30 Thread Anjib Mulepati
null value on fields. Again this is happening while uploading large file only. So I was wondering if there is any issue of form initializing when the request takes time? Does anybody have an idea? Anjib On 12/29/2010 1:56 PM, Aaron Brown wrote: Have you investigated other issues outside th

Re: Problem with browser or Struts file upload code.

2010-12-29 Thread Anjib Mulepati
Yes in this dummy program I can upload 1.5 GB file so 2MB may be the upper limit. Now in real app what can be the reason for getting text field value null even I have enter something while uploading larger file. I can get the value while working with smaller file. Any idea? Anjib On 12

Re: Problem with browser or Struts file upload code.

2010-12-29 Thread Anjib Mulepati
n set maxPostSize http://tomcat.apache.org/tomcat-6.0-doc/config/http.html So set this to 3GB But none of these help. :( What can be other way? Anjib On 12/29/2010 10:03 AM, Dave Newton wrote: The short answer is that you ignored everything I just said and didn't look at the Tomcat and/or commons

Re: Problem with browser or Struts file upload code.

2010-12-29 Thread Anjib Mulepati
* @return set of errors. */ @Override public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if (getTrans_name() == null || getTrans_name().length() < 1) { errors.add("error", new

Problem with browser or Struts file upload code.

2010-12-28 Thread Anjib Mulepati
E,FF and chrome. Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

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

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

Re: Using validate.xml and validate()

2010-12-28 Thread Anjib Mulepati
what can I do? Anjib On 12/28/2010 1:27 PM, Paul Benedict wrote: Anjib, It depends on how you configure your struts action. If you have validate="true" on, then no -- failed validation will never make it to your action. If you want to call validate() yourself in execute() an

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

Re: Problem with action mapping

2010-12-16 Thread Anjib Mulepati
There was space at the beginning. That is solved. I'm getting something but not whole page just logo and header. I though name should be body in tiles def file. so I change all to bosy as tiles.jsp has attribute="body" Still same problem. Anjib On 12/16/2010 2:15 PM, Dave N

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

Problem with action mapping

2010-12-16 Thread Anjib Mulepati
4. My web.xml files as --- action *.do 30 index.jsp 5. index.jsp 6. And ofcourse I have login.jsp, groupIn.jsp, header.jsp, and footer.jsp pages. Thanks Anjib

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

Re: Connection Pooling with Struts

2010-12-07 Thread Anjib
Dude I am asking about ORM tool not Struts framework itself. Please see the reply from Johannes. Thanks Anjib On 12/7/2010 5:19 PM, stanl...@gmail.com wrote: Dude, I can't sit quietly any longer! How you connect to a database has NOTHING WHATSOEVER to do with the Struts/2 Framewor

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-07 Thread Anjib Mulepati
Ok now I get confuse. I was thinking simple JDBC can't (or complex to ) handle connection pooling. So framework make work easy. If framework is not used what are other alternatives to handle connection pooling beside JDBC itself? Anjib On 12/7/2010 4:20 PM, Arthur Neves wrote: Nop,

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

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: Bookmark and session

2010-12-06 Thread Anjib
Thanks Li I think this is will be best solution for now. On 12/6/2010 6:55 PM, Li Ying wrote: Do you mean, when user click some bookmark, you want to check if this bookmark belongs to this user? Basically, you can not control bookmark, because it is a browser operation. The only way i can te

Bookmark and session

2010-12-06 Thread Anjib Mulepati
resource page. What should have happen if second user login successfully he should have been in main page as he hasn't bookmark the link i.e. bookmark should work for particular user. Thanks Anjib - To unsubscribe, e-mail:

Re: Struts 1 and AJAX

2010-12-03 Thread Anjib Mulepati
uot;-1"){ //Changed here displayError(email); }else{ addToTable(returnValue); } }, "text" ); } And <% if(request.getAttribute("validEmail").equals("true")){ %> <%= request.getAttribute("emailAd

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",

Re: Struts 1 and AJAX

2010-12-02 Thread Anjib Mulepati
the email is invalid. As shown before both view are mapped to different page. And in AJAX call upon success it is calling function to add row. I think these are two conflicting or equivalent steps I am taking. So I am missing some point. Can anyone tell me how can I solve this issue? Anjib

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
ctionMessage(e.getMessage(), false)); this.saveErrors(request, errors); return mapping.findForward(FAILURE); } } 3. I have action mapping as 4. Email.jsp simply display email <%= request.getAttribute("returnValue") %>* * 5. blank.jsp is just bla

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
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

Struts 1 and AJAX

2010-12-02 Thread Anjib Mulepati
how a error. How can i solve these problem? Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

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

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
Li When you say sending response using JSON what does that mean? I have been sending result between view and action class by putting in request object as request.setAttribute("result",resultFrom); and request.getAttribute("result") What can be better approach than this?

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: Upload file content to text box using struts 1.3.8

2010-11-29 Thread Anjib
x27;s say CSVDataProperty) (4)Show your page again, and set the default value of the textarea by CSVDataProperty 2010/11/30 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

Upload file content to text box using struts 1.3.8

2010-11-29 Thread Anjib Mulepati
iated. Thanks Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Clear up concept of validation() call

2010-11-18 Thread Anjib Mulepati
Sure Dave I will look into these docs. Thanks Anjib On 11/18/2010 11:12 AM, Dave Newton wrote: You'll also need the validation plugin [1], and you might want to read the validation docs as well [2]. Dave [1] http://struts.apache.org/1.3.10/userGuide/building_view.html#form_validation

Re: Clear up concept of validation() call

2010-11-18 Thread Anjib Mulepati
Thanks Pawel That was the problem. I have validate="false". don't know why I did that? :) And I guess default value is true for this right? Thanks again Anjib On 11/18/2010 11:02 AM, Paweł Wielgus wrote: Hi Anjib, have You set validate=true in struts-config.xml for this ac

Clear up concept of validation() call

2010-11-18 Thread Anjib Mulepati
ntrol never goes to validate() method. I was guessing control should go to validate method first then only to execute method. In other word my input was never validated. What I am doing wrong? Can anyone help me out in this? Thanks in advance Anjib

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

Re: Problem with Struts 1 form

2010-11-10 Thread Anjib
1. No proxy server in between client PC and Web App Server If yes how it will affect? 2. No exception just give me error message for null value of those fields. 3. No such value is set. So I guess it is taking default value right now. Anjib On 11/10/2010 8:56 PM, Li Ying wrote: (1)Is

  1   2   >