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 button by validation.xml file.


AFAIK escaping of single-quotes is not required in property files but 
stuff like java.text.MessageFormat - try double apos instead ('')


hth,

Manos

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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
sometimes provide the wrong mime type, so some valid files are being
rejected.

My question is: has anyone come across a reliable way to detect a file's
mime type?


When dealing with a finite set of MIME types, we usually map those to 
file extensions. We then only allow those extensions to be used in 
uploaded files.


hth,

Manos

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 whats the truth??
can any one have better idea about this post
https://blogs.apache.org/foundation/entry/the_apache_software_foundation_receives



The post has a date of April 1st. It's just an April fool's joke.

Cheers,

Manos

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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("UTF-8");

to the action class validate() method, and

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

to the JSP, but this doesn't help. Any suggestions?



If you are using Tomcat, you need to update $CATALINA_HOME/conf/server.xml

More specifically, you need to add the

URIEncoding="UTF-8"

to the Connector element for port 80 or 8080.

Cheers,

Manos

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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?



My guess is you are using a microsoft ODBC to JDBC driver or something? 
Just use the JDBC drivers for MySQL. You can download those and get 
docos from MySQL's website.


hth,

Manos

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 where I can schedule a URL to be called 
at a certain time with certain parameters and then store those results?
I'd like this to record the start-time when this was called, and the 
stop time of when the results come back.


It doesn't matter which framework this uses, so long as it's java and 
open-source.




In case you dont find something ridiculously fitting your task, it 
should be fairly easy to patch up exactly what you want using jakarta 
httpclient and then schedule your java code to be called using 
Quartz/timer/cron whatever.


Oh. Checking out if jmeter can be used for recording your scenarios to 
its XML and then running them using an API could be a better idea.


Cheers,

Manos

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 to be called at 
a certain time with certain parameters and then store those results?
I'd like this to record the start-time when this was called, and the 
stop time of when the results come back.


It doesn't matter which framework this uses, so long as it's java and 
open-source.




In case you dont find something ridiculously fitting your task, it 
should be fairly easy to patch up exactly what you want using jakarta 
httpclient and then schedule your java code to be called using 
Quartz/timer/cron whatever.


hth,

Manos

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 Velappan wrote:

How to send data to action without displaying it in form? Is that your
question?If yes, then u can use  field to hold the data and post
it back to the action, right?

If this is not what you intent, please explain ur issue a bit detail..
 
~Muthu



PEGASUS84 wrote:

good moorning;
i've a question: can I send an hidden String with link to an action?
i don't want that on query string there is the value of my string






-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 java code)
I've tried doing  but no
luck. Chars are escaped but not encoded UTF-8.
Any ideas if this is possible?


Appservers usually need some config to process UTF-8 URLs (you need that 
when using GET, e.g. links), see for example



http://confluence.atlassian.com/display/DOC/Application+Server+URL+encoding

Cheers,

Manos

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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.java.net/

hth,

Manos

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 resource bundles are loaded using the default platform encoding. 
Using native2ascii binary either directly or through your build 
tasks/goals gives the expected results pretty much anywhere.


Custom "resource bundle loaders" where there in S1 but, unfortunately, 
i'm clueless on S2.


hth,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 use a different error message or should we abandon 
the idea of client side validation?


You could modify the JS file in the struts JARs (cant remember where it 
is) and modify the code to strip the markup from the alert() *only*. A 
function to strip markup is




stripTags = function (s) {
return s?s.replace(/<[^>]+>/g,""):s;
};

so you could modify e.g.

alert(errors);

to


alert(stripTags(errors));


Xeraitismata ston Pitarokili, to Valassopoulo kai to Nikita ;-)

Cheers,

Manos


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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. XMLHttpRequest.responseText). That can be 
used to update an image.


* The actual image data can be encoded in base64 and sent in an XML 
envelope obtained by an XMLHttpRequest. The base64 string can then be 
used with the data: URI scheme[1] to render the image.


[1] http://en.wikipedia.org/wiki/Data:_URI_scheme

Cheers,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 use the XML syntax available from JSP 2.0 and later ;-)

Cheers,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 you 
your DAOs implement a common interface and your code uses a DAO Factory 
to obtain the right DAO instance implementing that interface.


Personally, I have the habit of making one DAO per business entity, so I 
would join the three you mention into one. This or the opposite is 
mostly useful as a convention shared between members etc.


Cheers,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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 gives Rome [1] and Informa [2] but it looks like they 
haven't been updated for a year or more. Thanks in advance.


[1] https://rome.dev.java.net/
[2] http://informa.sourceforge.net/

Cheers,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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]. The token will be valid for 
only one request. What to do with the invalid request (also the latest) 
is up to you.


[1] 
http://struts.apache.org/1.x/apidocs/org/apache/struts/action/Action.html#generateToken(javax.servlet.http.HttpServletRequest)
[2] 
http://struts.apache.org/1.x/apidocs/org/apache/struts/action/Action.html#isTokenValid(javax.servlet.http.HttpServletRequest)


Cheers,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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've had related problems since I can remember trying to use XHTML with 
the JS validation stuff. Am I missing something?


