Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!

Saniya Ansari

Ranch Hand
+ Follow
since Sep 30, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 Saniya Ansari



this is what i have so far... but i'm wondering on how to get something like pet.value[0] (refering to the first value in the array list)
and then pet.value[1] i.e. the second value...
Should i extract out the array list as a variable using the <c:set> tag and print the value at index 0 and 1 from that...
11 years ago
JSP
Hi - i have a simple issue but a little new with JSTL.
I have a hashmap which contains a key (string value) and value (array list). I need to iterate such that i populate a html drop down list. The key will be displayed, the arraylist[0] and arraylist[1] values will be displayed as text on the HTML page.

Can anyone show me a simple example ....thanks!
11 years ago
JSP
Hi namitha,

What kind of components are you using? Did you try going to View>Properties.. I'm not sure exactly what you're having trouble with. Can you explain more..

SA
14 years ago
JSF
Hi.. I'm in the process of developing a JSF application that will make use of JAAS. I'm trying to dig through the myraid of knowledge/information out there to makes sense of how to put it all together and now i find myself asking a simple question to make things clearer..

Can we use the typical JAAS approach for authentication in Web applications. By typical i mean (creating a LoginContext, specifying a config file and passing an optional callback handler to the loging context, specifying the login url in the java.security file and giving permissions in java.policy files).

From what I have understood, the procedure is different for web apps. Each app server has its own implementations for JAAS that one can use. Or if there are any other needs, one can write their own loginmodules according to the app server spec. You declare that as the realm to use in your deployment descriptor file. Thus in this scenario you would not be creating a login context etc and the container is handling everying for you.. i.e. its an example of declarative authentication using a particular realm..

I would really appreciate if someone can comment on this and if i'm going in the right direction...

Thanks
S
14 years ago
Hi .. ofcourse u can go to the documentation for a detailed description but simply if u need to deploy u can go to <install-dir>/domain/<your-domain>/autodeploy and put ur helloWorld.war file (for example) in this folder. I dont remember if u need to restart the server or just wait a few minutes.

In any case if it is successfully deployed another file would be created something like.. helloWorld.war_deployed or helloWorld.war_undeployed.
and u would know if it was successfuly deployed..

u can then go to http://localhost ort

Hope this helps..
Saniya
14 years ago
Hi I'm working on a LDAP based authentication module for my web application using JAAS. Had a question on LDAP.. as a developer do i need to create a schema or something or how does it work.. my company has a ldap server set up but i'm not sure exactly how to go about using it for testing my applciation.. any helpful tutorial/resources or brief explanation would make my life easy
15 years ago
Hi

I'm using struts for a project i'm working on, i was trying to use strutsbox plugin but it has very little documentation..

can anyone recommend a free struts plugin

saniya
15 years ago
Hi I'm trying to configure, mysql, eclipse and jfacedbc .. what extra jars do i need to add to the path and what would a the example url look like...


thanks

saniya
Hi I've just started to use eclipse and lomboz for my j2ee project. How do i edit my jsp files, I got this error saying that com.objectlearn.jdt.j2ee.editor.JSPeditor cannot be instantiated, (No class Def Found error)..

do i need to add some jar file, i've been checking the object learn website but if anyone can suggest some solution it would be appreciated...

thanks
saniya
I am trying to configure JBoss 3.2.5 to run though eclipse 3.0M7. I installed Lomboz 2.0 I was trying to create a Test project (Lomboz J2EE project) and it is giving me an error saying that these jar files are missing:
JBOSS_HOME/lib/jboss-boot.jar
JBOSS_HOME/server/default/lib/javax.servlet.jar

I checked and i dont have these jar files in the directories... what can be done.. i'm not sure what the problem could be..

I am able to run jboss, through eclipse and also through command line.. can anyone give some suggestion...

Thanks
-s-
15 years ago
Hi
I'm trying to set up my environment for using JBOss3.2.5, eclipse 3.0, lomboz 3.01..
I've installed jboss successfully, i have jdk1.4.2, i chaged the jboss3.2x.server file and plugged it into the plugins file in eclipse.. but i'm not able to see the lomboz options when i try to configure my java perspective in eclipse..

Can somebody throw some suggestions.. do i need to add anything in my class path or do i need to install EMF (i'm not sure what it is by the way)..

So all the eclipse savvy ppl plz send in ur suggestions!!

Thanks
-s-
Thanks you guys.. one more part that i'm trying to figure out is that how do i get that key that was generated back.. bcoz usually in select we'll give the primary key and select a record.. i can i suppose make a query and put the rest of the fields for example name, address, phone, email to match with the record i just inserted and get its id but this sounds like a less efficient method.. are there any other ways someone can suggest...
the question is agand if i'm using an automated pk generated by db, after insert how do i get this pk back right after i have inserted the record...
Thankyou..
Hi..
I'm using DB2 for a project.. I want to be able to genearate an automated PK which can just be a serial number like 1, 2,3.....
So I want to know that how can i do that with DB2
Secondly, When i insert I want to know what was the PK that was genearted.. so how can i do that.. like i'll execute the insert statement for example with a persons details.. a record is inserted and a pk is generated.. so how do i get that pk value..

Thanks..
Hi.. i'm working on a corba based project and i need to have a worker thread which picks up some work(sql statements) from a queue. So i implemented a work queue class using Linked List, a worker thread etc.. did a simple test ..worked fine.. The problem is that I need to know the contents of the LinkedList bcoz i need to check during the program if a certain object is currently in the work queue or not.. so a hashmap would be helpful since i can have the objectId for example as the key and the sql statemnt associated with it as the mapping.. but then i cant do the addLast and removeFirst() operations which are very helpful. In hashmap i need to pass a particular object refrence when i say remove(key) which makes the program more complicated.. so what can i do .. any suggestions.. would really apppreciate some quick advice.. i was thinking of two solutions.
1. a data structure for the objects i put in a linked list meaning an object which contains two attributes objectID and the sql stmt but it would mean i have to call a method to check the value everytime..
OR
2. a linked list with another linked list.. but i dont know how that works. .havent used linked lists much..
So any threads and java.util expert out there.. PLEASE REPLY SOOOONNN...
thanks..
16 years ago
Hi.. i'm working on a corba based project and i need to have a worker thread which picks up some work(sql statements) from a queue. So i implemented a work queue class using Linked List, a worker thread etc.. did a simple test ..worked fine.. The problem is that I need to know the contents of the LinkedList bcoz i need to check during the program if a certain object is currently in the work queue or not.. so a hashmap would be helpful since i can have the objectId for example as the key and the sql statemnt associated with it as the mapping.. but then i cant do the addLast and removeFirst() operations which are very helpful. In hashmap i need to pass a particular object refrence when i say remove(key) which makes the program more complicated.. so what can i do .. any suggestions.. would really apppreciate some quick advice.. i was thinking of two solutions.
1. a data structure for the objects i put in a linked list meaning an object which contains two attributes objectID and the sql stmt
OR
2. a linked list with another linked list.. but i dont know how that works. .havent used linked lists much..
So any threads and java.util expert out there.. PLEASE REPLY SOOOONNN...
thanks..