Refers to how something is done, or to an available means or course of action. Very common in negative expressions such as 仕方がない, meaning that there is no way around something or no choice.
仕方がないthere's no way; can't be helped; unavoidable · it's no use; pointless; useless · hopeless; annoying; troublesome · can't stand it; unbearable; dying to
仕方のないcannot be helped; unavoidable; inevitable · pointless; useless; no good · hopeless (person); annoying; troublesome · cannot stand it; unbearable; cannot help (doing)