Re: How to do validation for Single Quote (') through validation.xml file?

2011-07-21 Thread Manos Batsis
On 07/21/2011 08:07 PM, log2akshat wrote: I got the Solution: But how can I escape the ' to display by .properties file in error message. I used (\') but its not working. Please anybody can help me on how to validate the number of words typed on click of submit

Re: [FRIDAY] Mime Type Validation

2010-07-16 Thread Manos Batsis
On 07/16/2010 04:21 PM, Stephen Turner wrote: We're using Struts 2 for file uploading, and we're filtering the types of files people can upload by checking the file's content type against a list of allowed mime types. This turns out not to be reliable enough. Firefox in particular seems to somet

Re: The Apache Software Foundation Receives Approval for Sale to Oracle Corporation

2010-05-19 Thread Manos Batsis
On 05/19/2010 09:31 AM, aum strut wrote: Hi All, i am not sure is this a good place to ask about such question but since many here are involved with Apache from so long while browsing Apache community site i came across this blog post,though this has been posted on April 1st but still not sure

Re: Request Encoding

2010-03-15 Thread Manos Batsis
Ulf Liedén wrote: when my struts application receives form entries containing french character (i.e. é è) they are converted to something else, like é è. This has probably something to do with how the request is encoded. I've tried to add ServletActionContext.getRequest().setCharacterEncoding

Re: facebook connect

2010-02-28 Thread Manos Batsis
Frans Thamura wrote: hi all anyone working with facebook connect, may be can share the code :) sorry, in lazy mode on. to make my development faster Someone posted an OS library for that recently, currently hosted on google code. Search the archives. hth, Manos --

Re: MySQL + JDBC

2009-12-14 Thread Manos Batsis
Todd Grigsby wrote: Fantastic! The error that I'm getting is, "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory ([Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application." Ever seen that?

Re: Java URL Batch Application

2009-08-07 Thread Manos Batsis
Manos Batsis wrote: Tom Holmes Jr. wrote: Sorry ... this might be off topic. I'm a Struts1/2 and Spring MVC Java developer myself. And yes, I am Googling for this information as well. I am looking for some Java open-source app that does some batching. I basically want a java web-app

Re: Java URL Batch Application

2009-08-07 Thread Manos Batsis
Tom Holmes Jr. wrote: Sorry ... this might be off topic. I'm a Struts1/2 and Spring MVC Java developer myself. And yes, I am Googling for this information as well. I am looking for some Java open-source app that does some batching. I basically want a java web-app where I can schedule a URL t

Re: hidden data

2009-04-06 Thread Manos Batsis
PEGASUS84 wrote: i wish encode data in the query string how can I do? If security is no concern and you just don't want the data to be obvious, you could use base64. there are libraries out there to do this. hth, Manos - T

Re: hidden data

2009-04-06 Thread Manos Batsis
I think the OP wants to send data with a link (i.e. an HTTP GET) without those appearing within the URL query string. In short, its cannot be done. One however can: * Use POST with hidden fields * Store the data in the session scope * Encode the data in the query string hth, Manos Muthu V

Re: How to generate a URL with s:url encoded in UTF-8

