Jump to content
Sign in to follow this  
crv82

Jsp Dan Java

Recommended Posts

akum...nk bertanyer skit bkenaan ngan pasal jsp ngan java...

camner nk implement applet dlm jsp?dah cuber tp applet tu tanak load.dia kuar error...java.lang.noclassfound

<applet code="ApletSaya.class" width=300 height=300>
</applet>

Share this post


Link to post
Share on other sites

Bukan masalah kat applet tag tu, rasanya pd program java ko, cuba bagi source code java ko. Satu lagi kemungkinan, applet tu tu sepatutnya ada kat folder yg sama ngan ko punye jsp file pasal pathnya sepatutnya refer dlm folder yg sama. Any way make sure the class file is in the same folder as the .jsp file. Do comeback.

Share this post


Link to post
Share on other sites

sy pun ade masalah dgn nk load applet dkt web browser.sy ade amik coding internet yg sy nk gunakan dlm sy punye fyp.tp masalahnyer coding tue generate byk fail kelas.cm ner sy nk declarekan class tue dlm html?

Share this post


Link to post
Share on other sites

Aku tak sure apa ko nak buat ni, tapi my suggestion is cuba bg kat aku source code project ko tu;

[email protected]

Anyway aku rasa ko kena identify the main class utk source code tu, let say the main class is "ProjectAku". Bila ko nak panggil dlm html file use this applet tag;

<applet code="ProjectAku.class" width="200" height="100"> </applet>... Ni contoh je. Pls mail me the code, so that I can help you, insyaAllah. Tapi nasihat aku lagi, kalo ko buat projek programming for your fyp, tak yah la ko cari kat internet, baik ko buat sendiri lagi best. Jgn mare, gurauje...

Share this post


Link to post
Share on other sites

public class SearchFiles extends JFrame

{}

ni dia punya main class dia, tapi aku rasa program ko ni bukan utk Applet tapi standalone application. Ko kenala ubah program kpd Applet. Mcm mana nak buat, refer kat tutorial atau apa2 buku. Aku tak sempat nak ubahkan coz tak de masa, ada project sendri yg nak kena setel.

Kalau applet sepatutnya main class dia

public class SearchFiles extends JApplet

{}

Share this post


Link to post
Share on other sites

Aku dah run kod ko, mmg bukan applet, window application. Sorry. Lepas ko ubah, kalo ada masalah ko email kat aku kod yg baru. TQ

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...