Many thanks,

Manos


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 the app get deployed? Does the 404 appear 
on your logs? Maybe you need to configure a reverse proxy (e.g. apache).


Cheers,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 applied  for our internal JS
libraries. They are packaged as Maven artifacts (see our
maven-jstools-plugin howto at [1]), then those artifacts are used as
dependencies in our web projects. At runtime, the scripts are provided
to the browser and optionally cached and/or gzipped by our
JavascriptDependencyFilter [2], which is available in the webapp by
adding the JSTools plugin as a dependency for it. If you want to
centralize caching in httpd or something, you can also use
JavascriptDependencyFilter for dependency resolution only. Not sure if
struts2 is build with Maven, or whether dojo artifacts are available,
but in any case all this is apache 2 licensed so you can do whatever
with it.

[1] http://dev.abiss.gr/mvn-jstools/js-packaging.html
[2]
http://dev.abiss.gr/mvn-jstools/apidocs/gr/abiss/mvn/plugins/jstools/web/JavascriptDependencyFilter.html

Cheers,

Manos



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 element is 
accessed (in this case 2 X the number of elements in the lists). This is 
obviously computationally expensive for a simple table. Is there a better way 
to access this list of lists??



I'm not an S2 user but cant you store a reference to the 
listoflists[#rowstatus.index] list item say, in the page context, before 
the TDs? Also, i dont know how the %{} stuff works but maybe it would be 
faster if you provided a scope (i.e. not sure the order in which scopes 
are checked for listoflists).


Cheers,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 this, for example a servletfilter or web.xml

  
  
  no_access
  *.jsp
  
  
  


hth,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 was only the editor which was 
complaining.  I have been trying to use a blend of jsp el with the s2 tags, but 
that has problems too.



Use the jsp:output [1] element to declare the DTD you want the response 
XHTML to use.


[1] http://java.sun.com/products/jsp/syntax/2.0/syntaxref2022.html#1004130

hth,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 of
examples in the struts documentation use this, which is not a problem for
regular html, but is a big show stopper in xml.  The tags do allow jsp-el,
but not other elements.



Just do not use the DTDs while editing JSPs; for example include them in 
the response using a static JSP include.


If you want validation during editing, the only AFAIK way would be to 
play with the W3C Schema components developed as "Modularization of 
XHTML in XML Schema" [1].


[1] http://www.w3.org/TR/xhtml-modularization/

hth,

Manos


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 from JSPs and Struts classes, to Session EJBs and DAOs, 
allowing you to test CRUD and Search functionality on top of your model 
right away.


The project allows pluggable generators, with the existing set 
supporting EJB 2.1, Struts 1.x and JSP 2.0 as output for CRUD and Search 
operations. I intent to add one for Struts 2 but i haven't used the 
framework yet. If people in this list could suggest Struts 2 equivalents 
of the Struts code listings presented in the tutorial, it would be a 
great step towards a generator.


A new snapshot of the core along with a project template 
(md4j-quickstarter) is available for download [1], along with a ten 
minute tutorial dratf at [2]. The source [3] is available under the GPL.


[1] http://sourceforge.net/project/showfiles.php?group_id=150959
[2] http://www.geekologue.com/md4j/tutorial-with-maven.html
[3] http://www.geekologue.com/md4j/source-repository.html

Cheers,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 by the namespace declarations)?

Thanks in advance,

Manos



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 depends on that JAR to make the build independent of
it.

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 \
>  -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file
>
> where the path/to/file is the path to the file that maven cannot
> find, in
> your case, ${java.home}/../lib/tools.jar.
>
> Regards,
>
> --
> Carlos Curotto
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 in advance,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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] http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Comparable.html

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 requirements
well (i.e. no caching on application level, only the results to be
rendered are retreived from the DB on each call).

[1] http://md4j.sourceforge.net/
[2]
http://md4j.cvs.sourceforge.net/md4j/md4j/src/java/com/geekologue/md4j/dao/Page.java?view=markup
[3]
http://md4j.cvs.sourceforge.net/md4j/md4j/src/java/com/geekologue/md4j/dao/hibernate/HbmQueryResultPage.java?view=markup

hth,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
> 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.
>
> There is no release yet, but i got some basic documentation online
> [1]
> and the sourcecode [2] is available under the GPL. I hope people will
> get interested and help me improove the current set of generators as
> well as add new ones (Struts 2.0, EJB 3.0 etc.).
>
> Anyway, i guess this is my present for the new year. Happy 2007!
>
> [1] http://md4j.sourceforge.net/
> [2] http://md4j.sourceforge.net/cvs-usage.html
>
> Cheers,
>
> Manos
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

There is no release yet, but i got some basic documentation online [1]
and the sourcecode [2] is available under the GPL. I hope people will
get interested and help me improove the current set of generators as
well as add new ones (Struts 2.0, EJB 3.0 etc.).

Anyway, i guess this is my present for the new year. Happy 2007!

[1] http://md4j.sourceforge.net/
[2] http://md4j.sourceforge.net/cvs-usage.html

Cheers,

Manos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]