- WebContent.
Regular Web files (HTML, JavaScript, CSS, JSP, images, etc.) - WebContent/some-subdirectory
Web files in subdirectory. - WebContent/WEB-INF
web.xml (used for servlet mappings) - WebContent/WEB-INF/lib
JAR files specific to application. - src/(default package)
Unpackaged (default package) Java code. Using the default package is generally a bad choice in Web apps. - src/somePackage
Java code in somePackage package. - Note:
You can cut/paste or drag/drop existing files into appropriate locations, but it is hard to drag files into a Java package until you create at least one class first.
Friday, August 6, 2010
Tomcat file structure in Eclipse
Thursday, August 5, 2010
XSSearchEngine do not go to result page (open search)
In the skin file of the search module reference, setup a proper result page id.
Monday, July 19, 2010
log error in DotNetNuke
(new DotNetNuke.Services.Log.EventLog.EventLogController())
.AddLog("Exception", ex.ToString(), DotNetNuke.Entities.Portals.PortalSettings.Current,
-1, DotNetNuke.Services.Log.EventLog.EventLogController.EventLogType.ADMIN_ALERT);
or
catch (Exception ex)
{
DotNetNuke.Services.Exceptions.Exceptions.LogException(ex);
//throw;
}
.AddLog("Exception", ex.ToString(), DotNetNuke.Entities.Portals.PortalSettings.Current,
-1, DotNetNuke.Services.Log.EventLog.EventLogController.EventLogType.ADMIN_ALERT);
or
catch (Exception ex)
{
DotNetNuke.Services.Exceptions.Exceptions.LogException(ex);
//throw;
}
Generate a self-signed certificate
makecert -pe -n "cn= www.domain.co.nz " -ss my -sr LocalMachine -r " www.domain.co.nz " -sky exchange
Thursday, July 8, 2010
Dotnetnuke Logging to the EventLog
First, create an instance of the EventLogViewer...
Dim objEventLog As New DotNetNuke.Services.Log.EventLog.EventLogController
Next, log the event you wish to trap...
objEventLog.AddLog("Sample Message", "Something Interesting Happened!", PortalSettings, -1, DotNetNuke.Services.Log.EventLog.EventLogController.EventLogType.ADMIN_ALERT)
Friday, July 2, 2010
Blackra1n ASL. dll Error
Go to: C:\ program files\common files\apple\apple application support
Than copy blackra1n into that folder.
Than copy blackra1n into that folder.
Iphone restore error 3194 fix
Navigate to “c:\windows\system32\drivers\etc\” and open the ‘hosts’ file in notepad. To do so, right click on the file and select Open With->Notepad. At the end of the document, add this string “74.208.10.249 gs.apple.com”.
Subscribe to:
Posts (Atom)