nasha shaharan

Greenhorn
+ Follow
since Jun 01, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by nasha shaharan

bad gateway.

anybody else? please help, thanks.
13 years ago
JSP
thank for the pointer.
but that seems to be hard-coded. i need to know how to display all the names from the database and make them clickable like a hyperlink. how can i do that?
13 years ago
JSP
hi all!

i have a problem. i'm making a dynamic web project where we can key in info about employees and displaying info about the employee. I'm using jsp and servlets and the database using postgresql.

now i'm stuck at the part where i need to retrieve the names of the employees and set it as a clickable hyperlink. when we click on the names (retrieved from database)...will lead to a page about his/her profile - info about name, department, position..etc

can anybody tell me how to go about that? i'll give my code if you'd like, but i had just done the retrieving info and put it in a table. which is not practical if theres a lot of data.

thanks in advance and i hope i made it clear
13 years ago
JSP
okay thanks! i'll go and learn more about cardlayout.
13 years ago
thanks for explaining..so, the panels will be in the same size of the applet? the panels will be on top of each other then?
13 years ago
oh CardLayout..can cardlayout contain applets in various sizes?
13 years ago

It's like a website with a login page. after login, press the enter button and the applet called ButtonView takes the place of the login applet.
then in the ButtonView applet will have 3 buttons which do different things and they will open other applets as well.

the login to buttonView successfully linked, but the buttons in buttonView cannot open their respective applets.

just take a look at my code...

i don't want to use showDocuments because it will use different web pages. i only want one webpage, but the applets in one place, responding to whatever button being pressed.
or is this not possible? an applet contents cannot be changed? but in login page it was successful...maybe the panel from buttonView that was called?

sorry because i don't know a lot about applets..thanks for your help
13 years ago
thanks for the example, Andrew! i will look into it and study more about cardlayout.
i'm wondering why i can't link to other applet in the same page, when my login page can do that whenever i hit the login button. when i log in successfully, the page changes to the content page.

this is my login page code:



and this is the code for the other applet when 'enter' button is pressed:


please help because i'm confused...



13 years ago
same web page..how can it be visible? i need to click a button, say: View Profile. then it will take me to another applet called Profile.
just like a website. can you tell me more?
13 years ago
no..not a webpage. it's an applet also.
13 years ago
hi guys,
i have an applet with many buttons. i wanna be able to press a button and directs it to another page.
it is kinda like clicking a link in a webpage. i am not sure how to do this. can you please tell me how?

this is what i did in the button's actionPerformed:



thanks in advance!
13 years ago

Swastik Dey wrote:

The above code it self will satisfy your purpose, then what is the below code. Why are you checking once again?


just by doing this your purpose should get solved, with an assumption that username and password forms a unique record




im doing that because i wanna compare if the user inputs the right set of username and password.
if i follow your suggestion, then how to compare the password part?
oh i solved it!
thanks andrew and venkat!

anyways this is my code now:

i think i put the if else code in the wrong place..because it iterates my record (i think)..
this is because when i log in..the incorrect password warning flashes 2 times when i entered user-a/password-a

can you suggest where i was to put the if else code?