Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.

Ajith George

Ranch Hand
+ Follow
since Dec 22, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ajith George

I was about to implement a tagging feature for documents. The user who uploads the document can add one or more tags , so that while other user searches this can be easily
retrievable. Is there any patterns available for this? Or Can i make use of indexing API's such as lusene here.

Thanks,


From the past experiences i know that Java zip file streaming doesnt support files greater than 4GB and is still in the bug list of jdk. So we are using other API's like truezip to do the same.

But recently when i tried to unzip a GZIP format file > 4GB using java.util.zip.GZIPInputStream it worked. Does anyone know why and how it works only for GZIP format files? Still whats the upper size limit for java.util.zip.GZIPInputStream reader.

Thanks,

Ajith.
9 years ago
Am also facing this problem now. I tried winzip from command prompt, but as it is not free it will bring a popup to accept the licence agrements, so manual intervention is required. Thats why only option left was using windows zip utility to extract. Does anyone know how to call windows zip utility from command prompt? So that this can be called from java for extracting big files.
10 years ago
jsp's are actually rentered as servlets internally by the server internally. So jsp's are just ui friendly servlets , which will help the web designers job easier.

But remember jsp's are view related stuff, only, but occasionally we might need to tackle requests come to web server. I mean any specific checking or process. For that it is better to use servlets itself (as we dont any ui there)

Implementation eg: InterceptorServlet, Filtering servlet etc.
10 years ago
JSP
Can anybody please suggest me a good open source tag lib. The tag libs i require is for simple activities like
  • condition checking (if and if not)
  • iterator
  • input text box (so that i can high light the text box, in case of error)
  • form
  • url builder
  • include page
  • sort
  • submit
  • testconditon (to check any conditions)

  • I need to be able access the full source code of the same, so that i can tweak it , if it is needed.

    Thanks.
    10 years ago
    JSP
    Then replace one of the repeated entries with a non occuring number , like 999 or 0. Then while retrieving it handle this case also.
    10 years ago
    Better store the result in a new array, which will make your life more easier.
    10 years ago
    My domain classes are Book and Tag, which are shown below.



    But i am unable to create a link between them. Even though we can add the other domain object from current domain, the link between them is missing.

    I have created the controller and stuff, using the "generate-all" method of grails.
    Actually i was trying to implement the same on Grails. And in grails, the domain class mapping is based on ideas got from hibernet. I tried hasmany attribute to establish many to many relationship. But i cant actually make things work by this.
    Yes i am having exactly similar situation
    yes i am refering to books and tags that have a many to many relationship.

    I want to know how this object model should look like, and the way to handle the same using any ORM tool. If anybody can point me any open source example, it will be really helpfull.
    What i meant by tagged item is like something similar we find on youtube.

    ie as we upload a video, we can add search tags related to the uploaded video, like car,movie,comedy etc.

    So as user search my tags he can find the item with ease.
    How can i map a tagged item? Suppose a new book is added to the system, and this book can be non-fictional and cookery related and poetic etc. So more than one tag is required for the added book. And the tags should be created if it does not already exists. And the tag should not be deleted as i delete the book, coz other books may already get associated with this tag.

    How can i handle this situation with ORM?

    Thanks in advance.
    You can use Java script for this, ie
    <script language="JavaScript">
    // go forward
    window.history.forward();
    </script>

    But this way of doing is deprecated, coz it works only in IE and behave stupid sometimes.