2009-02-09 Thread Manos Batsis
Ignacio de Córdoba wrote: Hi there, I am trying to generate a URL with s:url and s:param so that parameters are encoded in URL. Special characters are not processed ok. (The struts action works fine as I have posted that same URL data with a form encoded in UTF-8 and they are decoded fine in my j

Re: Converting HTML content to PDF

2009-01-28 Thread Manos Batsis
To the OP: Just try xhtmlrenderer (i.e. The Flying Saucer Project). I once did a servlet filter that intercepted text/html responses (usually from JSPs) and transformed them to PDF on the fly. Don't seem able to figure out where that code is nowadays though. [1] https://xhtmlrenderer.dev.jav

Re: S2: Loading UTF-8 Resource Bundles

2008-10-31 Thread Manos Batsis
egetchell wrote: I am presently integrating internationalized UTF-8 resource bundles that contain multi-byte characters. I am familiar with the pre-JDK 6 constraints of UTF-8 resource bundles – either implement your own loader or convert the bundles to Unicode. Don't you mean ASCII? AFAIK r

Re: Different error messages for client and server side validation

2008-09-30 Thread Manos Batsis
Geia sou wre Dimitri. Dimitris Mouchritsas wrote: we are using elements in our error messages to allow the user to go to the form field when the error message shows up. Obviously this messes up the client side javascript popup message which shows like: Username is missing. Is there a way to u

Re: Refreshing image with AJAX request

2008-09-25 Thread Manos Batsis
Frank W. Zammetti wrote: Ajax by its nature deals with textual information only, be it HTML, XML, JavaScript or plain text. Exactly, thus an XMLHttpRequest can be used update an image in two ways: * The image URL can be passed as information to the HTTP response, wrapped in XML or not (i.e.

Re: not interpreted

2008-03-13 Thread Manos Batsis
Laurie Harper wrote: Dave Newton wrote: --- matthieu martin <[EMAIL PROTECTED]> wrote: That's not valid XML; you can't nest tags like that. Off the top of my head I don't recall if the "id" attribute will eval OGNL or not. To be pedantic, JSPs are not XML files ...unless you

Re: [OT] Re: Dead code parser/finder for Struts

2008-02-29 Thread Manos Batsis
Dave Newton wrote: shouldn't be *that* hard (depending on how well-formed the JSP/HTML is, perhaps?) Bingo. We use the XML JSP syntax and have done similar tasks in the past using XSLT or even SAX filters. I've never encountered XML syntax users outside my company though. Manos --

Re: Best Tool to develop html pages

2008-02-05 Thread Manos Batsis
mohammed hussain wrote: Hi anybody knowing the best tools to develop to html page,pls let me know There is no such thing. Do you need WYSIWYG? Are you looking for JSP etc. awareness? Do you feel comfortable editing markup by hand? What are your target DTDs? Manos -

Re: DAO pattern

2008-02-04 Thread Manos Batsis
Zhang, Larry (L.) wrote: I have a user object whose data is from three resources: Db2, LDAP, and other flat file. Per dao pattern, do you think I should have three daos or one dao to encapsulate the data access implications? Depends on what is easier for you. This will not effect your code if

[Somewhat OT] RSS lib for Struts app?

2008-01-21 Thread Manos Batsis
Hello, This is somewhat OT but can someone please suggest a java RSS lib for my struts1 app? What I want to do is fetch, cache (daily) and display the latest one or two news items from a set of different feeds in jsp 2.0 pages so any taglibs along with the lib would be great. A quick search

Re: How do I prevent two calls concurrently?

2008-01-15 Thread Manos Batsis
Givler, Eric wrote: The problem is the user double clicks [login] and can get two calls to the service method to execute simultaneously. They both don't see a row, so they both do an INSERT. One of the inserts fails due to a PK on the username. See generateToken[1] and isTokenValid [2]. T

XHTML Form validation problems... for ever!

2008-01-05 Thread Manos Batsis
I'm using commons-validator 1.3.1 with Struts 1.3.8 and 1.3.9. In short, the jcv_retrieveFormName function returns nothing, so other functions that try to use it end up with errors looking up for variables (well functions) like "_required" when they should look for formnameOrId_required. I'v

Re: Fine on local server, 404 on production?

2008-01-03 Thread Manos Batsis
Keith Struts wrote: I recently rewrote an existing application in Struts 2, and everything seems fine. Runs on my Eclipse server, as well as the local tomcat instance on 2 different machines. However, when we deploy it to the production server, we get a 404 error. Check your server logs. Does

Re: How to improve dojo performance in Struts 2.0.9

2007-12-25 Thread Manos Batsis
Quoting Roberto Nunnari <[EMAIL PROTECTED]>: > Yes.. I believe that's right, but wouldn't it be great if we were > able to tell tomcat/struts to keep some static web resources from jar > files in cache (already decompressed and ready to be sent to > clients)? That is exactly the approach we have a

Re: X11 server at :0.0

2007-08-06 Thread Manos Batsis
John Mammen wrote: Have any of you faced this issue while deploying an application in WAS? This is irrelevant to Struts i think... Try googling for -Dheadless=true or something. Cheers, Manos - To unsubscribe, e-mail: [E

Re: iterator question

2007-07-15 Thread Manos Batsis
Ryan wrote: Hello All, I'm trying to create a table that has different classes for each column by iterating across a list of lists. Problem is the listoflists property is accessed each time an e

Re: Restricting Direct Access to Jsp

2007-06-20 Thread Manos Batsis
Archer wrote: Hi, I am using struts 1.3.8 for my application. Can anybody please help me how to restrict access to jsp pages directly in struts. I am not having any of jsp in web-inf, so I need to restrict direct access to JSP. Any suggestion will be a great help to me. Too many ways to do th

Re: xhtml problem

2007-06-01 Thread Manos Batsis
Ray Clough wrote: The failure is in the deployed code. The processor which produces html from the jsp markup (in tomcat, in this case) will not allow the nested elements. It is treating everything as pure xml, and the dtd for xhtml won't allow that type of markup. I could live with it if it

Re: xhtml problem

2007-06-01 Thread Manos Batsis
Ray Clough wrote: I produce all my jsp pages is xml format - ie. as 'jspx' jsp-documents. I find a serious drawback to the struts tags, and I'm wondering if anyone has a suggestion. The xhtml does not allow element content within other elements; for example the tag cannot contain a tag. Lots

Re: HDIV (Http Data Integrity Validator) 1.1 Released

2007-04-03 Thread Manos Batsis
Just a minor suggestion: please upload releases to a Maven repo :-) Cheers, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

New MD4J tutorial and template, help in supporting S2 needed :-)

2007-02-18 Thread Manos Batsis
MD4J is an extensible J2EE webapp generator. One of the main features is that it allows you to work on your model iteratively, providing a complete J2EE application following your model changes. So, each time you edit your model and build your project, MD4J will generate high quality code fro

Struts taglib autodiscovery in JSP 2.0 XML?

2007-02-09 Thread Manos Batsis
Hello, Well, the subject says it all, uses of taglibs are outputted as-is by the container. My JSPs are like: http://struts.apache.org/tags-bean"; xmlns:jsp="http://java.sun.com/JSP/Page";> My web.xml's version is 2.4 so i don't declare the taglibs, shouldn't they be auto-discovered (triggered

RE: Problems with Maven

2007-02-06 Thread Manos Batsis
Quoting Christopher Loschen <[EMAIL PROTECTED]>: > We had a report at my office that some downloads of > the 1.5.0_10 JDK were missing that jar file Right, i think OSX doesn't have a separate jar for that. In that case the OP should probably add an exclusion element within the POM dependency that

Re: Problems with Maven

2007-02-06 Thread Manos Batsis
Although i'm not sure, i think the OP just needs to install an 1.5 JDK then set it as $JAVA_HOME. hth, Manos Quoting Carlos Curotto <[EMAIL PROTECTED]>: > Did you try to do this? > > Then, install it using the command: > mvn install:install-file -DgroupId=com.sun -DartifactId=tools \ >

Maven2 archetype or sample POM for Struts 1.x?

2007-01-23 Thread Manos Batsis
Hello, Is there any M2 archetype or sample POM availabe for Struts 1.x webaps with webdoclet, nergefiles and all working? I'm trying to create a POM and extract an archetype from it, but sincde i got to various issues i finally wondered whether a nice soul has already gone through this. Thanks

RE: html:select and sorting

2007-01-04 Thread Manos Batsis
Quoting "Bolutiwi, Olu" <[EMAIL PROTECTED]>: > How can I use a collection that supports key & value, keep it sorted > and > use it in my html:select without messing up the sort order. You can make your keys comparable [1] or put your results in a collection that does not try to re-sort them. [1

Re: Ideal solution to pagination (long lists)?

2007-01-04 Thread Manos Batsis
Making a suggestion is difficult without knowing what tools/tiers or other specifics are involved. Our MD4J [1] generated DAOs return implementations of a Page interface [2] for search queries. A Hibernate-based Page implementation [3] is also available. This serves generic memory and DB access r

Re: [ANN] MD4J J2EE Code Generator

2007-01-01 Thread Manos Batsis
Just added a 0.1 snapshot binary distribution [1] for your convinience. [1] http://sourceforge.net/project/showfiles.php?group_id=150959 Cheers, Manos Quoting Manos Batsis <[EMAIL PROTECTED]>: > > > MD4J is an extensible J2EE webapp generator. Currently only Hibernate >

[ANN] MD4J J2EE Code Generator

2006-12-30 Thread Manos Batsis
MD4J is an extensible J2EE webapp generator. Currently only Hibernate 3 mappings are supported as input. The project allowes pluggable generators, with the existing set supporting EJB 2.1, Struts 1.x and JSP 2.0 as output for CRUD and Search operations. An Ant task is included for your builds. T